staging:iio:adc:ad7606 move to info_mask_(shared_by_type/separate)
[linux/fpc-iii.git] / arch / arm / mach-spear13xx / include / mach / generic.h
blob633e678e01a3231c2480ee0756e8d95150f08345
1 /*
2 * arch/arm/mach-spear13xx/include/mach/generic.h
4 * spear13xx machine family generic header file
6 * Copyright (C) 2012 ST Microelectronics
7 * Viresh Kumar <viresh.linux@gmail.com>
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.
14 #ifndef __MACH_GENERIC_H
15 #define __MACH_GENERIC_H
17 #include <linux/dmaengine.h>
18 #include <asm/mach/time.h>
20 /* Add spear13xx structure declarations here */
21 extern void spear13xx_timer_init(void);
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;
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_l2x0_init(void);
32 bool dw_dma_filter(struct dma_chan *chan, void *slave);
33 void spear_restart(char, const char *);
34 void spear13xx_secondary_startup(void);
35 void __cpuinit spear13xx_cpu_die(unsigned int cpu);
37 extern struct smp_operations spear13xx_smp_ops;
39 #ifdef CONFIG_MACH_SPEAR1310
40 void __init spear1310_clk_init(void);
41 #else
42 static inline void spear1310_clk_init(void) {}
43 #endif
45 #ifdef CONFIG_MACH_SPEAR1340
46 void __init spear1340_clk_init(void);
47 #else
48 static inline void spear1340_clk_init(void) {}
49 #endif
51 #endif /* __MACH_GENERIC_H */