Merge branch 'v6v7' into devel
[linux/fpc-iii.git] / arch / arm / mach-at91 / generic.h
blob0c66deb2db39a990646d833da4c751e7fc28e81c
1 /*
2 * linux/arch/arm/mach-at91/generic.h
4 * Copyright (C) 2005 David Brownell
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
11 /* Processors */
12 extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks);
13 extern void __init at91sam9260_initialize(unsigned long main_clock);
14 extern void __init at91sam9261_initialize(unsigned long main_clock);
15 extern void __init at91sam9263_initialize(unsigned long main_clock);
16 extern void __init at91sam9rl_initialize(unsigned long main_clock);
17 extern void __init at91sam9g45_initialize(unsigned long main_clock);
18 extern void __init at91x40_initialize(unsigned long main_clock);
19 extern void __init at91cap9_initialize(unsigned long main_clock);
20 extern void __init at572d940hf_initialize(unsigned long main_clock);
22 /* Interrupts */
23 extern void __init at91rm9200_init_interrupts(unsigned int priority[]);
24 extern void __init at91sam9260_init_interrupts(unsigned int priority[]);
25 extern void __init at91sam9261_init_interrupts(unsigned int priority[]);
26 extern void __init at91sam9263_init_interrupts(unsigned int priority[]);
27 extern void __init at91sam9rl_init_interrupts(unsigned int priority[]);
28 extern void __init at91sam9g45_init_interrupts(unsigned int priority[]);
29 extern void __init at91x40_init_interrupts(unsigned int priority[]);
30 extern void __init at91cap9_init_interrupts(unsigned int priority[]);
31 extern void __init at572d940hf_init_interrupts(unsigned int priority[]);
32 extern void __init at91_aic_init(unsigned int priority[]);
34 /* Timer */
35 struct sys_timer;
36 extern struct sys_timer at91rm9200_timer;
37 extern struct sys_timer at91sam926x_timer;
38 extern struct sys_timer at91x40_timer;
40 /* Clocks */
41 extern int __init at91_clock_init(unsigned long main_clock);
42 struct device;
43 extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);
45 /* Power Management */
46 extern void at91_irq_suspend(void);
47 extern void at91_irq_resume(void);
49 /* reset */
50 extern void at91sam9_alt_reset(void);
52 /* GPIO */
53 #define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */
54 #define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */
56 struct at91_gpio_bank {
57 unsigned short id; /* peripheral ID */
58 unsigned long offset; /* offset from system peripheral base */
59 struct clk *clock; /* associated clock */
61 extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
62 extern void __init at91_gpio_irq_setup(void);
64 extern void (*at91_arch_reset)(void);
65 extern int at91_extern_irq;