Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. 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 | */ |
| 13 | #ifndef __ARCH_ARM_MACH_MSM_DEVICES_MSM8X60_H |
| 14 | #define __ARCH_ARM_MACH_MSM_DEVICES_MSM8X60_H |
| 15 | |
| 16 | #define MSM_GSBI3_QUP_I2C_BUS_ID 0 |
| 17 | #define MSM_GSBI4_QUP_I2C_BUS_ID 1 |
| 18 | #define MSM_GSBI9_QUP_I2C_BUS_ID 2 |
| 19 | #define MSM_GSBI8_QUP_I2C_BUS_ID 3 |
| 20 | #define MSM_GSBI7_QUP_I2C_BUS_ID 4 |
| 21 | #define MSM_GSBI12_QUP_I2C_BUS_ID 5 |
| 22 | #define MSM_SSBI1_I2C_BUS_ID 6 |
| 23 | #define MSM_SSBI2_I2C_BUS_ID 7 |
| 24 | #define MSM_SSBI3_I2C_BUS_ID 8 |
| 25 | |
Lei Zhou | 01366a4 | 2011-08-19 13:12:00 -0400 | [diff] [blame] | 26 | #ifdef CONFIG_SND_SOC_MSM8660_APQ |
| 27 | extern struct platform_device msm_pcm; |
| 28 | extern struct platform_device msm_pcm_routing; |
| 29 | extern struct platform_device msm_cpudai0; |
| 30 | extern struct platform_device msm_cpudai1; |
| 31 | extern struct platform_device msm_cpudai_hdmi_rx; |
| 32 | extern struct platform_device msm_cpudai_bt_rx; |
| 33 | extern struct platform_device msm_cpudai_bt_tx; |
| 34 | extern struct platform_device msm_cpudai_fm_rx; |
| 35 | extern struct platform_device msm_cpudai_fm_tx; |
| 36 | extern struct platform_device msm_cpu_fe; |
| 37 | extern struct platform_device msm_stub_codec; |
| 38 | extern struct platform_device msm_voice; |
| 39 | extern struct platform_device msm_voip; |
| 40 | extern struct platform_device msm_lpa_pcm; |
| 41 | extern struct platform_device msm_pcm_hostless; |
| 42 | #endif |
| 43 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 44 | #ifdef CONFIG_SPI_QUP |
| 45 | extern struct platform_device msm_gsbi1_qup_spi_device; |
| 46 | extern struct platform_device msm_gsbi10_qup_spi_device; |
| 47 | #endif |
| 48 | |
| 49 | extern struct platform_device msm_bus_apps_fabric; |
| 50 | extern struct platform_device msm_bus_sys_fabric; |
| 51 | extern struct platform_device msm_bus_mm_fabric; |
| 52 | extern struct platform_device msm_bus_sys_fpb; |
| 53 | extern struct platform_device msm_bus_cpss_fpb; |
Gagan Mac | ae154c4b | 2011-10-05 19:24:43 -0600 | [diff] [blame] | 54 | extern struct platform_device msm_bus_def_fab; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 55 | |
| 56 | extern struct platform_device msm_device_smd; |
| 57 | extern struct platform_device msm_device_gpio; |
| 58 | extern struct platform_device msm_device_vidc; |
Mohan Kumar Gubbihalli Lachma Naik | 7f72edd | 2012-02-06 17:26:47 -0800 | [diff] [blame] | 59 | extern struct platform_device apq8064_msm_device_vidc; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 60 | |
| 61 | extern struct platform_device msm_charm_modem; |
Mona Hossain | 11c03ac | 2011-10-26 12:42:10 -0700 | [diff] [blame] | 62 | extern struct platform_device msm_device_tz_log; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 63 | #ifdef CONFIG_HW_RANDOM_MSM |
| 64 | extern struct platform_device msm_device_rng; |
| 65 | #endif |
| 66 | |
| 67 | void __init msm8x60_init_irq(void); |
| 68 | void __init msm8x60_check_2d_hardware(void); |
| 69 | |
| 70 | #ifdef CONFIG_MSM_DSPS |
| 71 | extern struct platform_device msm_dsps_device; |
| 72 | #endif |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 73 | |
| 74 | #if defined(CONFIG_MSM_RPM_STATS_LOG) |
| 75 | extern struct platform_device msm_rpm_stat_device; |
| 76 | #endif |
| 77 | #endif |