|
@@ -5,6 +5,7 @@
|
|
|
*/
|
|
|
|
|
|
struct at91_init_soc {
|
|
|
+ int builtin;
|
|
|
unsigned int *default_irq_priority;
|
|
|
void (*map_io)(void);
|
|
|
void (*ioremap_registers)(void);
|
|
@@ -22,9 +23,18 @@ extern struct at91_init_soc at91sam9rl_soc;
|
|
|
extern struct at91_init_soc at91sam9x5_soc;
|
|
|
extern struct at91_init_soc at91sam9n12_soc;
|
|
|
|
|
|
+#define AT91_SOC_START(_name) \
|
|
|
+struct at91_init_soc __initdata at91##_name##_soc \
|
|
|
+ __used \
|
|
|
+ = { \
|
|
|
+ .builtin = 1, \
|
|
|
+
|
|
|
+#define AT91_SOC_END \
|
|
|
+};
|
|
|
+
|
|
|
static inline int at91_soc_is_enabled(void)
|
|
|
{
|
|
|
- return at91_boot_soc.init != NULL;
|
|
|
+ return at91_boot_soc.builtin;
|
|
|
}
|
|
|
|
|
|
#if !defined(CONFIG_SOC_AT91RM9200)
|