summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-02-27 15:20:33 +0100
committerTom Rini <trini@konsulko.com>2019-03-25 17:35:52 -0400
commite608bebd7759e287f78269c6392f134283a4cbe6 (patch)
tree1e0032c86a2165fb1a62489ca5c6cdce49692943
parenta1b713215749b96987a5a5a6f90cfa5808f471b6 (diff)
controlcenterdc: move some configuration in defconfig file
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@st.com>
-rw-r--r--configs/controlcenterdc_defconfig2
-rw-r--r--include/configs/controlcenterdc.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/configs/controlcenterdc_defconfig b/configs/controlcenterdc_defconfig
index f22a3ab819..b4b5732f69 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 06c93c3e66..24338156da 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