Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
board.h
Go to the documentation of this file.
1 /* arch/arm/mach-msm/include/mach/board.h
2  *
3  * Copyright (C) 2007 Google, Inc.
4  * Author: Brian Swetland <[email protected]>
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  */
16 
17 #ifndef __ASM_ARCH_MSM_BOARD_H
18 #define __ASM_ARCH_MSM_BOARD_H
19 
20 #include <linux/types.h>
22 
23 /* platform device data structures */
24 
25 struct clk_lookup;
26 
27 /* common init routines for use by arch/arm/mach-msm/board-*.c */
28 
29 void __init msm_add_devices(void);
30 void __init msm_init_irq(void);
31 void __init msm_init_gpio(void);
32 void __init msm_clock_init(struct clk_lookup *clock_tbl, unsigned num_clocks);
33 int __init msm_add_sdcc(unsigned int controller,
34  struct msm_mmc_platform_data *plat,
35  unsigned int stat_irq, unsigned long stat_irq_flags);
36 
37 #if defined(CONFIG_MSM_SMD) && defined(CONFIG_DEBUG_FS)
38 int smd_debugfs_init(void);
39 #else
40 static inline int smd_debugfs_init(void) { return 0; }
41 #endif
42 
43 #endif