From: Vignesh R Date: Wed, 6 Jul 2016 04:28:57 +0000 (+0530) Subject: keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build X-Git-Tag: KARO-TXSD-2017-03-15~617^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=39832244231eab3629f412f1a679779316c6e3e8;p=karo-tx-uboot.git keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build 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 Reviewed-by: Tom Rini Reviewed-by: Jagan Teki --- diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h index 2ee26c4036..4aa262e1a8 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