Merge tag 'trace-seq-buf-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...
[cascardo/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         void (*map_io)(void);
10         void (*init)(void);
11 };
12
13 extern struct at91_init_soc at91_boot_soc;
14 extern struct at91_init_soc at91rm9200_soc;
15 extern struct at91_init_soc at91sam9260_soc;
16 extern struct at91_init_soc at91sam9261_soc;
17 extern struct at91_init_soc at91sam9263_soc;
18 extern struct at91_init_soc at91sam9g45_soc;
19 extern struct at91_init_soc at91sam9rl_soc;
20 extern struct at91_init_soc at91sam9x5_soc;
21 extern struct at91_init_soc at91sam9n12_soc;
22 extern struct at91_init_soc sama5d3_soc;
23 extern struct at91_init_soc sama5d4_soc;
24
25 #define AT91_SOC_START(_name)                           \
26 struct at91_init_soc __initdata _name##_soc             \
27  __used                                                 \
28                                                 = {     \
29         .builtin        = 1,                            \
30
31 #define AT91_SOC_END                                    \
32 };
33
34 static inline int at91_soc_is_enabled(void)
35 {
36         return at91_boot_soc.builtin;
37 }
38
39 #if !defined(CONFIG_SOC_AT91RM9200)
40 #define at91rm9200_soc  at91_boot_soc
41 #endif
42
43 #if !defined(CONFIG_SOC_AT91SAM9260)
44 #define at91sam9260_soc at91_boot_soc
45 #endif
46
47 #if !defined(CONFIG_SOC_AT91SAM9261)
48 #define at91sam9261_soc at91_boot_soc
49 #endif
50
51 #if !defined(CONFIG_SOC_AT91SAM9263)
52 #define at91sam9263_soc at91_boot_soc
53 #endif
54
55 #if !defined(CONFIG_SOC_AT91SAM9G45)
56 #define at91sam9g45_soc at91_boot_soc
57 #endif
58
59 #if !defined(CONFIG_SOC_AT91SAM9RL)
60 #define at91sam9rl_soc  at91_boot_soc
61 #endif
62
63 #if !defined(CONFIG_SOC_AT91SAM9X5)
64 #define at91sam9x5_soc  at91_boot_soc
65 #endif
66
67 #if !defined(CONFIG_SOC_AT91SAM9N12)
68 #define at91sam9n12_soc at91_boot_soc
69 #endif
70
71 #if !defined(CONFIG_SOC_SAMA5D3)
72 #define sama5d3_soc     at91_boot_soc
73 #endif
74
75 #if !defined(CONFIG_SOC_SAMA5D4)
76 #define sama5d4_soc     at91_boot_soc
77 #endif