ARM: bcm2835: move CONFIG_BCM283* to Kconfig
authorStephen Warren <swarren@wwwdotorg.org>
Fri, 25 Mar 2016 04:15:16 +0000 (22:15 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2016 21:17:41 +0000 (17:17 -0400)
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-bcm283x/Kconfig
include/configs/rpi.h
include/configs/rpi_2.h

index 1a7baf69e59047c71f0f8c584ea45b7c06930b8e..dc6770437ec6d97390ec24a02e8299909442fef3 100644 (file)
@@ -1,3 +1,11 @@
+config BCM2835
+       bool "Broadcom BCM2835 SoC support"
+       depends on ARCH_BCM283X
+
+config BCM2836
+       bool "Broadcom BCM2836 SoC support"
+       depends on ARCH_BCM283X
+
 menu "Broadcom BCM283X family"
        depends on ARCH_BCM283X
 
@@ -7,12 +15,14 @@ choice
 
 config TARGET_RPI
        bool "Raspberry Pi"
+       select BCM2835
        select CPU_ARM1176
 
 config TARGET_RPI_2
        bool "Raspberry Pi 2"
-       select CPU_V7
        select ARMV7_LPAE
+       select BCM2836
+       select CPU_V7
 
 endchoice
 
index a788ce42e44c386b4eed71b0ac6a84e4a138bb44..86422e390da2d966a15cf4b993c56f7e7966aa72 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_BCM2835
 #define CONFIG_SYS_CACHELINE_SIZE              32
 
 #include "rpi-common.h"
index 13dc8de14315147d798f8074a9e021cf40938125..0917e865086430ebb27f78a2235d770f85c3c2b7 100644 (file)
@@ -8,7 +8,6 @@
 #define __CONFIG_H
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
-#define CONFIG_BCM2836
 #define CONFIG_SYS_CACHELINE_SIZE              64
 
 #include "rpi-common.h"