Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-spear13xx/include/mach/generic.h |
| 3 | * |
| 4 | * spear13xx machine family generic header file |
| 5 | * |
| 6 | * Copyright (C) 2012 ST Microelectronics |
Viresh Kumar | 10d8935 | 2012-06-20 12:53:02 -0700 | [diff] [blame] | 7 | * Viresh Kumar <viresh.linux@gmail.com> |
Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 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 <linux/dmaengine.h> |
| 18 | #include <asm/mach/time.h> |
| 19 | |
| 20 | /* Add spear13xx structure declarations here */ |
| 21 | extern struct sys_timer spear13xx_timer; |
| 22 | extern struct pl022_ssp_controller pl022_plat_data; |
| 23 | extern struct dw_dma_platform_data dmac_plat_data; |
| 24 | extern struct dw_dma_slave cf_dma_priv; |
| 25 | extern struct dw_dma_slave nand_read_dma_priv; |
| 26 | extern struct dw_dma_slave nand_write_dma_priv; |
| 27 | |
| 28 | /* Add spear13xx family function declarations here */ |
| 29 | void __init spear_setup_of_timer(void); |
| 30 | void __init spear13xx_map_io(void); |
| 31 | void __init spear13xx_dt_init_irq(void); |
| 32 | void __init spear13xx_l2x0_init(void); |
| 33 | bool dw_dma_filter(struct dma_chan *chan, void *slave); |
| 34 | void spear_restart(char, const char *); |
| 35 | void spear13xx_secondary_startup(void); |
| 36 | |
| 37 | #ifdef CONFIG_MACH_SPEAR1310 |
| 38 | void __init spear1310_clk_init(void); |
| 39 | #else |
| 40 | static inline void spear1310_clk_init(void) {} |
| 41 | #endif |
| 42 | |
| 43 | #ifdef CONFIG_MACH_SPEAR1340 |
| 44 | void __init spear1340_clk_init(void); |
| 45 | #else |
| 46 | static inline void spear1340_clk_init(void) {} |
| 47 | #endif |
| 48 | |
| 49 | #endif /* __MACH_GENERIC_H */ |