Blame view
arch/arm/mach-at91/soc.h
1.46 KB
21d08b9d5 at91: introduce c... |
1 2 3 4 5 |
/* * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> * * Under GPLv2 */ |
8c3583b63 at91: use structu... |
6 |
struct at91_init_soc { |
92100c12c at91: factorize a... |
7 |
unsigned int *default_irq_priority; |
21d08b9d5 at91: introduce c... |
8 |
void (*map_io)(void); |
cfa5a1fe7 ARM: at91: add io... |
9 |
void (*ioremap_registers)(void); |
51ddec761 at91: move regist... |
10 |
void (*register_clocks)(void); |
465393749 at91: move clock ... |
11 |
void (*init)(void); |
21d08b9d5 at91: introduce c... |
12 |
}; |
8c3583b63 at91: use structu... |
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
extern struct at91_init_soc at91_boot_soc; extern struct at91_init_soc at91cap9_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; static inline int at91_soc_is_enabled(void) { return at91_boot_soc.init != NULL; } #if !defined(CONFIG_ARCH_AT91CAP9) #define at91cap9_soc at91_boot_soc #endif #if !defined(CONFIG_ARCH_AT91RM9200) #define at91rm9200_soc at91_boot_soc #endif #if !(defined(CONFIG_ARCH_AT91SAM9260) || defined(CONFIG_ARCH_AT91SAM9G20)) #define at91sam9260_soc at91_boot_soc #endif #if !(defined(CONFIG_ARCH_AT91SAM9261) || defined(CONFIG_ARCH_AT91SAM9G10)) #define at91sam9261_soc at91_boot_soc #endif #if !defined(CONFIG_ARCH_AT91SAM9263) #define at91sam9263_soc at91_boot_soc #endif #if !defined(CONFIG_ARCH_AT91SAM9G45) #define at91sam9g45_soc at91_boot_soc #endif #if !defined(CONFIG_ARCH_AT91SAM9RL) #define at91sam9rl_soc at91_boot_soc #endif #if !defined(CONFIG_ARCH_AT91SAM9X5) #define at91sam9x5_soc at91_boot_soc #endif |