diff options
author | Andrew Victor <andrew@sanpeople.com> | 2007-02-05 05:42:07 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-08 09:50:56 -0500 |
commit | 9d0412680e6c7b685ee466842047bcfb924d6dc5 (patch) | |
tree | c79300964ef1aca5d24571696f95e76b37c14679 /arch/arm/mach-at91/generic.h | |
parent | a93d48cc6019f84394b31d10c0d830a3b71696be (diff) |
[ARM] 4124/1: Rename mach-at91rm9200 and arch-at91rm9200 directories
Now that Linux includes support for the Atmel AT91SAM9260 and
AT91SAM9261 processors in addition to the original Atmel AT91RM9200
(with support for more AT91 processors pending), the "mach-at91rm9200"
and "arch-at91rm9200" directories should be renamed to indicate their
more generic nature.
The following git commands should be run BEFORE applying this patch:
git-mv arch/arm/mach-at91rm9200 arch/arm/mach-at91
git-mv include/asm-arm/arch-at91rm9200 include/asm-arm/arch-at91
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/generic.h')
-rw-r--r-- | arch/arm/mach-at91/generic.h | 49 |
1 files changed, 49 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..10ee37bf6d4d --- /dev/null +++ b/arch/arm/mach-at91/generic.h | |||
@@ -0,0 +1,49 @@ | |||
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 */ | ||
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 | |||
16 | /* Interrupts */ | ||
17 | extern void __init at91rm9200_init_interrupts(unsigned int priority[]); | ||
18 | extern void __init at91sam9260_init_interrupts(unsigned int priority[]); | ||
19 | extern void __init at91sam9261_init_interrupts(unsigned int priority[]); | ||
20 | extern void __init at91_aic_init(unsigned int priority[]); | ||
21 | |||
22 | /* Timer */ | ||
23 | struct sys_timer; | ||
24 | extern struct sys_timer at91rm9200_timer; | ||
25 | extern struct sys_timer at91sam926x_timer; | ||
26 | |||
27 | /* Clocks */ | ||
28 | extern int __init at91_clock_init(unsigned long main_clock); | ||
29 | struct device; | ||
30 | extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func); | ||
31 | |||
32 | /* Power Management */ | ||
33 | extern void at91_irq_suspend(void); | ||
34 | extern void at91_irq_resume(void); | ||
35 | |||
36 | /* GPIO */ | ||
37 | #define AT91RM9200_PQFP 3 /* AT91RM9200 PQFP package has 3 banks */ | ||
38 | #define AT91RM9200_BGA 4 /* AT91RM9200 BGA package has 4 banks */ | ||
39 | |||
40 | struct at91_gpio_bank { | ||
41 | unsigned short id; /* peripheral ID */ | ||
42 | unsigned long offset; /* offset from system peripheral base */ | ||
43 | struct clk *clock; /* associated clock */ | ||
44 | }; | ||
45 | extern void __init at91_gpio_init(struct at91_gpio_bank *, int nr_banks); | ||
46 | extern void __init at91_gpio_irq_setup(void); | ||
47 | |||
48 | extern void (*at91_arch_reset)(void); | ||
49 | extern int at91_extern_irq; | ||