Stephen Boyd | 4312a7e | 2012-09-05 12:28:52 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef __MACH_COMMON_H |
| 13 | #define __MACH_COMMON_H |
| 14 | |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 15 | extern void msm7x01_timer_init(void); |
| 16 | extern void msm7x30_timer_init(void); |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 17 | extern void qsd8x50_timer_init(void); |
Stephen Boyd | 4312a7e | 2012-09-05 12:28:52 -0700 | [diff] [blame] | 18 | |
Stephen Boyd | 85a9f0f | 2012-09-05 12:28:57 -0700 | [diff] [blame] | 19 | extern void msm_map_common_io(void); |
| 20 | extern void msm_map_msm7x30_io(void); |
Stephen Boyd | 85a9f0f | 2012-09-05 12:28:57 -0700 | [diff] [blame] | 21 | extern void msm_map_qsd8x50_io(void); |
| 22 | |
Laura Abbott | 9b97173 | 2013-05-16 19:40:22 +0100 | [diff] [blame] | 23 | extern void __iomem *__msm_ioremap_caller(phys_addr_t phys_addr, size_t size, |
Stephen Boyd | 85a9f0f | 2012-09-05 12:28:57 -0700 | [diff] [blame] | 24 | unsigned int mtype, void *caller); |
| 25 | |
David Brown | be2109e | 2012-09-12 16:01:40 -0700 | [diff] [blame] | 26 | extern struct smp_operations msm_smp_ops; |
| 27 | extern void msm_cpu_die(unsigned int cpu); |
Stephen Boyd | 85a9f0f | 2012-09-05 12:28:57 -0700 | [diff] [blame] | 28 | |
Stephen Boyd | ebea60b | 2013-07-24 13:54:31 -0700 | [diff] [blame] | 29 | struct msm_mmc_platform_data; |
| 30 | |
| 31 | extern void msm_add_devices(void); |
| 32 | extern void msm_init_irq(void); |
| 33 | extern void msm_init_gpio(void); |
| 34 | extern int msm_add_sdcc(unsigned int controller, |
| 35 | struct msm_mmc_platform_data *plat, |
| 36 | unsigned int stat_irq, unsigned long stat_irq_flags); |
| 37 | |
| 38 | #if defined(CONFIG_MSM_SMD) && defined(CONFIG_DEBUG_FS) |
| 39 | extern int smd_debugfs_init(void); |
| 40 | #else |
| 41 | static inline int smd_debugfs_init(void) { return 0; } |
| 42 | #endif |
| 43 | |
Stephen Boyd | 4312a7e | 2012-09-05 12:28:52 -0700 | [diff] [blame] | 44 | #endif |