Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
soc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
3  *
4  * Under GPLv2
5  */
6 
7 struct at91_init_soc {
8  unsigned int *default_irq_priority;
12  void (*init)(void);
13 };
14 
15 extern struct at91_init_soc at91_boot_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 extern struct at91_init_soc at91sam9n12_soc;
24 
25 static inline int at91_soc_is_enabled(void)
26 {
27  return at91_boot_soc.init != NULL;
28 }
29 
30 #if !defined(CONFIG_SOC_AT91RM9200)
31 #define at91rm9200_soc at91_boot_soc
32 #endif
33 
34 #if !defined(CONFIG_SOC_AT91SAM9260)
35 #define at91sam9260_soc at91_boot_soc
36 #endif
37 
38 #if !defined(CONFIG_SOC_AT91SAM9261)
39 #define at91sam9261_soc at91_boot_soc
40 #endif
41 
42 #if !defined(CONFIG_SOC_AT91SAM9263)
43 #define at91sam9263_soc at91_boot_soc
44 #endif
45 
46 #if !defined(CONFIG_SOC_AT91SAM9G45)
47 #define at91sam9g45_soc at91_boot_soc
48 #endif
49 
50 #if !defined(CONFIG_SOC_AT91SAM9RL)
51 #define at91sam9rl_soc at91_boot_soc
52 #endif
53 
54 #if !defined(CONFIG_SOC_AT91SAM9X5)
55 #define at91sam9x5_soc at91_boot_soc
56 #endif
57 
58 #if !defined(CONFIG_SOC_AT91SAM9N12)
59 #define at91sam9n12_soc at91_boot_soc
60 #endif