blob: bd5a20f3bd85e4adb7dc0cef00bafa835a59187e [file] [log] [blame]
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -07001/* linux/arch/arm/mach-msm/devices.h
2 *
3 * Copyright (C) 2008 Google, Inc.
Abhijeet Dharmapurikarfb4a2f82012-08-23 14:36:59 -07004 * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -07005 *
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 Boydbd323442011-02-23 09:37:42 -080020#include <linux/clkdev.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070021#include <linux/platform_device.h>
Daniel Walker5e96da52010-05-12 13:43:28 -070022#include "clock.h"
Rohit Vaswaniced9b3b2011-08-23 17:21:49 -070023
24void __init msm9615_device_init(void);
25void __init msm9615_map_io(void);
26void __init msm_map_msm9615_io(void);
27void __init msm9615_init_irq(void);
Ravishangar Kalyanam319a83c2012-03-21 18:38:05 -070028void __init msm_rotator_update_bus_vectors(unsigned int xres,
29 unsigned int yres);
Olav Hauganef95ae32012-05-15 09:50:30 -070030void __init msm_rotator_set_split_iommu_domain(void);
Rohit Vaswaniced9b3b2011-08-23 17:21:49 -070031
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070032extern struct platform_device asoc_msm_pcm;
33extern struct platform_device asoc_msm_dai0;
34extern struct platform_device asoc_msm_dai1;
35#if defined (CONFIG_SND_MSM_MVS_DAI_SOC)
36extern struct platform_device asoc_msm_mvs;
37extern struct platform_device asoc_mvs_dai0;
38extern struct platform_device asoc_mvs_dai1;
39#endif
40
41extern struct platform_device msm_ebi0_thermal;
42extern struct platform_device msm_ebi1_thermal;
Daniel Walker5e96da52010-05-12 13:43:28 -070043
Laxminath Kasam5faa1ca2012-02-15 12:06:45 +053044extern struct platform_device msm_adsp_device;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -070045extern struct platform_device msm_device_uart1;
46extern struct platform_device msm_device_uart2;
47extern struct platform_device msm_device_uart3;
Taniya Das43bcdd62011-12-02 17:33:27 +053048extern struct platform_device msm8625_device_uart1;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -070049
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070050extern struct platform_device msm_device_uart_dm1;
51extern struct platform_device msm_device_uart_dm2;
52extern struct platform_device msm_device_uart_dm3;
53extern struct platform_device msm_device_uart_dm12;
54extern struct platform_device *msm_device_uart_gsbi9;
Mayank Rana9f51f582011-08-04 18:35:59 +053055extern struct platform_device msm_device_uart_dm6;
Mayank Rana1f02d952012-07-04 19:11:20 +053056extern struct platform_device msm_device_uart_dm8;
Mayank Ranae009c922012-03-22 03:02:06 +053057extern struct platform_device msm_device_uart_dm9;
Mayank Rana262e9032012-05-10 15:14:00 -070058extern struct platform_device mpq8064_device_uartdm_gsbi6;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070059
Stepan Moskovchenkod056fca2011-01-27 12:12:07 -080060extern struct platform_device msm8960_device_uart_gsbi2;
61extern struct platform_device msm8960_device_uart_gsbi5;
Stepan Moskovchenko2b4b1cd2012-03-29 18:21:04 -070062extern struct platform_device msm8960_device_uart_gsbi8;
Jay Chokshi33c044a2011-12-07 13:05:40 -080063extern struct platform_device msm8960_device_ssbi_pmic;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070064extern struct platform_device msm8960_device_qup_i2c_gsbi3;
65extern struct platform_device msm8960_device_qup_i2c_gsbi4;
Harini Jayaramanfe6ff4162012-03-14 11:25:40 -060066extern struct platform_device msm8960_device_qup_i2c_gsbi9;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070067extern struct platform_device msm8960_device_qup_i2c_gsbi10;
68extern struct platform_device msm8960_device_qup_i2c_gsbi12;
69extern struct platform_device msm8960_device_qup_spi_gsbi1;
70extern struct platform_device msm8960_gemini_device;
Kalyani Oruganti465d1e12012-05-15 10:23:05 -070071extern struct platform_device msm8960_mercury_device;
Kevin Chanbb8ef862012-02-14 13:03:04 -080072extern struct platform_device msm8960_device_i2c_mux_gsbi4;
Kevin Chanf6216f22011-10-25 18:40:11 -070073extern struct platform_device msm8960_device_csiphy0;
74extern struct platform_device msm8960_device_csiphy1;
Sreesudhan Ramakrish Ramkumarb1edcd02012-01-17 11:33:05 -080075extern struct platform_device msm8960_device_csiphy2;
Kevin Chanc8b52e82011-10-25 23:20:21 -070076extern struct platform_device msm8960_device_csid0;
77extern struct platform_device msm8960_device_csid1;
Sreesudhan Ramakrish Ramkumarb1edcd02012-01-17 11:33:05 -080078extern struct platform_device msm8960_device_csid2;
Kevin Chane12c6672011-10-26 11:55:26 -070079extern struct platform_device msm8960_device_ispif;
Kevin Chan5827c552011-10-28 18:36:32 -070080extern struct platform_device msm8960_device_vfe;
Kevin Chana0853122011-11-07 19:48:44 -080081extern struct platform_device msm8960_device_vpe;
Stepan Moskovchenko28662c52012-03-01 12:48:45 -080082extern struct platform_device msm8960_device_cache_erp;
Stepan Moskovchenkoc0557252012-06-07 17:39:14 -070083extern struct platform_device msm8960_device_ebi1_ch0_erp;
84extern struct platform_device msm8960_device_ebi1_ch1_erp;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070085
Stepan Moskovchenko2701a442011-08-19 13:47:22 -070086extern struct platform_device apq8064_device_uart_gsbi1;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070087extern struct platform_device apq8064_device_uart_gsbi3;
Jin Hong4bbbfba2012-02-02 21:48:07 -080088extern struct platform_device apq8064_device_uart_gsbi7;
David Keitel3c40fc52012-02-09 17:53:52 -080089extern struct platform_device apq8064_device_qup_i2c_gsbi1;
Jing Lin04601f92012-02-05 15:36:07 -080090extern struct platform_device apq8064_device_qup_i2c_gsbi3;
Kenneth Heitke748593a2011-07-15 15:45:11 -060091extern struct platform_device apq8064_device_qup_i2c_gsbi4;
Harini Jayaramanc4c58692011-07-19 14:50:10 -060092extern struct platform_device apq8064_device_qup_spi_gsbi5;
Sagar Dharia8bdcdaf2011-09-16 16:01:15 -060093extern struct platform_device apq8064_slim_ctrl;
Kenneth Heitke36920d32011-07-20 16:44:30 -060094extern struct platform_device apq8064_device_ssbi_pmic1;
95extern struct platform_device apq8064_device_ssbi_pmic2;
Stepan Moskovchenko28662c52012-03-01 12:48:45 -080096extern struct platform_device apq8064_device_cache_erp;
Stepan Moskovchenkod056fca2011-01-27 12:12:07 -080097
Rohit Vaswani09666872011-08-23 17:41:54 -070098extern struct platform_device msm9615_device_uart_gsbi4;
Harini Jayaramaneba52672011-09-08 15:13:00 -060099extern struct platform_device msm9615_device_qup_i2c_gsbi5;
Harini Jayaraman738c9312011-09-08 15:22:38 -0600100extern struct platform_device msm9615_device_qup_spi_gsbi3;
Sagar Dharia2a5378d2011-12-01 20:00:11 -0700101extern struct platform_device msm9615_slim_ctrl;
Kenneth Heitkeaf3d3cf2011-09-08 11:45:31 -0700102extern struct platform_device msm9615_device_ssbi_pmic1;
Siddartha Mohanadoss5d49cec2011-09-21 10:26:15 -0700103extern struct platform_device msm9615_device_tsens;
Gagan Mac7a827642011-09-22 19:42:21 -0600104extern struct platform_device msm_bus_9615_sys_fabric;
105extern struct platform_device msm_bus_def_fab;
Rohit Vaswani09666872011-08-23 17:41:54 -0700106
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700107extern struct platform_device msm_device_sdc1;
108extern struct platform_device msm_device_sdc2;
109extern struct platform_device msm_device_sdc3;
110extern struct platform_device msm_device_sdc4;
111
Girish Mahadevan55944992012-10-26 11:03:07 -0600112extern struct platform_device msm9615_pm_8x60;
113
Anji Jonnala6c2b6852012-09-21 13:34:44 +0530114extern struct platform_device msm8960_pc_cntr;
115extern struct platform_device msm8064_pc_cntr;
116extern struct platform_device msm8930_pc_cntr;
117
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700118extern struct platform_device msm_device_gadget_peripheral;
Pavankumar Kondeti7032d512010-12-08 13:37:07 +0530119extern struct platform_device msm_device_hsusb_host;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700120extern struct platform_device msm_device_hsusb_host2;
Vijayavardhan Vennapusaeb566482011-09-18 07:48:37 +0530121extern struct platform_device msm_device_hsic_host;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700122
123extern struct platform_device msm_device_otg;
Ofir Cohen94213a72012-05-03 14:26:32 +0300124extern struct platform_device msm_android_usb_device;
Ido Shayevitz479f2eb2012-06-27 10:39:57 +0300125extern struct platform_device msm_android_usb_hsic_device;
Ofir Cohen06789f12012-01-16 09:43:13 +0200126extern struct platform_device msm_device_hsic_peripheral;
Stepan Moskovchenko14aa6492011-08-08 15:15:01 -0700127extern struct platform_device msm8960_device_otg;
128extern struct platform_device msm8960_device_gadget_peripheral;
129
130extern struct platform_device apq8064_device_otg;
131extern struct platform_device apq8064_usb_diag_device;
132extern struct platform_device apq8064_device_gadget_peripheral;
Hemant Kumard86c4882012-01-24 19:39:37 -0800133extern struct platform_device apq8064_device_hsusb_host;
Hemant Kumara945b472012-01-25 15:08:06 -0800134extern struct platform_device apq8064_device_hsic_host;
Manu Gautam91223e02011-11-08 15:27:22 +0530135extern struct platform_device apq8064_device_ehci_host3;
Hemant Kumar1d66e1c2012-02-13 15:24:59 -0800136extern struct platform_device apq8064_device_ehci_host4;
Stepan Moskovchenko14aa6492011-08-08 15:15:01 -0700137
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700138extern struct platform_device msm_device_i2c;
139
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700140extern struct platform_device msm_device_i2c_2;
141
142extern struct platform_device qup_device_i2c;
143
144extern struct platform_device msm_gsbi0_qup_i2c_device;
145extern struct platform_device msm_gsbi1_qup_i2c_device;
146extern struct platform_device msm_gsbi3_qup_i2c_device;
147extern struct platform_device msm_gsbi4_qup_i2c_device;
148extern struct platform_device msm_gsbi7_qup_i2c_device;
149extern struct platform_device msm_gsbi8_qup_i2c_device;
150extern struct platform_device msm_gsbi9_qup_i2c_device;
151extern struct platform_device msm_gsbi12_qup_i2c_device;
152
Taniya Dase3027e22012-02-27 16:32:27 +0530153extern struct platform_device msm8625_gsbi0_qup_i2c_device;
154extern struct platform_device msm8625_gsbi1_qup_i2c_device;
Trilok Soni269fff42012-02-13 20:35:30 +0530155extern struct platform_device msm8625_device_uart_dm1;
156extern struct platform_device msm8625_device_uart_dm2;
Trilok Soniee75f6c2012-02-13 20:45:07 +0530157extern struct platform_device msm8625_device_sdc1;
158extern struct platform_device msm8625_device_sdc2;
159extern struct platform_device msm8625_device_sdc3;
160extern struct platform_device msm8625_device_sdc4;
Trilok Sonida63a8b2012-02-13 20:50:03 +0530161extern struct platform_device msm8625_device_gadget_peripheral;
162extern struct platform_device msm8625_device_hsusb_host;
163extern struct platform_device msm8625_device_otg;
Trilok Soni664b95d2012-02-13 21:13:15 +0530164extern struct platform_device msm8625_kgsl_3d0;
Laxminath Kasam5faa1ca2012-02-15 12:06:45 +0530165extern struct platform_device msm8625_device_adsp;
Taniya Das9d187142011-12-02 15:53:25 +0530166
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700167extern struct platform_device msm_slim_ctrl;
168extern struct platform_device msm_device_sps;
Ofir Cohen40a4e862011-12-08 15:17:52 +0200169extern struct platform_device msm_device_usb_bam;
Yan He06913ce2011-08-26 16:33:46 -0700170extern struct platform_device msm_device_sps_apq8064;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700171extern struct platform_device msm_device_bam_dmux;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700172extern struct platform_device msm_device_smd;
Jeff Hugo0c0f5e92011-09-28 13:55:45 -0600173extern struct platform_device msm_device_smd_apq8064;
Angshuman Sarkarfb1cce92012-02-21 15:20:43 +0530174extern struct platform_device msm8625_device_smd;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700175extern struct platform_device msm_device_dmov;
Stepan Moskovchenkodf13d342011-08-03 19:01:25 -0700176extern struct platform_device msm8960_device_dmov;
177extern struct platform_device apq8064_device_dmov;
Jeff Ohlsteind19bf442011-09-09 12:48:18 -0700178extern struct platform_device msm9615_device_dmov;
Taniya Das43bcdd62011-12-02 17:33:27 +0530179extern struct platform_device msm8625_device_dmov;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700180extern struct platform_device msm_device_dmov_adm0;
181extern struct platform_device msm_device_dmov_adm1;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700182
Niranjana Vishwanathapura06f89332012-05-03 17:11:13 -0600183extern struct platform_device msm_device_pcie;
184
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700185extern struct platform_device msm_device_nand;
186
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700187extern struct platform_device msm_device_tssc;
188
189extern struct platform_device msm_rotator_device;
Terence Hampson2e1705f2012-04-11 19:55:29 -0400190#ifdef CONFIG_MSM_VCAP
191extern struct platform_device msm8064_device_vcap;
192#endif
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700193
Nagamalleswararao Ganji5fabbd62011-11-06 23:10:43 -0800194#ifdef CONFIG_MSM_BUS_SCALING
195extern struct msm_bus_scale_pdata rotator_bus_scale_pdata;
196#endif
197
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700198extern struct platform_device msm_device_tsif[2];
Joel Nider6b9a7bc2012-06-26 11:19:19 +0300199extern struct platform_device msm_8064_device_tsif[2];
Joel Nider50b50fa2012-08-05 14:17:29 +0300200extern struct platform_device msm_8064_device_tspp;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700201
Anirudh Ghayal9d9cdc22011-10-10 17:17:07 +0530202extern struct platform_device msm_device_ssbi_pmic1;
Anirudh Ghayalc49157f2011-11-09 14:49:59 +0530203extern struct platform_device msm_device_ssbi_pmic2;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700204extern struct platform_device msm_device_ssbi1;
205extern struct platform_device msm_device_ssbi2;
206extern struct platform_device msm_device_ssbi3;
207extern struct platform_device msm_device_ssbi6;
208extern struct platform_device msm_device_ssbi7;
209
210extern struct platform_device msm_gsbi1_qup_spi_device;
211
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700212extern struct platform_device msm_device_vidc_720p;
213
214extern struct platform_device msm_pcm;
Kiran Kandi5e809b02012-01-31 00:24:33 -0800215extern struct platform_device msm_multi_ch_pcm;
Jayasena Sangaraboina99bf09c2012-07-17 12:03:08 -0700216extern struct platform_device msm_lowlatency_pcm;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700217extern struct platform_device msm_pcm_routing;
218extern struct platform_device msm_cpudai0;
219extern struct platform_device msm_cpudai1;
Santosh Mardieff9a742012-04-09 23:23:39 +0530220extern struct platform_device mpq_cpudai_sec_i2s_rx;
Aviral Guptabfa97882012-10-16 12:15:59 +0530221extern struct platform_device mpq_cpudai_pseudo;
Kiran Kandi97fe19d2012-05-20 22:34:04 -0700222extern struct platform_device msm8960_cpudai_slimbus_2_rx;
Kiran Kandi1e6371d2012-03-29 11:48:57 -0700223extern struct platform_device msm8960_cpudai_slimbus_2_tx;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700224extern struct platform_device msm_cpudai_hdmi_rx;
225extern struct platform_device msm_cpudai_bt_rx;
226extern struct platform_device msm_cpudai_bt_tx;
227extern struct platform_device msm_cpudai_fm_rx;
228extern struct platform_device msm_cpudai_fm_tx;
Bhalchandra Gajare0e795c42011-08-15 18:10:30 -0700229extern struct platform_device msm_cpudai_auxpcm_rx;
230extern struct platform_device msm_cpudai_auxpcm_tx;
Shiv Maliyappanahalli7f4dec52012-06-01 16:06:08 -0700231extern struct platform_device msm_cpudai_sec_auxpcm_rx;
232extern struct platform_device msm_cpudai_sec_auxpcm_tx;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700233extern struct platform_device msm_cpu_fe;
234extern struct platform_device msm_stub_codec;
235extern struct platform_device msm_voice;
236extern struct platform_device msm_voip;
Shiv Maliyappanahalli30561a52012-10-28 21:15:07 -0700237extern struct platform_device msm_dtmf;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700238extern struct platform_device msm_lpa_pcm;
239extern struct platform_device msm_pcm_hostless;
Laxminath Kasamcee1d602011-08-01 19:26:57 +0530240extern struct platform_device msm_cpudai_afe_01_rx;
241extern struct platform_device msm_cpudai_afe_01_tx;
242extern struct platform_device msm_cpudai_afe_02_rx;
243extern struct platform_device msm_cpudai_afe_02_tx;
244extern struct platform_device msm_pcm_afe;
Asish Bhattacharya96bb6f42011-11-01 20:36:09 +0530245extern struct platform_device msm_compr_dsp;
Helen Zeng0705a5f2011-10-14 15:29:52 -0700246extern struct platform_device msm_cpudai_incall_music_rx;
Helen Zenge3d716a2011-10-14 16:32:16 -0700247extern struct platform_device msm_cpudai_incall_record_rx;
248extern struct platform_device msm_cpudai_incall_record_tx;
Venkat Sudhir5efc4912012-05-15 17:10:35 -0700249extern struct platform_device msm_i2s_cpudai0;
250extern struct platform_device msm_i2s_cpudai1;
Damir Didjustoadd54442012-09-21 10:39:54 -0700251extern struct platform_device msm_i2s_cpudai4;
252extern struct platform_device msm_i2s_cpudai5;
Shiv Maliyappanahallic2321262012-11-12 15:21:05 -0800253extern struct platform_device msm_cpudai_stub;
254
Stephen Boyd3acc9e42011-09-28 16:46:40 -0700255extern struct platform_device msm_pil_q6v3;
Stephen Boyd4eb885b2011-09-29 01:16:03 -0700256extern struct platform_device msm_pil_modem;
Stephen Boydd89eebe2011-09-28 23:28:11 -0700257extern struct platform_device msm_pil_tzapps;
Stephen Boyd25c4a0b2011-09-20 00:12:36 -0700258extern struct platform_device msm_pil_dsps;
Stephen Boyd7b973de2012-03-09 12:26:16 -0800259extern struct platform_device msm_pil_vidc;
Stephen Boydeb819882011-08-29 14:46:30 -0700260extern struct platform_device msm_8960_q6_lpass;
Stephen Boyda1cf76b2012-06-13 12:05:35 -0700261extern struct platform_device msm_9615_q6_lpass;
Stephen Boydbdb53f32012-06-05 18:39:47 -0700262extern struct platform_device msm_8960_q6_mss;
Stephen Boyd2efa9962012-06-12 14:20:12 -0700263extern struct platform_device msm_9615_q6_mss;
Stephen Boyd322a9922011-09-20 01:05:54 -0700264extern struct platform_device msm_8960_riva;
Matt Wagantall292aace2012-01-26 19:12:34 -0800265extern struct platform_device msm_gss;
Stephen Boydeb819882011-08-29 14:46:30 -0700266
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800267extern struct platform_device apq_pcm;
268extern struct platform_device apq_pcm_routing;
269extern struct platform_device apq_cpudai0;
270extern struct platform_device apq_cpudai1;
Kuirong Wangf23f8c52012-03-31 12:34:51 -0700271extern struct platform_device mpq_cpudai_mi2s_tx;
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800272extern struct platform_device apq_cpudai_hdmi_rx;
273extern struct platform_device apq_cpudai_bt_rx;
274extern struct platform_device apq_cpudai_bt_tx;
275extern struct platform_device apq_cpudai_fm_rx;
276extern struct platform_device apq_cpudai_fm_tx;
277extern struct platform_device apq_cpudai_auxpcm_rx;
278extern struct platform_device apq_cpudai_auxpcm_tx;
279extern struct platform_device apq_cpu_fe;
280extern struct platform_device apq_stub_codec;
281extern struct platform_device apq_voice;
282extern struct platform_device apq_voip;
283extern struct platform_device apq_lpa_pcm;
Krishnankutty Kolathappilly4374e332012-03-18 22:27:30 -0700284extern struct platform_device apq_compr_dsp;
285extern struct platform_device apq_multi_ch_pcm;
Jayasena Sangaraboina99bf09c2012-07-17 12:03:08 -0700286extern struct platform_device apq_lowlatency_pcm;
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800287extern struct platform_device apq_pcm_hostless;
288extern struct platform_device apq_cpudai_afe_01_rx;
289extern struct platform_device apq_cpudai_afe_01_tx;
290extern struct platform_device apq_cpudai_afe_02_rx;
291extern struct platform_device apq_cpudai_afe_02_tx;
292extern struct platform_device apq_pcm_afe;
Neema Shetty8427c262012-02-16 11:23:43 -0800293extern struct platform_device apq_cpudai_stub;
Neema Shetty3c9d2862012-03-11 01:25:32 -0800294extern struct platform_device apq_cpudai_slimbus_1_rx;
295extern struct platform_device apq_cpudai_slimbus_1_tx;
Kiran Kandi97fe19d2012-05-20 22:34:04 -0700296extern struct platform_device apq_cpudai_slimbus_2_rx;
Kiran Kandi1e6371d2012-03-29 11:48:57 -0700297extern struct platform_device apq_cpudai_slimbus_2_tx;
Neema Shettyc9d86c32012-05-09 12:01:39 -0700298extern struct platform_device apq_cpudai_slimbus_3_rx;
Helen Zeng38c3c962012-05-17 14:56:20 -0700299extern struct platform_device apq_cpudai_slimbus_3_tx;
Helen Zeng8f925502012-03-05 16:50:17 -0800300extern struct platform_device apq_cpudai_slim_4_rx;
301extern struct platform_device apq_cpudai_slim_4_tx;
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800302
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700303extern struct platform_device *msm_footswitch_devices[];
304extern unsigned msm_num_footswitch_devices;
Matt Wagantall1f65d9d2012-04-25 14:24:20 -0700305extern struct platform_device *msm8660_footswitch[];
306extern unsigned msm8660_num_footswitch;
307extern struct platform_device *msm8960_footswitch[];
308extern unsigned msm8960_num_footswitch;
Stephen Boyd913c29d2012-10-25 11:46:04 -0700309extern struct platform_device *msm8960ab_footswitch[];
310extern unsigned msm8960ab_num_footswitch;
Matt Wagantall1f65d9d2012-04-25 14:24:20 -0700311extern struct platform_device *apq8064_footswitch[];
312extern unsigned apq8064_num_footswitch;
313extern struct platform_device *msm8930_footswitch[];
314extern unsigned msm8930_num_footswitch;
Aravind Venkateswaran896d2f92012-10-29 17:54:55 -0700315extern struct platform_device *msm8930_pm8917_footswitch[];
316extern unsigned msm8930_pm8917_num_footswitch;
Tianyi Gou723843b2012-06-13 15:24:56 -0700317extern struct platform_device *msm8627_footswitch[];
318extern unsigned msm8627_num_footswitch;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700319
320extern struct platform_device fsm_qfp_fuse_device;
321
Rohit Vaswani4c0d3042011-07-13 14:19:23 -0700322extern struct platform_device fsm_xo_device;
323
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700324extern struct platform_device qfec_device;
Daniel Walker50bc0ef2010-12-13 14:35:11 -0800325
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700326extern struct platform_device msm_kgsl_3d0;
327extern struct platform_device msm_kgsl_2d0;
328extern struct platform_device msm_kgsl_2d1;
329
330extern struct platform_device msm_mipi_dsi1_device;
Padmanabhan Komanduru0b9517b2012-07-02 18:31:23 +0530331extern struct platform_device mipi_dsi_device;
Padmanabhan Komandurue77bcf52012-07-26 12:43:39 +0530332extern struct platform_device msm_lcdc_device;
Ravishangar Kalyanamc2fee312012-02-09 19:11:22 -0800333extern struct platform_device msm_lvds_device;
Zhang Chang Kenc2f2bcc2012-03-30 18:32:02 -0400334extern struct platform_device msm_ebi2_lcdc_device;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700335
336extern struct clk_lookup msm_clocks_fsm9xxx[];
337extern unsigned msm_num_clocks_fsm9xxx;
338
339extern struct platform_device msm_footswitch;
340
341void __init msm_fb_register_device(char *name, void *data);
342void __init msm_camera_register_device(void *, uint32_t, void *);
343struct platform_device *msm_add_gsbi9_uart(void);
344extern struct platform_device msm_device_touchscreen;
345
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700346extern struct platform_device led_pdev;
Laura Abbotta2e93632011-08-19 13:36:32 -0700347
Praveen Chidambaram78499012011-11-01 17:15:17 -0600348extern struct platform_device msm8960_rpm_device;
349extern struct platform_device msm8960_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530350extern struct platform_device msm8960_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600351extern struct platform_device msm8960_rpm_log_device;
352
353extern struct platform_device msm8930_rpm_device;
354extern struct platform_device msm8930_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530355extern struct platform_device msm8930_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600356extern struct platform_device msm8930_rpm_log_device;
Girish Mahadevan898c56d2012-06-05 16:09:19 -0600357extern struct platform_device msm8930_rpm_rbcpr_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600358
359extern struct platform_device msm8660_rpm_device;
360extern struct platform_device msm8660_rpm_stat_device;
361extern struct platform_device msm8660_rpm_log_device;
362
363extern struct platform_device msm9615_rpm_device;
364extern struct platform_device msm9615_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530365extern struct platform_device msm9615_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600366extern struct platform_device msm9615_rpm_log_device;
367
368extern struct platform_device apq8064_rpm_device;
369extern struct platform_device apq8064_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530370extern struct platform_device apq8064_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600371extern struct platform_device apq8064_rpm_log_device;
372
Ramesh Masavarapu5ad37392011-10-10 10:44:10 -0700373extern struct platform_device msm_device_rng;
Ramesh Masavarapuf46be1b2011-11-03 11:13:41 -0700374extern struct platform_device apq8064_device_rng;
Ramesh Masavarapuaa28b5b2011-10-21 10:26:03 -0700375
376#if defined(CONFIG_CRYPTO_DEV_QCRYPTO) || \
377 defined(CONFIG_CRYPTO_DEV_QCRYPTO_MODULE)
378extern struct platform_device msm9615_qcrypto_device;
379#endif
380
381#if defined(CONFIG_CRYPTO_DEV_QCEDEV) || \
382 defined(CONFIG_CRYPTO_DEV_QCEDEV_MODULE)
383extern struct platform_device msm9615_qcedev_device;
384#endif
Jeff Ohlstein7e668552011-10-06 16:17:25 -0700385extern struct platform_device msm8960_device_watchdog;
386extern struct platform_device msm8660_device_watchdog;
387extern struct platform_device msm8064_device_watchdog;
388extern struct platform_device msm9615_device_watchdog;
Rohit Vaswanie897f842012-03-19 14:19:34 -0700389extern struct platform_device fsm9xxx_device_watchdog;
Pratik Patelfd6f56a2011-10-10 17:47:55 -0700390
Pratik Patel3b0ca882012-06-01 16:54:14 -0700391extern struct platform_device coresight_tpiu_device;
392extern struct platform_device coresight_etb_device;
393extern struct platform_device coresight_funnel_device;
394extern struct platform_device apq8064_coresight_funnel_device;
395extern struct platform_device coresight_etm0_device;
396extern struct platform_device coresight_etm1_device;
397extern struct platform_device coresight_etm2_device;
398extern struct platform_device coresight_etm3_device;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700399#endif
Gagan Mac8a7a5d32011-11-11 16:43:06 -0700400
401extern struct platform_device msm_bus_8064_apps_fabric;
402extern struct platform_device msm_bus_8064_sys_fabric;
403extern struct platform_device msm_bus_8064_mm_fabric;
404extern struct platform_device msm_bus_8064_sys_fpb;
405extern struct platform_device msm_bus_8064_cpss_fpb;
Joel Kingdacbc822012-01-25 13:30:57 -0800406
407extern struct platform_device mdm_8064_device;
Ameya Thakure155ece2012-07-09 12:08:37 -0700408extern struct platform_device i2s_mdm_8064_device;
Jin Hongd3024e62012-02-09 16:13:32 -0800409extern struct platform_device msm_dsps_device_8064;
Abhimanyu Kapur90ced6e2012-06-26 17:41:25 -0700410extern struct platform_device *msm_8974_stub_regulator_devices[];
411extern int msm_8974_stub_regulator_devices_len;
Praveen Chidambaram8ea3dcd2011-12-07 14:46:31 -0700412
Steve Mucklef9a87492012-11-02 15:41:00 -0700413extern struct platform_device apq8064_dcvs_device;
Praveen Chidambaram5c8adf22012-02-23 18:44:37 -0700414extern struct platform_device apq8064_msm_gov_device;
Gagan Maccd5b3272012-02-09 18:13:10 -0700415
416extern struct platform_device msm_bus_8930_apps_fabric;
417extern struct platform_device msm_bus_8930_sys_fabric;
418extern struct platform_device msm_bus_8930_mm_fabric;
419extern struct platform_device msm_bus_8930_sys_fpb;
420extern struct platform_device msm_bus_8930_cpss_fpb;
Kevin Chan3be11612012-03-22 20:05:40 -0700421
422extern struct platform_device msm_device_csic0;
423extern struct platform_device msm_device_csic1;
424extern struct platform_device msm_device_vfe;
425extern struct platform_device msm_device_vpe;
Joel King8f839b92012-04-01 14:37:46 -0700426extern struct platform_device mpq8064_device_qup_i2c_gsbi5;
Bar Weinerf82c5872012-10-23 14:31:26 +0200427extern struct platform_device mpq8064_device_qup_spi_gsbi6;
Laura Abbott0577d7b2012-04-17 11:14:30 -0700428
Laura Abbottd92be422012-06-04 15:11:09 -0700429extern struct platform_device msm8660_iommu_domain_device;
Laura Abbott0577d7b2012-04-17 11:14:30 -0700430extern struct platform_device msm8960_iommu_domain_device;
431extern struct platform_device msm8930_iommu_domain_device;
432extern struct platform_device apq8064_iommu_domain_device;
Laura Abbott532b2df2012-04-12 10:53:48 -0700433
434extern struct platform_device msm8960_rtb_device;
435extern struct platform_device msm8930_rtb_device;
436extern struct platform_device apq8064_rtb_device;
Laura Abbott2ae8f362012-04-12 11:03:04 -0700437
438extern struct platform_device msm8960_cache_dump_device;
Laura Abbott93a4a352012-05-25 09:26:35 -0700439extern struct platform_device apq8064_cache_dump_device;
Laura Abbottf3173042012-05-29 15:23:18 -0700440extern struct platform_device msm8930_cache_dump_device;
Hariprasad Dhalinarasimhaf42732a2012-05-21 18:00:49 -0700441
Joel King0cbf5d82012-05-24 15:21:38 -0700442extern struct platform_device mdm_sglte_device;
Ramesh Masavarapuf31ff242012-05-10 18:55:21 -0700443
444extern struct platform_device apq_device_tz_log;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700445
446extern struct platform_device msm7x27_device_acpuclk;
447extern struct platform_device msm7x27a_device_acpuclk;
448extern struct platform_device msm7x27aa_device_acpuclk;
449extern struct platform_device msm7x30_device_acpuclk;
Matt Wagantallf5cc3892012-06-07 19:47:02 -0700450extern struct platform_device apq8064_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700451extern struct platform_device msm8625_device_acpuclk;
Matt Wagantallab730bd2012-06-07 20:13:51 -0700452extern struct platform_device msm8627_device_acpuclk;
Kaushal Kumar86473f02012-06-28 19:35:58 +0530453extern struct platform_device msm8625ab_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700454extern struct platform_device msm8x50_device_acpuclk;
455extern struct platform_device msm8x60_device_acpuclk;
Matt Wagantall6dcfa922012-06-07 20:13:51 -0700456extern struct platform_device msm8930_device_acpuclk;
Tianyi Gou12370f12012-07-23 19:13:57 -0700457extern struct platform_device msm8930aa_device_acpuclk;
Tianyi Gou2520b6e2012-10-29 19:13:53 -0700458extern struct platform_device msm8930ab_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700459extern struct platform_device msm8960_device_acpuclk;
Patrick Daly6578e0c2012-07-19 18:50:02 -0700460extern struct platform_device msm8960ab_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700461extern struct platform_device msm9615_device_acpuclk;
Rohit Vaswanib1cc4932012-07-23 21:30:11 -0700462
Abhijeet Dharmapurikarfb4a2f82012-08-23 14:36:59 -0700463extern struct platform_device apq8064_msm_mpd_device;
464
Rohit Vaswanib1cc4932012-07-23 21:30:11 -0700465extern struct platform_device msm_gpio_device;
Kuirong Wangf8c5e142012-06-21 16:17:32 -0700466
467extern struct platform_device apq_cpudai_mi2s;
468extern struct platform_device apq_cpudai_i2s_rx;
469extern struct platform_device apq_cpudai_i2s_tx;
470