diff options
author | viresh kumar <viresh.kumar@st.com> | 2010-04-01 07:30:19 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-04-14 06:26:22 -0400 |
commit | a7e9c45219b2d40a80fbd1b7337cbecab85be2bd (patch) | |
tree | 88521a51ddfa7485254b4adcd50d8109c4e4e947 /arch/arm/mach-spear3xx/include/mach/generic.h | |
parent | 39710479303fd3affb3e204e9a7a75cc676977b5 (diff) |
ARM: 6010/1: ST SPEAr: Added basic header files for SPEAr3xx machine family
Reviewed-by: Linus Walleij <linux.walleij@stericsson.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-spear3xx/include/mach/generic.h')
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/generic.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/arch/arm/mach-spear3xx/include/mach/generic.h b/arch/arm/mach-spear3xx/include/mach/generic.h new file mode 100644 index 00000000000..aeea8453a9e --- /dev/null +++ b/arch/arm/mach-spear3xx/include/mach/generic.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-spear3xx/generic.h | ||
3 | * | ||
4 | * SPEAr3XX machine family generic header file | ||
5 | * | ||
6 | * Copyright (C) 2009 ST Microelectronics | ||
7 | * Viresh Kumar<viresh.kumar@st.com> | ||
8 | * | ||
9 | * This file is licensed under the terms of the GNU General Public | ||
10 | * License version 2. This program is licensed "as is" without any | ||
11 | * warranty of any kind, whether express or implied. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MACH_GENERIC_H | ||
15 | #define __MACH_GENERIC_H | ||
16 | |||
17 | #include <asm/mach/time.h> | ||
18 | #include <asm/mach/map.h> | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | #include <linux/amba/bus.h> | ||
22 | |||
23 | /* | ||
24 | * Each GPT has 2 timer channels | ||
25 | * Following GPT channels will be used as clock source and clockevent | ||
26 | */ | ||
27 | #define SPEAR_GPT0_BASE SPEAR3XX_ML1_TMR_BASE | ||
28 | #define SPEAR_GPT0_CHAN0_IRQ IRQ_CPU_GPT1_1 | ||
29 | #define SPEAR_GPT0_CHAN1_IRQ IRQ_CPU_GPT1_2 | ||
30 | |||
31 | /* Add spear3xx family device structure declarations here */ | ||
32 | extern struct amba_device gpio_device; | ||
33 | extern struct amba_device uart_device; | ||
34 | extern struct sys_timer spear_sys_timer; | ||
35 | |||
36 | /* Add spear3xx family function declarations here */ | ||
37 | void __init spear3xx_map_io(void); | ||
38 | void __init spear3xx_init_irq(void); | ||
39 | void __init spear3xx_init(void); | ||
40 | void __init spear300_init(void); | ||
41 | void __init spear310_init(void); | ||
42 | void __init spear320_init(void); | ||
43 | void __init clk_init(void); | ||
44 | |||
45 | /* Add spear300 machine device structure declarations here */ | ||
46 | #ifdef CONFIG_MACH_SPEAR300 | ||
47 | extern struct amba_device gpio1_device; | ||
48 | #endif /* CONFIG_MACH_SPEAR300 */ | ||
49 | |||
50 | /* Add spear310 machine device structure declarations here */ | ||
51 | #ifdef CONFIG_MACH_SPEAR310 | ||
52 | #endif /* CONFIG_MACH_SPEAR310 */ | ||
53 | |||
54 | /* Add spear320 machine device structure declarations here */ | ||
55 | #ifdef CONFIG_MACH_SPEAR320 | ||
56 | #endif /* CONFIG_MACH_SPEAR320 */ | ||
57 | |||
58 | #endif /* __MACH_GENERIC_H */ | ||