ARM: make mach/io.h include optional
[deliverable/linux.git] / arch / arm / mach-at91 / soc.h
CommitLineData
21d08b9d
JCPV
1/*
2 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
3 *
4 * Under GPLv2
5 */
6
8c3583b6 7struct at91_init_soc {
92100c12 8 unsigned int *default_irq_priority;
21d08b9d 9 void (*map_io)(void);
cfa5a1fe 10 void (*ioremap_registers)(void);
51ddec76 11 void (*register_clocks)(void);
46539374 12 void (*init)(void);
21d08b9d
JCPV
13};
14
8c3583b6 15extern struct at91_init_soc at91_boot_soc;
8c3583b6
JCPV
16extern struct at91_init_soc at91rm9200_soc;
17extern struct at91_init_soc at91sam9260_soc;
18extern struct at91_init_soc at91sam9261_soc;
19extern struct at91_init_soc at91sam9263_soc;
20extern struct at91_init_soc at91sam9g45_soc;
21extern struct at91_init_soc at91sam9rl_soc;
22extern struct at91_init_soc at91sam9x5_soc;
23
24static inline int at91_soc_is_enabled(void)
25{
26 return at91_boot_soc.init != NULL;
27}
28
8c3583b6
JCPV
29#if !defined(CONFIG_ARCH_AT91RM9200)
30#define at91rm9200_soc at91_boot_soc
31#endif
32
33#if !(defined(CONFIG_ARCH_AT91SAM9260) || defined(CONFIG_ARCH_AT91SAM9G20))
34#define at91sam9260_soc at91_boot_soc
35#endif
36
37#if !(defined(CONFIG_ARCH_AT91SAM9261) || defined(CONFIG_ARCH_AT91SAM9G10))
38#define at91sam9261_soc at91_boot_soc
39#endif
40
41#if !defined(CONFIG_ARCH_AT91SAM9263)
42#define at91sam9263_soc at91_boot_soc
43#endif
44
45#if !defined(CONFIG_ARCH_AT91SAM9G45)
46#define at91sam9g45_soc at91_boot_soc
47#endif
48
49#if !defined(CONFIG_ARCH_AT91SAM9RL)
50#define at91sam9rl_soc at91_boot_soc
51#endif
52
53#if !defined(CONFIG_ARCH_AT91SAM9X5)
54#define at91sam9x5_soc at91_boot_soc
55#endif
This page took 0.055746 seconds and 5 git commands to generate.