| SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 1 | /* | 
 | 2 |  * linux/arch/arm/mach-at91rm9200/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 |  | 
| Andrew Victor | 2eeaaa2 | 2006-09-27 10:50:59 +0100 | [diff] [blame] | 11 |  /* Processors */ | 
| Andrew Victor | f217383 | 2006-09-27 13:23:00 +0100 | [diff] [blame] | 12 | extern void __init at91rm9200_initialize(unsigned long main_clock, unsigned short banks); | 
| Andrew Victor | 2eeaaa2 | 2006-09-27 10:50:59 +0100 | [diff] [blame] | 13 |  | 
| Andrew Victor | ba854e1 | 2006-07-05 17:22:52 +0100 | [diff] [blame] | 14 |  /* Interrupts */ | 
| Andrew Victor | f217383 | 2006-09-27 13:23:00 +0100 | [diff] [blame] | 15 | extern void __init at91rm9200_init_interrupts(unsigned int priority[]); | 
| Andrew Victor | ba854e1 | 2006-07-05 17:22:52 +0100 | [diff] [blame] | 16 | extern void __init at91_aic_init(unsigned int priority[]); | 
| SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 17 |  | 
| Andrew Victor | ba854e1 | 2006-07-05 17:22:52 +0100 | [diff] [blame] | 18 |  /* Timer */ | 
| SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 19 | struct sys_timer; | 
 | 20 | extern struct sys_timer at91rm9200_timer; | 
 | 21 |  | 
| Andrew Victor | ba854e1 | 2006-07-05 17:22:52 +0100 | [diff] [blame] | 22 |  /* Clocks */ | 
| SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 23 | extern int __init at91_clock_init(unsigned long main_clock); | 
| Andrew Victor | 907d6de | 2006-06-20 19:30:19 +0100 | [diff] [blame] | 24 | struct device; | 
 | 25 | extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func); | 
 | 26 |  | 
 | 27 |  /* Power Management */ | 
 | 28 | extern void at91_irq_suspend(void); | 
 | 29 | extern void at91_irq_resume(void); | 
 | 30 |  | 
| Andrew Victor | f217383 | 2006-09-27 13:23:00 +0100 | [diff] [blame] | 31 |  /* GPIO */ | 
 | 32 | #define AT91RM9200_PQFP		3	/* AT91RM9200 PQFP package has 3 banks */ | 
 | 33 | #define AT91RM9200_BGA		4	/* AT91RM9200 BGA package has 4 banks */ | 
 | 34 |  | 
 | 35 | struct at91_gpio_bank { | 
 | 36 | 	unsigned short id;		/* peripheral ID */ | 
 | 37 | 	unsigned long offset;		/* offset from system peripheral base */ | 
 | 38 | 	struct clk *clock;		/* associated clock */ | 
 | 39 | }; | 
 | 40 | extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks); | 
 | 41 | extern void __init at91_gpio_irq_setup(void); |