diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-12-28 20:16:10 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-07 18:56:58 +0100 |
commit | 29597813dcfa9008f26a65002ee0e3f0979326f9 (patch) | |
tree | f3cdaeb88d4276364564131cf6ecf4b8efc61026 /arch/arm/mach-at91/Kconfig | |
parent | 49edc4c9876d0698c090ddfc2de6802eedee5e93 (diff) | |
download | barebox-29597813dcfa9008f26a65002ee0e3f0979326f9.tar.gz barebox-29597813dcfa9008f26a65002ee0e3f0979326f9.tar.xz |
at91: autodetect the soc one time at postcore_initcall
and then register a device
The code is take from linux
drop AT91_BASE_SYS for dbgu
factorise the soc type in the Kconfig but keep the ARCH_ so far
as the device code have the same function accross soc which for now does not
allow us to compile soc together
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91/Kconfig')
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 99 |
1 files changed, 69 insertions, 30 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 9ee8793376..fa8ed659b7 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -49,69 +49,108 @@ config AT91SAM9G45_RESET comment "Atmel AT91 System-on-Chip" -choice - prompt "Atmel AT91 Processor" - -config ARCH_AT91RM9200 - bool "AT91RM9200" +config SOC_AT91RM9200 + bool select CPU_ARM920T select HAVE_AT91_DBGU0 select HAS_AT91_ETHER select MACH_HAS_LOWLEVEL_INIT - select MACH_DO_LOWLEVEL_INIT -config ARCH_AT91SAM9260 - bool "AT91SAM9260" +config SOC_AT91SAM9260 + bool select CPU_ARM926T select HAVE_AT91_DBGU0 select HAS_MACB select AT91SAM9_RESET + help + Select this if you are using one of Atmel's AT91SAM9260, AT91SAM9XE + or AT91SAM9G20 SoC. -config ARCH_AT91SAM9261 - bool "AT91SAM9261" +config SOC_AT91SAM9261 + bool select CPU_ARM926T select HAVE_AT91_DBGU0 select AT91SAM9_RESET + help + Select this if you are using one of Atmel's AT91SAM9261 or AT91SAM9G10 SoC. -config ARCH_AT91SAM9263 - bool "AT91SAM9263" +config SOC_AT91SAM9263 + bool select CPU_ARM926T select HAVE_AT91_DBGU1 select HAS_MACB select AT91SAM9_RESET -config ARCH_AT91SAM9G10 - bool "AT91SAM9G10" +config SOC_AT91SAM9G45 + bool select CPU_ARM926T - select HAVE_AT91_DBGU0 - select AT91SAM9_RESET + select HAVE_AT91_DBGU1 + select HAS_MACB + select AT91SAM9G45_RESET + help + Select this if you are using one of Atmel's AT91SAM9G45 family SoC. + This support covers AT91SAM9G45, AT91SAM9G46, AT91SAM9M10 and AT91SAM9M11. -config ARCH_AT91SAM9G20 - bool "AT91SAM9G20" +config SOC_AT91SAM9X5 + bool select CPU_ARM926T select HAVE_AT91_DBGU0 select HAS_MACB - select AT91SAM9_RESET + select AT91SAM9G45_RESET + help + Select this if you are using one of Atmel's AT91SAM9x5 family SoC. + This means that your SAM9 name finishes with a '5' (except if it is + AT91SAM9G45!). + This support covers AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35 + and AT91SAM9X35. -config ARCH_AT91SAM9G45 - bool "AT91SAM9G45 or AT91SAM9M10" +config SOC_AT91SAM9N12 + bool select CPU_ARM926T - select HAVE_AT91_DBGU1 - select HAS_MACB + select HAVE_AT91_DBGU0 select AT91SAM9G45_RESET + help + Select this if you are using Atmel's AT91SAM9N12 SoC. + +choice + prompt "Atmel AT91 Processor" + +config ARCH_AT91RM9200 + bool "AT91RM9200" + select MACH_DO_LOWLEVEL_INIT + select SOC_AT91RM9200 + +config ARCH_AT91SAM9260 + bool "AT91SAM9260" + select SOC_AT91SAM9260 + +config ARCH_AT91SAM9261 + bool "AT91SAM9261" + select SOC_AT91SAM9261 + +config ARCH_AT91SAM9263 + bool "AT91SAM9263" + select SOC_AT91SAM9263 + +config ARCH_AT91SAM9G10 + bool "AT91SAM9G10" + select SOC_AT91SAM9261 + +config ARCH_AT91SAM9G20 + bool "AT91SAM9G20" + select SOC_AT91SAM9260 + +config ARCH_AT91SAM9G45 + bool "AT91SAM9G45 or AT91SAM9M10" + select SOC_AT91SAM9G45 config ARCH_AT91SAM9X5 bool "AT91SAM9X5" - select CPU_ARM926T - select HAVE_AT91_DBGU0 - select HAS_MACB - select AT91SAM9G45_RESET + select SOC_AT91SAM9X5 config ARCH_AT91SAM9N12 bool "AT91SAM9N12" - select CPU_ARM926T - select HAVE_AT91_DBGU0 - select AT91SAM9G45_RESET + select SOC_AT91SAM9N12 endchoice |