mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
546c830c90
Since 4b68520dc0ec96153bc0d87bca5ffba508edfcf ARM: at91: add AIC5 support we allocate the at91_extern_irq. This patch makes it static and stores the non-dt extern irq in the soc structure. It is then possible to use a at91_get_extern_irq() function to get the value for outside of the irq driver. It is useful for passing its value to at91_aic_init(). Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com> [nicolas.ferre@atmel.com: rework commit message] Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
77 lines
1.7 KiB
C
77 lines
1.7 KiB
C
/*
|
|
* Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
*
|
|
* Under GPLv2
|
|
*/
|
|
|
|
struct at91_init_soc {
|
|
int builtin;
|
|
u32 extern_irq;
|
|
unsigned int *default_irq_priority;
|
|
void (*map_io)(void);
|
|
void (*ioremap_registers)(void);
|
|
void (*register_clocks)(void);
|
|
void (*init)(void);
|
|
};
|
|
|
|
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;
|
|
extern struct at91_init_soc at91sam9n12_soc;
|
|
extern struct at91_init_soc sama5d3_soc;
|
|
|
|
#define AT91_SOC_START(_name) \
|
|
struct at91_init_soc __initdata _name##_soc \
|
|
__used \
|
|
= { \
|
|
.builtin = 1, \
|
|
|
|
#define AT91_SOC_END \
|
|
};
|
|
|
|
static inline int at91_soc_is_enabled(void)
|
|
{
|
|
return at91_boot_soc.builtin;
|
|
}
|
|
|
|
#if !defined(CONFIG_SOC_AT91RM9200)
|
|
#define at91rm9200_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9260)
|
|
#define at91sam9260_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9261)
|
|
#define at91sam9261_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9263)
|
|
#define at91sam9263_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9G45)
|
|
#define at91sam9g45_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9RL)
|
|
#define at91sam9rl_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9X5)
|
|
#define at91sam9x5_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_AT91SAM9N12)
|
|
#define at91sam9n12_soc at91_boot_soc
|
|
#endif
|
|
|
|
#if !defined(CONFIG_SOC_SAMA5D3)
|
|
#define sama5d3_soc at91_boot_soc
|
|
#endif
|