diff options
Diffstat (limited to 'arch/arm/mach-at91/soc.h')
-rw-r--r-- | arch/arm/mach-at91/soc.h | 57 |
1 files changed, 47 insertions, 10 deletions
diff --git a/arch/arm/mach-at91/soc.h b/arch/arm/mach-at91/soc.h index 99afa7c90d65..9de7be4037c4 100644 --- a/arch/arm/mach-at91/soc.h +++ b/arch/arm/mach-at91/soc.h | |||
@@ -4,18 +4,55 @@ | |||
4 | * Under GPLv2 | 4 | * Under GPLv2 |
5 | */ | 5 | */ |
6 | 6 | ||
7 | struct at91_soc { | 7 | struct at91_init_soc { |
8 | unsigned int *default_irq_priority; | 8 | unsigned int *default_irq_priority; |
9 | void (*map_io)(void); | 9 | void (*map_io)(void); |
10 | void (*init)(unsigned long main_clock); | 10 | void (*init)(unsigned long main_clock); |
11 | }; | 11 | }; |
12 | 12 | ||
13 | extern struct at91_soc at91_boot_soc; | 13 | extern struct at91_init_soc at91_boot_soc; |
14 | extern struct at91_soc at91cap9_soc; | 14 | extern struct at91_init_soc at91cap9_soc; |
15 | extern struct at91_soc at91rm9200_soc; | 15 | extern struct at91_init_soc at91rm9200_soc; |
16 | extern struct at91_soc at91sam9260_soc; | 16 | extern struct at91_init_soc at91sam9260_soc; |
17 | extern struct at91_soc at91sam9261_soc; | 17 | extern struct at91_init_soc at91sam9261_soc; |
18 | extern struct at91_soc at91sam9263_soc; | 18 | extern struct at91_init_soc at91sam9263_soc; |
19 | extern struct at91_soc at91sam9g45_soc; | 19 | extern struct at91_init_soc at91sam9g45_soc; |
20 | extern struct at91_soc at91sam9rl_soc; | 20 | extern struct at91_init_soc at91sam9rl_soc; |
21 | extern struct at91_soc at91sam9x5_soc; | 21 | extern struct at91_init_soc at91sam9x5_soc; |
22 | |||
23 | static inline int at91_soc_is_enabled(void) | ||
24 | { | ||
25 | return at91_boot_soc.init != NULL; | ||
26 | } | ||
27 | |||
28 | #if !defined(CONFIG_ARCH_AT91CAP9) | ||
29 | #define at91cap9_soc at91_boot_soc | ||
30 | #endif | ||
31 | |||
32 | #if !defined(CONFIG_ARCH_AT91RM9200) | ||
33 | #define at91rm9200_soc at91_boot_soc | ||
34 | #endif | ||
35 | |||
36 | #if !(defined(CONFIG_ARCH_AT91SAM9260) || defined(CONFIG_ARCH_AT91SAM9G20)) | ||
37 | #define at91sam9260_soc at91_boot_soc | ||
38 | #endif | ||
39 | |||
40 | #if !(defined(CONFIG_ARCH_AT91SAM9261) || defined(CONFIG_ARCH_AT91SAM9G10)) | ||
41 | #define at91sam9261_soc at91_boot_soc | ||
42 | #endif | ||
43 | |||
44 | #if !defined(CONFIG_ARCH_AT91SAM9263) | ||
45 | #define at91sam9263_soc at91_boot_soc | ||
46 | #endif | ||
47 | |||
48 | #if !defined(CONFIG_ARCH_AT91SAM9G45) | ||
49 | #define at91sam9g45_soc at91_boot_soc | ||
50 | #endif | ||
51 | |||
52 | #if !defined(CONFIG_ARCH_AT91SAM9RL) | ||
53 | #define at91sam9rl_soc at91_boot_soc | ||
54 | #endif | ||
55 | |||
56 | #if !defined(CONFIG_ARCH_AT91SAM9X5) | ||
57 | #define at91sam9x5_soc at91_boot_soc | ||
58 | #endif | ||