diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-30 02:32:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-30 02:32:53 -0400 |
commit | 8f57be8ee44d92ef161c5af685aedbb717db96e0 (patch) | |
tree | d44a1cf0843390c6ff679f15e052ae1fc87680a8 /arch/arm/mach-at91/soc.h | |
parent | cb7dee8d22f3e9320424e769d860fbd9712a0666 (diff) | |
parent | fb149f9e2835446e02e796081635520b881dc351 (diff) |
Merge branch 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc:
at91: add arch specific ioremap support
at91: factorize sram init
at91: move register clocks to soc generic init
at91: move clock subsystem init to soc generic init
at91: use structure to store the current soc
at91: remove AT91_DBGU offset from dbgu register macro
at91: factorize at91 interrupts init to soc
at91: introduce commom AT91_BASE_SYS
Diffstat (limited to 'arch/arm/mach-at91/soc.h')
-rw-r--r-- | arch/arm/mach-at91/soc.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/soc.h b/arch/arm/mach-at91/soc.h new file mode 100644 index 000000000000..21ed8816e6f7 --- /dev/null +++ b/arch/arm/mach-at91/soc.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | ||
3 | * | ||
4 | * Under GPLv2 | ||
5 | */ | ||
6 | |||
7 | struct at91_init_soc { | ||
8 | unsigned int *default_irq_priority; | ||
9 | void (*map_io)(void); | ||
10 | void (*register_clocks)(void); | ||
11 | void (*init)(void); | ||
12 | }; | ||
13 | |||
14 | extern struct at91_init_soc at91_boot_soc; | ||
15 | extern struct at91_init_soc at91cap9_soc; | ||
16 | extern struct at91_init_soc at91rm9200_soc; | ||
17 | extern struct at91_init_soc at91sam9260_soc; | ||
18 | extern struct at91_init_soc at91sam9261_soc; | ||
19 | extern struct at91_init_soc at91sam9263_soc; | ||
20 | extern struct at91_init_soc at91sam9g45_soc; | ||
21 | extern struct at91_init_soc at91sam9rl_soc; | ||
22 | extern struct at91_init_soc at91sam9x5_soc; | ||
23 | |||
24 | static inline int at91_soc_is_enabled(void) | ||
25 | { | ||
26 | return at91_boot_soc.init != NULL; | ||
27 | } | ||
28 | |||
29 | #if !defined(CONFIG_ARCH_AT91CAP9) | ||
30 | #define at91cap9_soc at91_boot_soc | ||
31 | #endif | ||
32 | |||
33 | #if !defined(CONFIG_ARCH_AT91RM9200) | ||
34 | #define at91rm9200_soc at91_boot_soc | ||
35 | #endif | ||
36 | |||
37 | #if !(defined(CONFIG_ARCH_AT91SAM9260) || defined(CONFIG_ARCH_AT91SAM9G20)) | ||
38 | #define at91sam9260_soc at91_boot_soc | ||
39 | #endif | ||
40 | |||
41 | #if !(defined(CONFIG_ARCH_AT91SAM9261) || defined(CONFIG_ARCH_AT91SAM9G10)) | ||
42 | #define at91sam9261_soc at91_boot_soc | ||
43 | #endif | ||
44 | |||
45 | #if !defined(CONFIG_ARCH_AT91SAM9263) | ||
46 | #define at91sam9263_soc at91_boot_soc | ||
47 | #endif | ||
48 | |||
49 | #if !defined(CONFIG_ARCH_AT91SAM9G45) | ||
50 | #define at91sam9g45_soc at91_boot_soc | ||
51 | #endif | ||
52 | |||
53 | #if !defined(CONFIG_ARCH_AT91SAM9RL) | ||
54 | #define at91sam9rl_soc at91_boot_soc | ||
55 | #endif | ||
56 | |||
57 | #if !defined(CONFIG_ARCH_AT91SAM9X5) | ||
58 | #define at91sam9x5_soc at91_boot_soc | ||
59 | #endif | ||