dm: exynos: Move driver model CONFIGs to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 04:41:40 +0000 (21:41 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 12 Feb 2015 17:35:34 +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/arm/cpu/armv7/exynos/Kconfig
board/samsung/goni/Kconfig
board/samsung/smdk5420/Kconfig
board/samsung/smdkc100/Kconfig
include/configs/exynos-common.h
include/configs/peach-pi.h
include/configs/peach-pit.h
include/configs/s5p_goni.h
include/configs/smdkc100.h

index 7fcb5d2..17ad567 100644 (file)
@@ -65,6 +65,21 @@ endchoice
 config SYS_SOC
        default "exynos"
 
+config DM
+       default y if !SPL_BUILD
+
+config DM_SERIAL
+       default y if !SPL_BUILD
+
+config DM_SPI
+       default y if !SPL_BUILD
+
+config DM_SPI_FLASH
+       default y if !SPL_BUILD
+
+config DM_GPIO
+       default y if !SPL_BUILD
+
 source "board/samsung/smdkv310/Kconfig"
 source "board/samsung/trats/Kconfig"
 source "board/samsung/universal_c210/Kconfig"
index cbbf5a9..2c5d3fc 100644 (file)
@@ -12,4 +12,13 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "s5p_goni"
 
+config DM
+       default y if !SPL_BUILD
+
+config DM_GPIO
+       default y if !SPL_BUILD
+
+config DM_SERIAL
+       default y if !SPL_BUILD
+
 endif
index a9d62ff..576abae 100644 (file)
@@ -22,6 +22,9 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "peach-pi"
 
+config DM_CROS_EC
+       default y
+
 endif
 
 if TARGET_PEACH_PIT
@@ -35,6 +38,9 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "peach-pit"
 
+config DM_CROS_EC
+       default y
+
 endif
 
 if TARGET_SMDK5420
index d2157b4..996fe3c 100644 (file)
@@ -12,4 +12,13 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "smdkc100"
 
+config DM
+       default y if !SPL_BUILD
+
+config DM_GPIO
+       default y if !SPL_BUILD
+
+config DM_SERIAL
+       default y if !SPL_BUILD
+
 endif
index 1f3ee55..2c4f35a 100644 (file)
 #include <linux/sizes.h>
 
 #define CONFIG_SYS_GENERIC_BOARD
-#define CONFIG_DM
-#define CONFIG_CMD_DM
-#define CONFIG_DM_GPIO
-#define CONFIG_DM_SERIAL
-#define CONFIG_DM_SPI
-#define CONFIG_DM_SPI_FLASH
 
 #define CONFIG_ARCH_CPU_INIT
 #define CONFIG_DISPLAY_CPUINFO
index a1c980d..f724164 100644 (file)
@@ -44,7 +44,6 @@
 
 #define CONFIG_POWER_TPS65090_EC
 #define CONFIG_CROS_EC_SPI             /* Support CROS_EC over SPI */
-#define CONFIG_DM_CROS_EC
 
 #define CONFIG_USB_XHCI
 #define CONFIG_USB_XHCI_EXYNOS
index 6516a72..de12a9e 100644 (file)
@@ -44,7 +44,6 @@
 
 #define CONFIG_POWER_TPS65090_EC
 #define CONFIG_CROS_EC_SPI             /* Support CROS_EC over SPI */
-#define CONFIG_DM_CROS_EC
 
 #define CONFIG_USB_XHCI
 #define CONFIG_USB_XHCI_EXYNOS
index dfa2e07..26167a4 100644 (file)
 #define CONFIG_OF_LIBFDT
 
 #define CONFIG_SYS_GENERIC_BOARD
-#define CONFIG_DM
-#define CONFIG_CMD_DM
-#define CONFIG_DM_GPIO
-#define CONFIG_DM_SERIAL
 
 #endif /* __CONFIG_H */
index 982d0dc..a7eb33e 100644 (file)
 #define CONFIG_OF_LIBFDT
 
 #define CONFIG_SYS_GENERIC_BOARD
-#define CONFIG_DM
-#define CONFIG_CMD_DM
-#define CONFIG_DM_GPIO
-#define CONFIG_DM_SERIAL
 
 #endif /* __CONFIG_H */