ARM: at91: introduce the core type choice to split ARMv4/5 and ARMv7 arch
authorLudovic Desroches <ludovic.desroches@atmel.com>
Fri, 22 Mar 2013 13:24:11 +0000 (13:24 +0000)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 26 Mar 2013 11:18:04 +0000 (12:18 +0100)
As we will introduce SAMA5, we need to distinguish the core architecture. It is
useless to show ARMv4/5 entries if we are configuring a kernel for SAMA5
devices.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/Kconfig

index 68c53c3933ef4d93af878599e3344e6dbcf0c864..8b35c7f1634fe3ca9166b2316878e7b321e22265 100644 (file)
@@ -6,6 +6,10 @@ config HAVE_AT91_DBGU0
 config HAVE_AT91_DBGU1
        bool
 
+config AT91_PMC_UNIT
+       bool
+       default !ARCH_AT91X40
+
 config AT91_SAM9_ALT_RESET
        bool
        default !ARCH_AT91X40
@@ -27,8 +31,21 @@ config SOC_AT91SAM9
 
 menu "Atmel AT91 System-on-Chip"
 
+choice
+
+       prompt "Core type"
+
+config SOC_SAM_V4_V5
+       bool "ARM7/ARM9"
+       help
+         Select this if you are using one of Atmel's AT91SAM9, AT91RM9200
+         or AT91X40 SoC.
+
+endchoice
+
 comment "Atmel AT91 Processor"
 
+if SOC_SAM_V4_V5
 config SOC_AT91RM9200
        bool "AT91RM9200"
        select CPU_ARM920T
@@ -94,13 +111,10 @@ config SOC_AT91SAM9N12
        help
          Select this if you are using Atmel's AT91SAM9N12 SoC.
 
-config AT91_PMC_UNIT
-       bool
-       default !ARCH_AT91X40
-
 # ----------------------------------------------------------
 
 source arch/arm/mach-at91/Kconfig.non_dt
+endif # SOC_SAM_V4_V5
 
 comment "Generic Board Type"