viresh kumar | e024c3d | 2010-04-01 12:30:31 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-spear6xx/include/mach/generic.h |
| 3 | * |
| 4 | * SPEAr6XX machine family specific generic header file |
| 5 | * |
| 6 | * Copyright (C) 2009 ST Microelectronics |
| 7 | * Rajeev Kumar<rajeev-dlh.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 | |
viresh kumar | e024c3d | 2010-04-01 12:30:31 +0100 | [diff] [blame] | 17 | #include <linux/init.h> |
| 18 | #include <linux/platform_device.h> |
| 19 | #include <linux/amba/bus.h> |
viresh kumar | 410782b | 2011-03-07 05:57:01 +0100 | [diff] [blame] | 20 | #include <asm/mach/time.h> |
| 21 | #include <asm/mach/map.h> |
viresh kumar | e024c3d | 2010-04-01 12:30:31 +0100 | [diff] [blame] | 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 SPEAR6XX_CPU_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 spear6xx family device structure declarations here */ |
| 32 | extern struct amba_device gpio_device[]; |
| 33 | extern struct amba_device uart_device[]; |
Shiraz Hashim | 5c881d9 | 2011-02-16 07:40:32 +0100 | [diff] [blame] | 34 | extern struct sys_timer spear6xx_timer; |
viresh kumar | e024c3d | 2010-04-01 12:30:31 +0100 | [diff] [blame] | 35 | |
| 36 | /* Add spear6xx family function declarations here */ |
Shiraz Hashim | 5c881d9 | 2011-02-16 07:40:32 +0100 | [diff] [blame] | 37 | void __init spear_setup_timer(void); |
viresh kumar | e024c3d | 2010-04-01 12:30:31 +0100 | [diff] [blame] | 38 | void __init spear6xx_map_io(void); |
| 39 | void __init spear6xx_init_irq(void); |
| 40 | void __init spear6xx_init(void); |
| 41 | void __init spear600_init(void); |
viresh kumar | b997f6e | 2011-05-20 08:34:18 +0100 | [diff] [blame] | 42 | void __init spear6xx_clk_init(void); |
viresh kumar | e024c3d | 2010-04-01 12:30:31 +0100 | [diff] [blame] | 43 | |
| 44 | /* Add spear600 machine device structure declarations here */ |
| 45 | |
| 46 | #endif /* __MACH_GENERIC_H */ |