[U-Boot] [PATCH 2/7] controlcenterdc: move some configuration in	defconfig file
    Patrick Delaunay 
    patrick.delaunay at st.com
       
    Wed Feb 27 14:20:33 UTC 2019
    
    
  
Move some configurations in defconfig file
- CONFIG_CMD_I2C
- CONFIG_CMD_SPI
This allow correct dependency handling in Kconfig.
Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---
 configs/controlcenterdc_defconfig | 2 ++
 include/configs/controlcenterdc.h | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/configs/controlcenterdc_defconfig b/configs/controlcenterdc_defconfig
index f22a3ab..b4b5732 100644
--- a/configs/controlcenterdc_defconfig
+++ b/configs/controlcenterdc_defconfig
@@ -26,9 +26,11 @@ CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_GO is not set
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_SF=y
+CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
diff --git a/include/configs/controlcenterdc.h b/include/configs/controlcenterdc.h
index 06c93c3..2433815 100644
--- a/include/configs/controlcenterdc.h
+++ b/include/configs/controlcenterdc.h
@@ -25,12 +25,6 @@
 
 #define CONFIG_LOADADDR 		1000000
 
-/*
- * Commands configuration
- */
-#define CONFIG_CMD_I2C
-#define CONFIG_CMD_SPI
-
 /* SPI NOR flash default params, used by sf commands */
 #define CONFIG_SF_DEFAULT_BUS		1
 #define CONFIG_SF_DEFAULT_SPEED		1000000
-- 
2.7.4
    
    
More information about the U-Boot
mailing list