Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
generic.h
Go to the documentation of this file.
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
7  * Viresh Kumar <[email protected]>
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;
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 *);
36 void __cpuinit spear13xx_cpu_die(unsigned int cpu);
37 
38 extern struct smp_operations spear13xx_smp_ops;
39 
40 #ifdef CONFIG_MACH_SPEAR1310
41 void __init spear1310_clk_init(void);
42 #else
43 static inline void spear1310_clk_init(void) {}
44 #endif
45 
46 #ifdef CONFIG_MACH_SPEAR1340
47 void __init spear1340_clk_init(void);
48 #else
49 static inline void spear1340_clk_init(void) {}
50 #endif
51 
52 #endif /* __MACH_GENERIC_H */