linux/arch/arm/mach-at91/include/mach
Jean-Christophe PLAGNIOL-VILLARD 8c3583b634 at91: use structure to store the current soc
instead of reading the registers everytime

the current implementation respect the following constrain:
 - allow 1 to n soc to be enabled
 - allow to have a virtual cpu type and subtype
 - always detect the cpu type and subtype and report it
 - detect if the soc support is enabled
 - prepare for sysfs export support
 - drop soc specific code via compiler when the soc not enabled
   (via cpu_is_xxx)

Today if we read the exid we will have the same value for 9g35 and 9m11
and we will need to check the cidr too

with the new implementation we just need to check the soc subtype

this will also allow to have specific virtual subtype for rm9200 which the
board will have to specify via at91rm9200_set_type(int) as we have no way to
detect it.

this implementation is inspired by the SH cpu detection support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
2011-07-28 15:07:28 +00:00
..
at_hdmac.h dmaengine: at_hdmac: add DMA slave transfers 2009-07-22 23:15:33 -07:00
at91_adc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_aic.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_dbgu.h at91: remove AT91_DBGU offset from dbgu register macro 2011-07-28 15:07:28 +00:00
at91_mci.h Fix common misspellings 2011-03-31 11:26:23 -03:00
at91_pio.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_pit.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91_pmc.h ARM: 5850/1: [AT91] AT572D940HF processor support 2010-01-20 12:34:06 +00:00
at91_rstc.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91_rtc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_rtt.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91_shdwc.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91_spi.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_ssc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_st.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_tc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_twi.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91_wdt.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91cap9_ddrsdr.h ARM: 6185/1: AT91: PM: dual ram controller support 2010-07-09 12:31:50 +01:00
at91cap9_matrix.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91cap9.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91rm9200_emac.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91rm9200_mc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91rm9200.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91sam9_ddrsdr.h ARM: 6185/1: AT91: PM: dual ram controller support 2010-07-09 12:31:50 +01:00
at91sam9_sdramc.h ARM: 6185/1: AT91: PM: dual ram controller support 2010-07-09 12:31:50 +01:00
at91sam9_smc.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91sam9g45_matrix.h [ARM] 5571/1: at91: Basic support for at91sam9g45 series: header files. 2009-06-27 11:05:21 +01:00
at91sam9g45.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91sam9rl_matrix.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91sam9rl.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91sam9260_matrix.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91sam9260.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91sam9261_matrix.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
at91sam9261.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91sam9263_matrix.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91sam9263.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
at91x40.h at91: factorize common irq ID 2011-05-25 23:04:34 +08:00
atmel-mci.h atmel-mci: change use of dma slave interface 2009-12-15 08:53:35 -08:00
board.h at91: drop at572d940hf support 2011-05-25 23:04:35 +08:00
clkdev.h at91: switch to CLKDEV_LOOKUP 2011-05-25 23:04:34 +08:00
cpu.h at91: use structure to store the current soc 2011-07-28 15:07:28 +00:00
debug-macro.S at91: remove AT91_DBGU offset from dbgu register macro 2011-07-28 15:07:28 +00:00
entry-macro.S [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
gpio.h Fix common misspellings 2011-03-31 11:26:23 -03:00
gsia18s.h AT91: Support for gsia18s board 2011-01-14 19:49:04 +01:00
hardware.h at91: introduce commom AT91_BASE_SYS 2011-07-28 15:07:28 +00:00
io.h [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
irqs.h [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
memory.h at91: drop boot_params and PLAT_PHYS_OFFSET 2011-05-25 23:04:35 +08:00
stamp9g20.h at91: fix map_io init usage 2011-05-25 23:04:34 +08:00
system_rev.h AT91: Change nand buswidth logic to match hardware default configuration 2011-07-04 23:22:25 +02:00
system.h Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into devel-stable 2010-10-19 20:12:24 +01:00
timex.h at91: drop at572d940hf support 2011-05-25 23:04:35 +08:00
uncompress.h [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
vmalloc.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00