]> git.sur5r.net Git - u-boot/commitdiff
dm: sandbox: Move driver model CONFIGs to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 04:41:45 +0000 (21:41 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 12 Feb 2015 17:35:35 +0000 (10:35 -0700)
Remove driver model CONFIGs from the board config headers and use Kconfig
instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/Kconfig
include/configs/sandbox.h

index 3057325b4761c84314dc22206ff5ba0056a2eaae..2098b9c323bb4b88b07a926053cc2860a009c081 100644 (file)
@@ -10,4 +10,28 @@ config SYS_BOARD
 config SYS_CONFIG_NAME
        default "sandbox"
 
+config DM
+       default y
+
+config DM_GPIO
+       default y
+
+config DM_SERIAL
+       default y
+
+config DM_CROS_EC
+       default y
+
+config DM_SPI
+       default y
+
+config DM_SPI_FLASH
+       default y
+
+config DM_I2C
+       default y
+
+config DM_TEST
+       default y
+
 endmenu
index deff4d648c64dc1fe442ebf61ef06a3e69257a64..bff01708f68bbb83f0cbb0b18cec01acb1db9449 100644 (file)
 
 #define CONFIG_BOOTSTAGE
 #define CONFIG_BOOTSTAGE_REPORT
-#define CONFIG_CMD_DEMO
-#define CONFIG_DM_DEMO
-#define CONFIG_DM_DEMO_SIMPLE
-#define CONFIG_DM_DEMO_SHAPE
-#define CONFIG_DM_GPIO
-#define CONFIG_DM_TEST
-#define CONFIG_DM_SERIAL
-#define CONFIG_DM_CROS_EC
 
 #define CONFIG_SYS_STDIO_DEREGISTER
 
@@ -95,8 +87,6 @@
 #define CONFIG_CMD_SF_TEST
 #define CONFIG_CMD_SPI
 #define CONFIG_SPI_FLASH
-#define CONFIG_DM_SPI
-#define CONFIG_DM_SPI_FLASH
 #define CONFIG_SPI_FLASH_ATMEL
 #define CONFIG_SPI_FLASH_EON
 #define CONFIG_SPI_FLASH_GIGADEVICE
 #define CONFIG_SPI_FLASH_STMICRO
 #define CONFIG_SPI_FLASH_WINBOND
 
-#define CONFIG_DM_I2C
 #define CONFIG_CMD_I2C
 #define CONFIG_SYS_I2C_SANDBOX
 #define CONFIG_I2C_EDID