]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build
authorVignesh R <vigneshr@ti.com>
Wed, 6 Jul 2016 04:28:57 +0000 (09:58 +0530)
committerJagan Teki <jteki@openedev.com>
Sat, 9 Jul 2016 14:46:30 +0000 (20:16 +0530)
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>
Reviewed-by: Jagan Teki <jteki@openedev.com>
include/configs/ti_armv7_keystone2.h

index 2ee26c40367077d67d88d717ea6b232358c48f9a..4aa262e1a8710dec3fb6f9812da431deff5864ab 100644 (file)
 #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