2011-04-23 01:28:34 -06:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
|
|
*
|
|
|
|
* Under GPLv2
|
|
|
|
*/
|
|
|
|
|
2011-04-23 08:12:57 -06:00
|
|
|
struct at91_init_soc {
|
2011-04-23 01:28:34 -06:00
|
|
|
unsigned int *default_irq_priority;
|
2011-04-23 01:28:34 -06:00
|
|
|
void (*map_io)(void);
|
2011-10-13 11:17:18 -06:00
|
|
|
void (*ioremap_registers)(void);
|
2011-04-24 04:15:34 -06:00
|
|
|
void (*register_clocks)(void);
|
2011-04-24 04:20:28 -06:00
|
|
|
void (*init)(void);
|
2011-04-23 01:28:34 -06:00
|
|
|
};
|
|
|
|
|
2011-04-23 08:12:57 -06:00
|
|
|
extern struct at91_init_soc at91_boot_soc;
|
|
|
|
extern struct at91_init_soc at91rm9200_soc;
|
|
|
|
extern struct at91_init_soc at91sam9260_soc;
|
|
|
|
extern struct at91_init_soc at91sam9261_soc;
|
|
|
|
extern struct at91_init_soc at91sam9263_soc;
|
|
|
|
extern struct at91_init_soc at91sam9g45_soc;
|
|
|
|
extern struct at91_init_soc at91sam9rl_soc;
|
|
|
|
extern struct at91_init_soc at91sam9x5_soc;
|
2012-04-17 00:26:30 -06:00
|
|
|
extern struct at91_init_soc at91sam9n12_soc;
|
2011-04-23 08:12:57 -06:00
|
|
|
|
|
|
|
static inline int at91_soc_is_enabled(void)
|
|
|
|
{
|
|
|
|
return at91_boot_soc.init != NULL;
|
|
|
|
}
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91RM9200)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91rm9200_soc at91_boot_soc
|
|
|
|
#endif
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9260)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91sam9260_soc at91_boot_soc
|
|
|
|
#endif
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9261)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91sam9261_soc at91_boot_soc
|
|
|
|
#endif
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9263)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91sam9263_soc at91_boot_soc
|
|
|
|
#endif
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9G45)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91sam9g45_soc at91_boot_soc
|
|
|
|
#endif
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9RL)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91sam9rl_soc at91_boot_soc
|
|
|
|
#endif
|
|
|
|
|
2012-04-05 21:51:50 -06:00
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9X5)
|
2011-04-23 08:12:57 -06:00
|
|
|
#define at91sam9x5_soc at91_boot_soc
|
|
|
|
#endif
|
2012-04-17 00:26:30 -06:00
|
|
|
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9N12)
|
|
|
|
#define at91sam9n12_soc at91_boot_soc
|
|
|
|
#endif
|