aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/generic.h')
-rw-r--r--arch/arm/mach-at91/generic.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h
new file mode 100644
index 000000000000..bda26221c522
--- /dev/null
+++ b/arch/arm/mach-at91/generic.h
@@ -0,0 +1,51 @@
1/*
2 * linux/arch/arm/mach-at91/generic.h
3 *
4 * Copyright (C) 2005 David Brownell
5 *
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 */
10
11 /* Processors */
12extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks);
13extern void __init at91sam9260_initialize(unsigned long main_clock);
14extern void __init at91sam9261_initialize(unsigned long main_clock);
15extern void __init at91sam9263_initialize(unsigned long main_clock);
16
17 /* Interrupts */
18extern void __init at91rm9200_init_interrupts(unsigned int priority[]);
19extern void __init at91sam9260_init_interrupts(unsigned int priority[]);
20extern void __init at91sam9261_init_interrupts(unsigned int priority[]);
21extern void __init at91sam9263_init_interrupts(unsigned int priority[]);
22extern void __init at91_aic_init(unsigned int priority[]);
23
24 /* Timer */
25struct sys_timer;
26extern struct sys_timer at91rm9200_timer;
27extern struct sys_timer at91sam926x_timer;
28
29 /* Clocks */
30extern int __init at91_clock_init(unsigned long main_clock);
31struct device;
32extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);
33
34 /* Power Management */
35extern void at91_irq_suspend(void);
36extern void at91_irq_resume(void);
37
38 /* GPIO */
39#define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */
40#define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */
41
42struct at91_gpio_bank {
43 unsigned short id; /* peripheral ID */
44 unsigned long offset; /* offset from system peripheral base */
45 struct clk *clock; /* associated clock */
46};
47extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
48extern void __init at91_gpio_irq_setup(void);
49
50extern void (*at91_arch_reset)(void);
51extern int at91_extern_irq;