dm: Move Raspberry Pi driver model CONFIGs to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 04:41:39 +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 header and use Kconfig
instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig
arch/arm/cpu/arm1176/bcm2835/Kconfig [new file with mode: 0644]
include/configs/rpi.h

index 1f1ccad10ac707b40386da660966aa25251dcd9c..41f32205803874ac612db31402fde0dc21a3cb67 100644 (file)
@@ -839,6 +839,8 @@ endchoice
 
 source "arch/arm/cpu/arm926ejs/davinci/Kconfig"
 
+source "arch/arm/cpu/arm1176/bcm2835/Kconfig"
+
 source "arch/arm/cpu/armv7/exynos/Kconfig"
 
 source "arch/arm/cpu/armv7/highbank/Kconfig"
diff --git a/arch/arm/cpu/arm1176/bcm2835/Kconfig b/arch/arm/cpu/arm1176/bcm2835/Kconfig
new file mode 100644 (file)
index 0000000..94f57d7
--- /dev/null
@@ -0,0 +1,12 @@
+if TARGET_RPI
+
+config DM
+       default y if !SPL_BUILD
+
+config DM_SERIAL
+       default y if !SPL_BUILD
+
+config DM_GPIO
+       default y if !SPL_BUILD
+
+endif
index c94f4112026e890f1e668356dda86fc7d9b15dfd..ea19ad8d072cfdd7957f22e7af9cf3cbfea9790f 100644 (file)
  */
 #define CONFIG_MACH_TYPE               MACH_TYPE_BCM2708
 
-/* Enable driver model */
-#define CONFIG_DM
-#define CONFIG_CMD_DM
-#define CONFIG_DM_GPIO
-#define CONFIG_DM_SERIAL
-
 /* Memory layout */
 #define CONFIG_NR_DRAM_BANKS           1
 #define CONFIG_SYS_SDRAM_BASE          0x00000000