generic.h 2.0 KB
Newer Older
1
/*
2
 * linux/arch/arm/mach-at91/generic.h
3 4 5 6 7 8 9 10
 *
 *  Copyright (C) 2005 David Brownell
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

A
Andrew Victor 已提交
11
 /* Processors */
A
Andrew Victor 已提交
12
extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks);
13 14
extern void __init at91sam9260_initialize(unsigned long main_clock);
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);
A
Andrew Victor 已提交
17

A
Andrew Victor 已提交
18
 /* Interrupts */
A
Andrew Victor 已提交
19
extern void __init at91rm9200_init_interrupts(unsigned int priority[]);
20 21
extern void __init at91sam9260_init_interrupts(unsigned int priority[]);
extern void __init at91sam9261_init_interrupts(unsigned int priority[]);
22
extern void __init at91sam9263_init_interrupts(unsigned int priority[]);
23
extern void __init at91sam9rl_init_interrupts(unsigned int priority[]);
A
Andrew Victor 已提交
24
extern void __init at91_aic_init(unsigned int priority[]);
25

A
Andrew Victor 已提交
26
 /* Timer */
27 28
struct sys_timer;
extern struct sys_timer at91rm9200_timer;
29
extern struct sys_timer at91sam926x_timer;
30

A
Andrew Victor 已提交
31
 /* Clocks */
32
extern int __init at91_clock_init(unsigned long main_clock);
33 34 35 36 37 38 39
struct device;
extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);

 /* Power Management */
extern void at91_irq_suspend(void);
extern void at91_irq_resume(void);

A
Andrew Victor 已提交
40 41 42 43 44 45 46 47 48 49 50
 /* GPIO */
#define AT91RM9200_PQFP		3	/* AT91RM9200 PQFP package has 3 banks */
#define AT91RM9200_BGA		4	/* AT91RM9200 BGA package has 4 banks */

struct at91_gpio_bank {
	unsigned short id;		/* peripheral ID */
	unsigned long offset;		/* offset from system peripheral base */
	struct clk *clock;		/* associated clock */
};
extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks);
extern void __init at91_gpio_irq_setup(void);
51 52 53

extern void (*at91_arch_reset)(void);
extern int at91_extern_irq;