diff mbox

[U-Boot,02/11] keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build

Message ID 1460460807-4461-3-git-send-email-vigneshr@ti.com
State Accepted
Commit 39832244231eab3629f412f1a679779316c6e3e8
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Vignesh Raghavendra April 12, 2016, 11:33 a.m. UTC
Since Keystone2 devices do not have support DM in SPL, do not define
DM_SPI and DM_SPI_FLASH for SPL build.

Signed-off-by: Vignesh R <vigneshr@ti.com>
---
 include/configs/ti_armv7_keystone2.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Tom Rini April 12, 2016, 5:24 p.m. UTC | #1
On Tue, Apr 12, 2016 at 05:03:18PM +0530, Vignesh R wrote:

> Since Keystone2 devices do not have support DM in SPL, do not define
> DM_SPI and DM_SPI_FLASH for SPL build.
> 
> Signed-off-by: Vignesh R <vigneshr@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h
index 41185a159786..51d5c46f088e 100644
--- a/include/configs/ti_armv7_keystone2.h
+++ b/include/configs/ti_armv7_keystone2.h
@@ -89,6 +89,10 @@ 
 #define CONFIG_SYS_SPI2
 #define CONFIG_SYS_SPI2_BASE		KS2_SPI2_BASE
 #define CONFIG_SYS_SPI2_NUM_CS		4
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_SPI
+#undef CONFIG_DM_SPI_FLASH
+#endif
 
 /* Network Configuration */
 #define CONFIG_PHYLIB