]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/mach-at91/soc.h
ARM: arch_timer: Silence debug preempt warnings
[karo-tx-linux.git] / arch / arm / mach-at91 / soc.h
1 /*
2  * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
3  *
4  * Under GPLv2
5  */
6
7 struct at91_init_soc {
8         int builtin;
9         unsigned int *default_irq_priority;
10         void (*map_io)(void);
11         void (*ioremap_registers)(void);
12         void (*register_clocks)(void);
13         void (*init)(void);
14 };
15
16 extern struct at91_init_soc at91_boot_soc;
17 extern struct at91_init_soc at91rm9200_soc;
18 extern struct at91_init_soc at91sam9260_soc;
19 extern struct at91_init_soc at91sam9261_soc;
20 extern struct at91_init_soc at91sam9263_soc;
21 extern struct at91_init_soc at91sam9g45_soc;
22 extern struct at91_init_soc at91sam9rl_soc;
23 extern struct at91_init_soc at91sam9x5_soc;
24 extern struct at91_init_soc at91sam9n12_soc;
25
26 #define AT91_SOC_START(_name)                           \
27 struct at91_init_soc __initdata at91##_name##_soc       \
28  __used                                                 \
29                                                 = {     \
30         .builtin        = 1,                            \
31
32 #define AT91_SOC_END                                    \
33 };
34
35 static inline int at91_soc_is_enabled(void)
36 {
37         return at91_boot_soc.builtin;
38 }
39
40 #if !defined(CONFIG_SOC_AT91RM9200)
41 #define at91rm9200_soc  at91_boot_soc
42 #endif
43
44 #if !defined(CONFIG_SOC_AT91SAM9260)
45 #define at91sam9260_soc at91_boot_soc
46 #endif
47
48 #if !defined(CONFIG_SOC_AT91SAM9261)
49 #define at91sam9261_soc at91_boot_soc
50 #endif
51
52 #if !defined(CONFIG_SOC_AT91SAM9263)
53 #define at91sam9263_soc at91_boot_soc
54 #endif
55
56 #if !defined(CONFIG_SOC_AT91SAM9G45)
57 #define at91sam9g45_soc at91_boot_soc
58 #endif
59
60 #if !defined(CONFIG_SOC_AT91SAM9RL)
61 #define at91sam9rl_soc  at91_boot_soc
62 #endif
63
64 #if !defined(CONFIG_SOC_AT91SAM9X5)
65 #define at91sam9x5_soc  at91_boot_soc
66 #endif
67
68 #if !defined(CONFIG_SOC_AT91SAM9N12)
69 #define at91sam9n12_soc at91_boot_soc
70 #endif