Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 1 | /* linux/arch/arm/mach-msm/devices.h |
| 2 | * |
| 3 | * Copyright (C) 2008 Google, Inc. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 4 | * Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved. |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 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 __ARCH_ARM_MACH_MSM_DEVICES_H |
| 18 | #define __ARCH_ARM_MACH_MSM_DEVICES_H |
| 19 | |
Stephen Boyd | bd32344 | 2011-02-23 09:37:42 -0800 | [diff] [blame] | 20 | #include <linux/clkdev.h> |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 21 | #include <linux/platform_device.h> |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 22 | #include "clock.h" |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 23 | |
| 24 | void __init msm9615_device_init(void); |
| 25 | void __init msm9615_map_io(void); |
| 26 | void __init msm_map_msm9615_io(void); |
| 27 | void __init msm9615_init_irq(void); |
| 28 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 29 | extern struct platform_device asoc_msm_pcm; |
| 30 | extern struct platform_device asoc_msm_dai0; |
| 31 | extern struct platform_device asoc_msm_dai1; |
| 32 | #if defined (CONFIG_SND_MSM_MVS_DAI_SOC) |
| 33 | extern struct platform_device asoc_msm_mvs; |
| 34 | extern struct platform_device asoc_mvs_dai0; |
| 35 | extern struct platform_device asoc_mvs_dai1; |
| 36 | #endif |
| 37 | |
| 38 | extern struct platform_device msm_ebi0_thermal; |
| 39 | extern struct platform_device msm_ebi1_thermal; |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 40 | |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 41 | extern struct platform_device msm_device_uart1; |
| 42 | extern struct platform_device msm_device_uart2; |
| 43 | extern struct platform_device msm_device_uart3; |
| 44 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 45 | extern struct platform_device msm_device_uart_dm1; |
| 46 | extern struct platform_device msm_device_uart_dm2; |
| 47 | extern struct platform_device msm_device_uart_dm3; |
| 48 | extern struct platform_device msm_device_uart_dm12; |
| 49 | extern struct platform_device *msm_device_uart_gsbi9; |
Mayank Rana | 9f51f58 | 2011-08-04 18:35:59 +0530 | [diff] [blame] | 50 | extern struct platform_device msm_device_uart_dm6; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 51 | |
Stepan Moskovchenko | d056fca | 2011-01-27 12:12:07 -0800 | [diff] [blame] | 52 | extern struct platform_device msm8960_device_uart_gsbi2; |
| 53 | extern struct platform_device msm8960_device_uart_gsbi5; |
Jay Chokshi | 33c044a | 2011-12-07 13:05:40 -0800 | [diff] [blame] | 54 | extern struct platform_device msm8960_device_ssbi_pmic; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 55 | extern struct platform_device msm8960_device_qup_i2c_gsbi3; |
| 56 | extern struct platform_device msm8960_device_qup_i2c_gsbi4; |
| 57 | extern struct platform_device msm8960_device_qup_i2c_gsbi10; |
| 58 | extern struct platform_device msm8960_device_qup_i2c_gsbi12; |
| 59 | extern struct platform_device msm8960_device_qup_spi_gsbi1; |
| 60 | extern struct platform_device msm8960_gemini_device; |
Kevin Chan | f6216f2 | 2011-10-25 18:40:11 -0700 | [diff] [blame] | 61 | extern struct platform_device msm8960_device_csiphy0; |
| 62 | extern struct platform_device msm8960_device_csiphy1; |
Kevin Chan | c8b52e8 | 2011-10-25 23:20:21 -0700 | [diff] [blame] | 63 | extern struct platform_device msm8960_device_csid0; |
| 64 | extern struct platform_device msm8960_device_csid1; |
Kevin Chan | e12c667 | 2011-10-26 11:55:26 -0700 | [diff] [blame] | 65 | extern struct platform_device msm8960_device_ispif; |
Kevin Chan | 5827c55 | 2011-10-28 18:36:32 -0700 | [diff] [blame] | 66 | extern struct platform_device msm8960_device_vfe; |
Kevin Chan | a085312 | 2011-11-07 19:48:44 -0800 | [diff] [blame] | 67 | extern struct platform_device msm8960_device_vpe; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 68 | |
Stepan Moskovchenko | 2701a44 | 2011-08-19 13:47:22 -0700 | [diff] [blame] | 69 | extern struct platform_device apq8064_device_uart_gsbi1; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 70 | extern struct platform_device apq8064_device_uart_gsbi3; |
Kenneth Heitke | 748593a | 2011-07-15 15:45:11 -0600 | [diff] [blame] | 71 | extern struct platform_device apq8064_device_qup_i2c_gsbi4; |
Harini Jayaraman | c4c5869 | 2011-07-19 14:50:10 -0600 | [diff] [blame] | 72 | extern struct platform_device apq8064_device_qup_spi_gsbi5; |
Sagar Dharia | 8bdcdaf | 2011-09-16 16:01:15 -0600 | [diff] [blame] | 73 | extern struct platform_device apq8064_slim_ctrl; |
Kenneth Heitke | 36920d3 | 2011-07-20 16:44:30 -0600 | [diff] [blame] | 74 | extern struct platform_device apq8064_device_ssbi_pmic1; |
| 75 | extern struct platform_device apq8064_device_ssbi_pmic2; |
Stepan Moskovchenko | d056fca | 2011-01-27 12:12:07 -0800 | [diff] [blame] | 76 | |
Rohit Vaswani | 0966687 | 2011-08-23 17:41:54 -0700 | [diff] [blame] | 77 | extern struct platform_device msm9615_device_uart_gsbi4; |
Harini Jayaraman | eba5267 | 2011-09-08 15:13:00 -0600 | [diff] [blame] | 78 | extern struct platform_device msm9615_device_qup_i2c_gsbi5; |
Harini Jayaraman | 738c931 | 2011-09-08 15:22:38 -0600 | [diff] [blame] | 79 | extern struct platform_device msm9615_device_qup_spi_gsbi3; |
Kenneth Heitke | af3d3cf | 2011-09-08 11:45:31 -0700 | [diff] [blame] | 80 | extern struct platform_device msm9615_device_ssbi_pmic1; |
Siddartha Mohanadoss | 5d49cec | 2011-09-21 10:26:15 -0700 | [diff] [blame] | 81 | extern struct platform_device msm9615_device_tsens; |
Gagan Mac | 7a82764 | 2011-09-22 19:42:21 -0600 | [diff] [blame] | 82 | extern struct platform_device msm_bus_9615_sys_fabric; |
| 83 | extern struct platform_device msm_bus_def_fab; |
Rohit Vaswani | 0966687 | 2011-08-23 17:41:54 -0700 | [diff] [blame] | 84 | |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 85 | extern struct platform_device msm_device_sdc1; |
| 86 | extern struct platform_device msm_device_sdc2; |
| 87 | extern struct platform_device msm_device_sdc3; |
| 88 | extern struct platform_device msm_device_sdc4; |
| 89 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 90 | extern struct platform_device msm_device_gadget_peripheral; |
Pavankumar Kondeti | 7032d51 | 2010-12-08 13:37:07 +0530 | [diff] [blame] | 91 | extern struct platform_device msm_device_hsusb_host; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 92 | extern struct platform_device msm_device_hsusb_host2; |
Vijayavardhan Vennapusa | eb56648 | 2011-09-18 07:48:37 +0530 | [diff] [blame] | 93 | extern struct platform_device msm_device_hsic_host; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 94 | |
| 95 | extern struct platform_device msm_device_otg; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 96 | |
Stepan Moskovchenko | 14aa649 | 2011-08-08 15:15:01 -0700 | [diff] [blame] | 97 | extern struct platform_device msm8960_device_otg; |
| 98 | extern struct platform_device msm8960_device_gadget_peripheral; |
| 99 | |
| 100 | extern struct platform_device apq8064_device_otg; |
| 101 | extern struct platform_device apq8064_usb_diag_device; |
| 102 | extern struct platform_device apq8064_device_gadget_peripheral; |
| 103 | |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 104 | extern struct platform_device msm_device_i2c; |
| 105 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 106 | extern struct platform_device msm_device_i2c_2; |
| 107 | |
| 108 | extern struct platform_device qup_device_i2c; |
| 109 | |
| 110 | extern struct platform_device msm_gsbi0_qup_i2c_device; |
| 111 | extern struct platform_device msm_gsbi1_qup_i2c_device; |
| 112 | extern struct platform_device msm_gsbi3_qup_i2c_device; |
| 113 | extern struct platform_device msm_gsbi4_qup_i2c_device; |
| 114 | extern struct platform_device msm_gsbi7_qup_i2c_device; |
| 115 | extern struct platform_device msm_gsbi8_qup_i2c_device; |
| 116 | extern struct platform_device msm_gsbi9_qup_i2c_device; |
| 117 | extern struct platform_device msm_gsbi12_qup_i2c_device; |
| 118 | |
| 119 | extern struct platform_device msm_slim_ctrl; |
| 120 | extern struct platform_device msm_device_sps; |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 121 | extern struct platform_device msm_device_usb_bam; |
Yan He | 06913ce | 2011-08-26 16:33:46 -0700 | [diff] [blame] | 122 | extern struct platform_device msm_device_sps_apq8064; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 123 | extern struct platform_device msm_device_bam_dmux; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 124 | extern struct platform_device msm_device_smd; |
Jeff Hugo | 0c0f5e9 | 2011-09-28 13:55:45 -0600 | [diff] [blame] | 125 | extern struct platform_device msm_device_smd_apq8064; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 126 | extern struct platform_device msm_device_dmov; |
Stepan Moskovchenko | df13d34 | 2011-08-03 19:01:25 -0700 | [diff] [blame] | 127 | extern struct platform_device msm8960_device_dmov; |
| 128 | extern struct platform_device apq8064_device_dmov; |
Jeff Ohlstein | d19bf44 | 2011-09-09 12:48:18 -0700 | [diff] [blame] | 129 | extern struct platform_device msm9615_device_dmov; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 130 | extern struct platform_device msm_device_dmov_adm0; |
| 131 | extern struct platform_device msm_device_dmov_adm1; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 132 | |
| 133 | extern struct platform_device msm_device_nand; |
| 134 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 135 | extern struct platform_device msm_device_tssc; |
| 136 | |
| 137 | extern struct platform_device msm_rotator_device; |
| 138 | |
| 139 | extern struct platform_device msm_device_tsif[2]; |
| 140 | |
Anirudh Ghayal | 9d9cdc2 | 2011-10-10 17:17:07 +0530 | [diff] [blame] | 141 | extern struct platform_device msm_device_ssbi_pmic1; |
Anirudh Ghayal | c49157f | 2011-11-09 14:49:59 +0530 | [diff] [blame] | 142 | extern struct platform_device msm_device_ssbi_pmic2; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 143 | extern struct platform_device msm_device_ssbi1; |
| 144 | extern struct platform_device msm_device_ssbi2; |
| 145 | extern struct platform_device msm_device_ssbi3; |
| 146 | extern struct platform_device msm_device_ssbi6; |
| 147 | extern struct platform_device msm_device_ssbi7; |
| 148 | |
| 149 | extern struct platform_device msm_gsbi1_qup_spi_device; |
| 150 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 151 | extern struct platform_device msm_device_vidc_720p; |
| 152 | |
| 153 | extern struct platform_device msm_pcm; |
| 154 | extern struct platform_device msm_pcm_routing; |
| 155 | extern struct platform_device msm_cpudai0; |
| 156 | extern struct platform_device msm_cpudai1; |
| 157 | extern struct platform_device msm_cpudai_hdmi_rx; |
| 158 | extern struct platform_device msm_cpudai_bt_rx; |
| 159 | extern struct platform_device msm_cpudai_bt_tx; |
| 160 | extern struct platform_device msm_cpudai_fm_rx; |
| 161 | extern struct platform_device msm_cpudai_fm_tx; |
Bhalchandra Gajare | 0e795c4 | 2011-08-15 18:10:30 -0700 | [diff] [blame] | 162 | extern struct platform_device msm_cpudai_auxpcm_rx; |
| 163 | extern struct platform_device msm_cpudai_auxpcm_tx; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 164 | extern struct platform_device msm_cpu_fe; |
| 165 | extern struct platform_device msm_stub_codec; |
| 166 | extern struct platform_device msm_voice; |
| 167 | extern struct platform_device msm_voip; |
| 168 | extern struct platform_device msm_lpa_pcm; |
| 169 | extern struct platform_device msm_pcm_hostless; |
Laxminath Kasam | cee1d60 | 2011-08-01 19:26:57 +0530 | [diff] [blame] | 170 | extern struct platform_device msm_cpudai_afe_01_rx; |
| 171 | extern struct platform_device msm_cpudai_afe_01_tx; |
| 172 | extern struct platform_device msm_cpudai_afe_02_rx; |
| 173 | extern struct platform_device msm_cpudai_afe_02_tx; |
| 174 | extern struct platform_device msm_pcm_afe; |
Asish Bhattacharya | 96bb6f4 | 2011-11-01 20:36:09 +0530 | [diff] [blame] | 175 | extern struct platform_device msm_compr_dsp; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 176 | |
Stephen Boyd | 3acc9e4 | 2011-09-28 16:46:40 -0700 | [diff] [blame] | 177 | extern struct platform_device msm_pil_q6v3; |
Stephen Boyd | eb81988 | 2011-08-29 14:46:30 -0700 | [diff] [blame] | 178 | extern struct platform_device msm_8960_q6_lpass; |
| 179 | extern struct platform_device msm_8960_q6_mss_fw; |
| 180 | extern struct platform_device msm_8960_q6_mss_sw; |
Stephen Boyd | 322a992 | 2011-09-20 01:05:54 -0700 | [diff] [blame^] | 181 | extern struct platform_device msm_8960_riva; |
Stephen Boyd | eb81988 | 2011-08-29 14:46:30 -0700 | [diff] [blame] | 182 | |
Bharath Ramachandramurthy | b8e797f | 2011-11-30 12:08:42 -0800 | [diff] [blame] | 183 | extern struct platform_device apq_pcm; |
| 184 | extern struct platform_device apq_pcm_routing; |
| 185 | extern struct platform_device apq_cpudai0; |
| 186 | extern struct platform_device apq_cpudai1; |
| 187 | extern struct platform_device apq_cpudai_hdmi_rx; |
| 188 | extern struct platform_device apq_cpudai_bt_rx; |
| 189 | extern struct platform_device apq_cpudai_bt_tx; |
| 190 | extern struct platform_device apq_cpudai_fm_rx; |
| 191 | extern struct platform_device apq_cpudai_fm_tx; |
| 192 | extern struct platform_device apq_cpudai_auxpcm_rx; |
| 193 | extern struct platform_device apq_cpudai_auxpcm_tx; |
| 194 | extern struct platform_device apq_cpu_fe; |
| 195 | extern struct platform_device apq_stub_codec; |
| 196 | extern struct platform_device apq_voice; |
| 197 | extern struct platform_device apq_voip; |
| 198 | extern struct platform_device apq_lpa_pcm; |
| 199 | extern struct platform_device apq_pcm_hostless; |
| 200 | extern struct platform_device apq_cpudai_afe_01_rx; |
| 201 | extern struct platform_device apq_cpudai_afe_01_tx; |
| 202 | extern struct platform_device apq_cpudai_afe_02_rx; |
| 203 | extern struct platform_device apq_cpudai_afe_02_tx; |
| 204 | extern struct platform_device apq_pcm_afe; |
| 205 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 206 | extern struct platform_device *msm_footswitch_devices[]; |
| 207 | extern unsigned msm_num_footswitch_devices; |
| 208 | |
| 209 | extern struct platform_device fsm_qfp_fuse_device; |
| 210 | |
Rohit Vaswani | 4c0d304 | 2011-07-13 14:19:23 -0700 | [diff] [blame] | 211 | extern struct platform_device fsm_xo_device; |
| 212 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 213 | extern struct platform_device qfec_device; |
Daniel Walker | 50bc0ef | 2010-12-13 14:35:11 -0800 | [diff] [blame] | 214 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 215 | extern struct platform_device msm_kgsl_3d0; |
| 216 | extern struct platform_device msm_kgsl_2d0; |
| 217 | extern struct platform_device msm_kgsl_2d1; |
| 218 | |
| 219 | extern struct platform_device msm_mipi_dsi1_device; |
| 220 | |
| 221 | extern struct clk_lookup msm_clocks_fsm9xxx[]; |
| 222 | extern unsigned msm_num_clocks_fsm9xxx; |
| 223 | |
| 224 | extern struct platform_device msm_footswitch; |
| 225 | |
| 226 | void __init msm_fb_register_device(char *name, void *data); |
| 227 | void __init msm_camera_register_device(void *, uint32_t, void *); |
| 228 | struct platform_device *msm_add_gsbi9_uart(void); |
| 229 | extern struct platform_device msm_device_touchscreen; |
| 230 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 231 | extern struct platform_device led_pdev; |
Laura Abbott | a2e9363 | 2011-08-19 13:36:32 -0700 | [diff] [blame] | 232 | |
Maheshkumar Sivasubramanian | 9c8cdc9 | 2011-09-12 14:11:30 -0600 | [diff] [blame] | 233 | extern struct platform_device msm_rpm_device; |
Praveen Chidambaram | 7a71223 | 2011-10-28 13:39:45 -0600 | [diff] [blame] | 234 | extern struct platform_device msm_rpm_stat_device; |
Ramesh Masavarapu | 5ad3739 | 2011-10-10 10:44:10 -0700 | [diff] [blame] | 235 | extern struct platform_device msm_device_rng; |
Ramesh Masavarapu | f46be1b | 2011-11-03 11:13:41 -0700 | [diff] [blame] | 236 | extern struct platform_device apq8064_device_rng; |
Ramesh Masavarapu | aa28b5b | 2011-10-21 10:26:03 -0700 | [diff] [blame] | 237 | |
| 238 | #if defined(CONFIG_CRYPTO_DEV_QCRYPTO) || \ |
| 239 | defined(CONFIG_CRYPTO_DEV_QCRYPTO_MODULE) |
| 240 | extern struct platform_device msm9615_qcrypto_device; |
| 241 | #endif |
| 242 | |
| 243 | #if defined(CONFIG_CRYPTO_DEV_QCEDEV) || \ |
| 244 | defined(CONFIG_CRYPTO_DEV_QCEDEV_MODULE) |
| 245 | extern struct platform_device msm9615_qcedev_device; |
| 246 | #endif |
Jeff Ohlstein | 7e66855 | 2011-10-06 16:17:25 -0700 | [diff] [blame] | 247 | extern struct platform_device msm8960_device_watchdog; |
| 248 | extern struct platform_device msm8660_device_watchdog; |
| 249 | extern struct platform_device msm8064_device_watchdog; |
| 250 | extern struct platform_device msm9615_device_watchdog; |
Pratik Patel | fd6f56a | 2011-10-10 17:47:55 -0700 | [diff] [blame] | 251 | |
| 252 | extern struct platform_device msm_etb_device; |
| 253 | extern struct platform_device msm_tpiu_device; |
| 254 | extern struct platform_device msm_funnel_device; |
| 255 | extern struct platform_device msm_debug_device; |
| 256 | extern struct platform_device msm_ptm_device; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 257 | #endif |