blob: 2339706f0f17d0ae61e389a925e6574806b91e97 [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;
Saket Saurabhd425a5d2012-11-06 16:08:28 +053059extern struct platform_device mpq8064_device_uart_gsbi5;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070060
Stepan Moskovchenkod056fca2011-01-27 12:12:07 -080061extern struct platform_device msm8960_device_uart_gsbi2;
62extern struct platform_device msm8960_device_uart_gsbi5;
Stepan Moskovchenko2b4b1cd2012-03-29 18:21:04 -070063extern struct platform_device msm8960_device_uart_gsbi8;
Jay Chokshi33c044a2011-12-07 13:05:40 -080064extern struct platform_device msm8960_device_ssbi_pmic;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070065extern struct platform_device msm8960_device_qup_i2c_gsbi3;
66extern struct platform_device msm8960_device_qup_i2c_gsbi4;
Harini Jayaramanfe6ff4162012-03-14 11:25:40 -060067extern struct platform_device msm8960_device_qup_i2c_gsbi9;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070068extern struct platform_device msm8960_device_qup_i2c_gsbi10;
69extern struct platform_device msm8960_device_qup_i2c_gsbi12;
70extern struct platform_device msm8960_device_qup_spi_gsbi1;
71extern struct platform_device msm8960_gemini_device;
Kalyani Oruganti465d1e12012-05-15 10:23:05 -070072extern struct platform_device msm8960_mercury_device;
Kevin Chanbb8ef862012-02-14 13:03:04 -080073extern struct platform_device msm8960_device_i2c_mux_gsbi4;
Kevin Chanf6216f22011-10-25 18:40:11 -070074extern struct platform_device msm8960_device_csiphy0;
75extern struct platform_device msm8960_device_csiphy1;
Sreesudhan Ramakrish Ramkumarb1edcd02012-01-17 11:33:05 -080076extern struct platform_device msm8960_device_csiphy2;
Kevin Chanc8b52e82011-10-25 23:20:21 -070077extern struct platform_device msm8960_device_csid0;
78extern struct platform_device msm8960_device_csid1;
Sreesudhan Ramakrish Ramkumarb1edcd02012-01-17 11:33:05 -080079extern struct platform_device msm8960_device_csid2;
Kevin Chane12c6672011-10-26 11:55:26 -070080extern struct platform_device msm8960_device_ispif;
Kevin Chan5827c552011-10-28 18:36:32 -070081extern struct platform_device msm8960_device_vfe;
Kevin Chana0853122011-11-07 19:48:44 -080082extern struct platform_device msm8960_device_vpe;
Stepan Moskovchenko28662c52012-03-01 12:48:45 -080083extern struct platform_device msm8960_device_cache_erp;
Stepan Moskovchenkoc0557252012-06-07 17:39:14 -070084extern struct platform_device msm8960_device_ebi1_ch0_erp;
85extern struct platform_device msm8960_device_ebi1_ch1_erp;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070086
Stepan Moskovchenko2701a442011-08-19 13:47:22 -070087extern struct platform_device apq8064_device_uart_gsbi1;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070088extern struct platform_device apq8064_device_uart_gsbi3;
Jin Hong4bbbfba2012-02-02 21:48:07 -080089extern struct platform_device apq8064_device_uart_gsbi7;
David Keitel3c40fc52012-02-09 17:53:52 -080090extern struct platform_device apq8064_device_qup_i2c_gsbi1;
Jing Lin04601f92012-02-05 15:36:07 -080091extern struct platform_device apq8064_device_qup_i2c_gsbi3;
Kenneth Heitke748593a2011-07-15 15:45:11 -060092extern struct platform_device apq8064_device_qup_i2c_gsbi4;
Harini Jayaramanc4c58692011-07-19 14:50:10 -060093extern struct platform_device apq8064_device_qup_spi_gsbi5;
Sagar Dharia8bdcdaf2011-09-16 16:01:15 -060094extern struct platform_device apq8064_slim_ctrl;
Kenneth Heitke36920d32011-07-20 16:44:30 -060095extern struct platform_device apq8064_device_ssbi_pmic1;
96extern struct platform_device apq8064_device_ssbi_pmic2;
Stepan Moskovchenko28662c52012-03-01 12:48:45 -080097extern struct platform_device apq8064_device_cache_erp;
Stepan Moskovchenkod056fca2011-01-27 12:12:07 -080098
Rohit Vaswani09666872011-08-23 17:41:54 -070099extern struct platform_device msm9615_device_uart_gsbi4;
Harini Jayaramaneba52672011-09-08 15:13:00 -0600100extern struct platform_device msm9615_device_qup_i2c_gsbi5;
Harini Jayaraman738c9312011-09-08 15:22:38 -0600101extern struct platform_device msm9615_device_qup_spi_gsbi3;
Sagar Dharia2a5378d2011-12-01 20:00:11 -0700102extern struct platform_device msm9615_slim_ctrl;
Kenneth Heitkeaf3d3cf2011-09-08 11:45:31 -0700103extern struct platform_device msm9615_device_ssbi_pmic1;
Siddartha Mohanadoss5d49cec2011-09-21 10:26:15 -0700104extern struct platform_device msm9615_device_tsens;
Gagan Mac7a827642011-09-22 19:42:21 -0600105extern struct platform_device msm_bus_9615_sys_fabric;
106extern struct platform_device msm_bus_def_fab;
Rohit Vaswani09666872011-08-23 17:41:54 -0700107
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700108extern struct platform_device msm_device_sdc1;
109extern struct platform_device msm_device_sdc2;
110extern struct platform_device msm_device_sdc3;
111extern struct platform_device msm_device_sdc4;
112
Girish Mahadevan55944992012-10-26 11:03:07 -0600113extern struct platform_device msm9615_pm_8x60;
114
Anji Jonnala6c2b6852012-09-21 13:34:44 +0530115extern struct platform_device msm8960_pc_cntr;
116extern struct platform_device msm8064_pc_cntr;
117extern struct platform_device msm8930_pc_cntr;
118
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700119extern struct platform_device msm_device_gadget_peripheral;
Pavankumar Kondeti7032d512010-12-08 13:37:07 +0530120extern struct platform_device msm_device_hsusb_host;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700121extern struct platform_device msm_device_hsusb_host2;
Vijayavardhan Vennapusaeb566482011-09-18 07:48:37 +0530122extern struct platform_device msm_device_hsic_host;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700123
124extern struct platform_device msm_device_otg;
Ofir Cohen94213a72012-05-03 14:26:32 +0300125extern struct platform_device msm_android_usb_device;
Ido Shayevitz479f2eb2012-06-27 10:39:57 +0300126extern struct platform_device msm_android_usb_hsic_device;
Ofir Cohen06789f12012-01-16 09:43:13 +0200127extern struct platform_device msm_device_hsic_peripheral;
Stepan Moskovchenko14aa6492011-08-08 15:15:01 -0700128extern struct platform_device msm8960_device_otg;
129extern struct platform_device msm8960_device_gadget_peripheral;
130
131extern struct platform_device apq8064_device_otg;
132extern struct platform_device apq8064_usb_diag_device;
133extern struct platform_device apq8064_device_gadget_peripheral;
Hemant Kumard86c4882012-01-24 19:39:37 -0800134extern struct platform_device apq8064_device_hsusb_host;
Hemant Kumara945b472012-01-25 15:08:06 -0800135extern struct platform_device apq8064_device_hsic_host;
Manu Gautam91223e02011-11-08 15:27:22 +0530136extern struct platform_device apq8064_device_ehci_host3;
Hemant Kumar1d66e1c2012-02-13 15:24:59 -0800137extern struct platform_device apq8064_device_ehci_host4;
Stepan Moskovchenko14aa6492011-08-08 15:15:01 -0700138
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700139extern struct platform_device msm_device_i2c;
140
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700141extern struct platform_device msm_device_i2c_2;
142
143extern struct platform_device qup_device_i2c;
144
145extern struct platform_device msm_gsbi0_qup_i2c_device;
146extern struct platform_device msm_gsbi1_qup_i2c_device;
147extern struct platform_device msm_gsbi3_qup_i2c_device;
148extern struct platform_device msm_gsbi4_qup_i2c_device;
149extern struct platform_device msm_gsbi7_qup_i2c_device;
150extern struct platform_device msm_gsbi8_qup_i2c_device;
151extern struct platform_device msm_gsbi9_qup_i2c_device;
152extern struct platform_device msm_gsbi12_qup_i2c_device;
153
Taniya Dase3027e22012-02-27 16:32:27 +0530154extern struct platform_device msm8625_gsbi0_qup_i2c_device;
155extern struct platform_device msm8625_gsbi1_qup_i2c_device;
Trilok Soni269fff42012-02-13 20:35:30 +0530156extern struct platform_device msm8625_device_uart_dm1;
157extern struct platform_device msm8625_device_uart_dm2;
Trilok Soniee75f6c2012-02-13 20:45:07 +0530158extern struct platform_device msm8625_device_sdc1;
159extern struct platform_device msm8625_device_sdc2;
160extern struct platform_device msm8625_device_sdc3;
161extern struct platform_device msm8625_device_sdc4;
Trilok Sonida63a8b2012-02-13 20:50:03 +0530162extern struct platform_device msm8625_device_gadget_peripheral;
163extern struct platform_device msm8625_device_hsusb_host;
164extern struct platform_device msm8625_device_otg;
Trilok Soni664b95d2012-02-13 21:13:15 +0530165extern struct platform_device msm8625_kgsl_3d0;
Laxminath Kasam5faa1ca2012-02-15 12:06:45 +0530166extern struct platform_device msm8625_device_adsp;
Taniya Das9d187142011-12-02 15:53:25 +0530167
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700168extern struct platform_device msm_slim_ctrl;
169extern struct platform_device msm_device_sps;
Ofir Cohen40a4e862011-12-08 15:17:52 +0200170extern struct platform_device msm_device_usb_bam;
Yan He06913ce2011-08-26 16:33:46 -0700171extern struct platform_device msm_device_sps_apq8064;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700172extern struct platform_device msm_device_bam_dmux;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700173extern struct platform_device msm_device_smd;
Jeff Hugo0c0f5e92011-09-28 13:55:45 -0600174extern struct platform_device msm_device_smd_apq8064;
Angshuman Sarkarfb1cce92012-02-21 15:20:43 +0530175extern struct platform_device msm8625_device_smd;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700176extern struct platform_device msm_device_dmov;
Stepan Moskovchenkodf13d342011-08-03 19:01:25 -0700177extern struct platform_device msm8960_device_dmov;
178extern struct platform_device apq8064_device_dmov;
Jeff Ohlsteind19bf442011-09-09 12:48:18 -0700179extern struct platform_device msm9615_device_dmov;
Taniya Das43bcdd62011-12-02 17:33:27 +0530180extern struct platform_device msm8625_device_dmov;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700181extern struct platform_device msm_device_dmov_adm0;
182extern struct platform_device msm_device_dmov_adm1;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700183
Niranjana Vishwanathapura06f89332012-05-03 17:11:13 -0600184extern struct platform_device msm_device_pcie;
185
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700186extern struct platform_device msm_device_nand;
187
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700188extern struct platform_device msm_device_tssc;
189
190extern struct platform_device msm_rotator_device;
Terence Hampson2e1705f2012-04-11 19:55:29 -0400191#ifdef CONFIG_MSM_VCAP
192extern struct platform_device msm8064_device_vcap;
193#endif
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700194
Nagamalleswararao Ganji5fabbd62011-11-06 23:10:43 -0800195#ifdef CONFIG_MSM_BUS_SCALING
196extern struct msm_bus_scale_pdata rotator_bus_scale_pdata;
197#endif
198
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700199extern struct platform_device msm_device_tsif[2];
Joel Nider6b9a7bc2012-06-26 11:19:19 +0300200extern struct platform_device msm_8064_device_tsif[2];
Joel Nider50b50fa2012-08-05 14:17:29 +0300201extern struct platform_device msm_8064_device_tspp;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700202
Anirudh Ghayal9d9cdc22011-10-10 17:17:07 +0530203extern struct platform_device msm_device_ssbi_pmic1;
Anirudh Ghayalc49157f2011-11-09 14:49:59 +0530204extern struct platform_device msm_device_ssbi_pmic2;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700205extern struct platform_device msm_device_ssbi1;
206extern struct platform_device msm_device_ssbi2;
207extern struct platform_device msm_device_ssbi3;
208extern struct platform_device msm_device_ssbi6;
209extern struct platform_device msm_device_ssbi7;
210
211extern struct platform_device msm_gsbi1_qup_spi_device;
212
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700213extern struct platform_device msm_device_vidc_720p;
214
215extern struct platform_device msm_pcm;
Kiran Kandi5e809b02012-01-31 00:24:33 -0800216extern struct platform_device msm_multi_ch_pcm;
Jayasena Sangaraboina99bf09c2012-07-17 12:03:08 -0700217extern struct platform_device msm_lowlatency_pcm;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700218extern struct platform_device msm_pcm_routing;
219extern struct platform_device msm_cpudai0;
220extern struct platform_device msm_cpudai1;
Santosh Mardieff9a742012-04-09 23:23:39 +0530221extern struct platform_device mpq_cpudai_sec_i2s_rx;
Aviral Guptabfa97882012-10-16 12:15:59 +0530222extern struct platform_device mpq_cpudai_pseudo;
Kiran Kandi97fe19d2012-05-20 22:34:04 -0700223extern struct platform_device msm8960_cpudai_slimbus_2_rx;
Kiran Kandi1e6371d2012-03-29 11:48:57 -0700224extern struct platform_device msm8960_cpudai_slimbus_2_tx;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700225extern struct platform_device msm_cpudai_hdmi_rx;
226extern struct platform_device msm_cpudai_bt_rx;
227extern struct platform_device msm_cpudai_bt_tx;
228extern struct platform_device msm_cpudai_fm_rx;
229extern struct platform_device msm_cpudai_fm_tx;
Bhalchandra Gajare0e795c42011-08-15 18:10:30 -0700230extern struct platform_device msm_cpudai_auxpcm_rx;
231extern struct platform_device msm_cpudai_auxpcm_tx;
Shiv Maliyappanahalli7f4dec52012-06-01 16:06:08 -0700232extern struct platform_device msm_cpudai_sec_auxpcm_rx;
233extern struct platform_device msm_cpudai_sec_auxpcm_tx;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700234extern struct platform_device msm_cpu_fe;
235extern struct platform_device msm_stub_codec;
236extern struct platform_device msm_voice;
237extern struct platform_device msm_voip;
Shiv Maliyappanahalli30561a52012-10-28 21:15:07 -0700238extern struct platform_device msm_dtmf;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700239extern struct platform_device msm_lpa_pcm;
240extern struct platform_device msm_pcm_hostless;
Laxminath Kasamcee1d602011-08-01 19:26:57 +0530241extern struct platform_device msm_cpudai_afe_01_rx;
242extern struct platform_device msm_cpudai_afe_01_tx;
243extern struct platform_device msm_cpudai_afe_02_rx;
244extern struct platform_device msm_cpudai_afe_02_tx;
245extern struct platform_device msm_pcm_afe;
Asish Bhattacharya96bb6f42011-11-01 20:36:09 +0530246extern struct platform_device msm_compr_dsp;
Helen Zeng0705a5f2011-10-14 15:29:52 -0700247extern struct platform_device msm_cpudai_incall_music_rx;
Helen Zenge3d716a2011-10-14 16:32:16 -0700248extern struct platform_device msm_cpudai_incall_record_rx;
249extern struct platform_device msm_cpudai_incall_record_tx;
Venkat Sudhir5efc4912012-05-15 17:10:35 -0700250extern struct platform_device msm_i2s_cpudai0;
251extern struct platform_device msm_i2s_cpudai1;
Damir Didjustoadd54442012-09-21 10:39:54 -0700252extern struct platform_device msm_i2s_cpudai4;
253extern struct platform_device msm_i2s_cpudai5;
Shiv Maliyappanahallic2321262012-11-12 15:21:05 -0800254extern struct platform_device msm_cpudai_stub;
255
Stephen Boyd3acc9e42011-09-28 16:46:40 -0700256extern struct platform_device msm_pil_q6v3;
Stephen Boyd4eb885b2011-09-29 01:16:03 -0700257extern struct platform_device msm_pil_modem;
Stephen Boydd89eebe2011-09-28 23:28:11 -0700258extern struct platform_device msm_pil_tzapps;
Stephen Boyd25c4a0b2011-09-20 00:12:36 -0700259extern struct platform_device msm_pil_dsps;
Stephen Boyd7b973de2012-03-09 12:26:16 -0800260extern struct platform_device msm_pil_vidc;
Stephen Boydeb819882011-08-29 14:46:30 -0700261extern struct platform_device msm_8960_q6_lpass;
Stephen Boyda1cf76b2012-06-13 12:05:35 -0700262extern struct platform_device msm_9615_q6_lpass;
Stephen Boydbdb53f32012-06-05 18:39:47 -0700263extern struct platform_device msm_8960_q6_mss;
Stephen Boyd2efa9962012-06-12 14:20:12 -0700264extern struct platform_device msm_9615_q6_mss;
Stephen Boyd322a9922011-09-20 01:05:54 -0700265extern struct platform_device msm_8960_riva;
Matt Wagantall292aace2012-01-26 19:12:34 -0800266extern struct platform_device msm_gss;
Stephen Boydeb819882011-08-29 14:46:30 -0700267
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800268extern struct platform_device apq_pcm;
269extern struct platform_device apq_pcm_routing;
270extern struct platform_device apq_cpudai0;
271extern struct platform_device apq_cpudai1;
Kuirong Wangf23f8c52012-03-31 12:34:51 -0700272extern struct platform_device mpq_cpudai_mi2s_tx;
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800273extern struct platform_device apq_cpudai_hdmi_rx;
274extern struct platform_device apq_cpudai_bt_rx;
275extern struct platform_device apq_cpudai_bt_tx;
276extern struct platform_device apq_cpudai_fm_rx;
277extern struct platform_device apq_cpudai_fm_tx;
278extern struct platform_device apq_cpudai_auxpcm_rx;
279extern struct platform_device apq_cpudai_auxpcm_tx;
280extern struct platform_device apq_cpu_fe;
281extern struct platform_device apq_stub_codec;
282extern struct platform_device apq_voice;
283extern struct platform_device apq_voip;
284extern struct platform_device apq_lpa_pcm;
Krishnankutty Kolathappilly4374e332012-03-18 22:27:30 -0700285extern struct platform_device apq_compr_dsp;
286extern struct platform_device apq_multi_ch_pcm;
Jayasena Sangaraboina99bf09c2012-07-17 12:03:08 -0700287extern struct platform_device apq_lowlatency_pcm;
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800288extern struct platform_device apq_pcm_hostless;
289extern struct platform_device apq_cpudai_afe_01_rx;
290extern struct platform_device apq_cpudai_afe_01_tx;
291extern struct platform_device apq_cpudai_afe_02_rx;
292extern struct platform_device apq_cpudai_afe_02_tx;
293extern struct platform_device apq_pcm_afe;
Neema Shetty8427c262012-02-16 11:23:43 -0800294extern struct platform_device apq_cpudai_stub;
Neema Shetty3c9d2862012-03-11 01:25:32 -0800295extern struct platform_device apq_cpudai_slimbus_1_rx;
296extern struct platform_device apq_cpudai_slimbus_1_tx;
Kiran Kandi97fe19d2012-05-20 22:34:04 -0700297extern struct platform_device apq_cpudai_slimbus_2_rx;
Kiran Kandi1e6371d2012-03-29 11:48:57 -0700298extern struct platform_device apq_cpudai_slimbus_2_tx;
Neema Shettyc9d86c32012-05-09 12:01:39 -0700299extern struct platform_device apq_cpudai_slimbus_3_rx;
Helen Zeng38c3c962012-05-17 14:56:20 -0700300extern struct platform_device apq_cpudai_slimbus_3_tx;
Helen Zeng8f925502012-03-05 16:50:17 -0800301extern struct platform_device apq_cpudai_slim_4_rx;
302extern struct platform_device apq_cpudai_slim_4_tx;
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800303
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700304extern struct platform_device *msm_footswitch_devices[];
305extern unsigned msm_num_footswitch_devices;
Matt Wagantall1f65d9d2012-04-25 14:24:20 -0700306extern struct platform_device *msm8660_footswitch[];
307extern unsigned msm8660_num_footswitch;
308extern struct platform_device *msm8960_footswitch[];
309extern unsigned msm8960_num_footswitch;
Stephen Boyd913c29d2012-10-25 11:46:04 -0700310extern struct platform_device *msm8960ab_footswitch[];
311extern unsigned msm8960ab_num_footswitch;
Matt Wagantall1f65d9d2012-04-25 14:24:20 -0700312extern struct platform_device *apq8064_footswitch[];
313extern unsigned apq8064_num_footswitch;
314extern struct platform_device *msm8930_footswitch[];
315extern unsigned msm8930_num_footswitch;
Aravind Venkateswaran896d2f92012-10-29 17:54:55 -0700316extern struct platform_device *msm8930_pm8917_footswitch[];
317extern unsigned msm8930_pm8917_num_footswitch;
Tianyi Gou723843b2012-06-13 15:24:56 -0700318extern struct platform_device *msm8627_footswitch[];
319extern unsigned msm8627_num_footswitch;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700320
321extern struct platform_device fsm_qfp_fuse_device;
322
Rohit Vaswani4c0d3042011-07-13 14:19:23 -0700323extern struct platform_device fsm_xo_device;
324
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700325extern struct platform_device qfec_device;
Daniel Walker50bc0ef2010-12-13 14:35:11 -0800326
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700327extern struct platform_device msm_kgsl_3d0;
328extern struct platform_device msm_kgsl_2d0;
329extern struct platform_device msm_kgsl_2d1;
330
Harsh Vardhan Dwivedi623b9a22012-10-28 20:54:17 -0600331extern struct resource kgsl_3d0_resources_8960ab[];
332extern int kgsl_num_resources_8960ab;
Lucille Sylvester0a82ff22012-12-06 14:10:19 -0700333#ifdef CONFIG_MSM_BUS_SCALING
334extern struct msm_bus_scale_pdata grp3d_bus_scale_pdata_ab;
335#endif
Harsh Vardhan Dwivedi623b9a22012-10-28 20:54:17 -0600336
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700337extern struct platform_device msm_mipi_dsi1_device;
Padmanabhan Komanduru0b9517b2012-07-02 18:31:23 +0530338extern struct platform_device mipi_dsi_device;
Padmanabhan Komandurue77bcf52012-07-26 12:43:39 +0530339extern struct platform_device msm_lcdc_device;
Ravishangar Kalyanamc2fee312012-02-09 19:11:22 -0800340extern struct platform_device msm_lvds_device;
Zhang Chang Kenc2f2bcc2012-03-30 18:32:02 -0400341extern struct platform_device msm_ebi2_lcdc_device;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700342
343extern struct clk_lookup msm_clocks_fsm9xxx[];
344extern unsigned msm_num_clocks_fsm9xxx;
345
346extern struct platform_device msm_footswitch;
347
348void __init msm_fb_register_device(char *name, void *data);
349void __init msm_camera_register_device(void *, uint32_t, void *);
350struct platform_device *msm_add_gsbi9_uart(void);
351extern struct platform_device msm_device_touchscreen;
352
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700353extern struct platform_device led_pdev;
Laura Abbotta2e93632011-08-19 13:36:32 -0700354
Praveen Chidambaram78499012011-11-01 17:15:17 -0600355extern struct platform_device msm8960_rpm_device;
356extern struct platform_device msm8960_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530357extern struct platform_device msm8960_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600358extern struct platform_device msm8960_rpm_log_device;
359
360extern struct platform_device msm8930_rpm_device;
361extern struct platform_device msm8930_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530362extern struct platform_device msm8930_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600363extern struct platform_device msm8930_rpm_log_device;
Girish Mahadevan898c56d2012-06-05 16:09:19 -0600364extern struct platform_device msm8930_rpm_rbcpr_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600365
366extern struct platform_device msm8660_rpm_device;
367extern struct platform_device msm8660_rpm_stat_device;
368extern struct platform_device msm8660_rpm_log_device;
369
370extern struct platform_device msm9615_rpm_device;
371extern struct platform_device msm9615_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530372extern struct platform_device msm9615_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600373extern struct platform_device msm9615_rpm_log_device;
374
375extern struct platform_device apq8064_rpm_device;
376extern struct platform_device apq8064_rpm_stat_device;
Anji Jonnala93129922012-10-09 20:57:53 +0530377extern struct platform_device apq8064_rpm_master_stat_device;
Praveen Chidambaram78499012011-11-01 17:15:17 -0600378extern struct platform_device apq8064_rpm_log_device;
379
Ramesh Masavarapu5ad37392011-10-10 10:44:10 -0700380extern struct platform_device msm_device_rng;
Ramesh Masavarapuf46be1b2011-11-03 11:13:41 -0700381extern struct platform_device apq8064_device_rng;
Ramesh Masavarapuaa28b5b2011-10-21 10:26:03 -0700382
383#if defined(CONFIG_CRYPTO_DEV_QCRYPTO) || \
384 defined(CONFIG_CRYPTO_DEV_QCRYPTO_MODULE)
385extern struct platform_device msm9615_qcrypto_device;
386#endif
387
388#if defined(CONFIG_CRYPTO_DEV_QCEDEV) || \
389 defined(CONFIG_CRYPTO_DEV_QCEDEV_MODULE)
390extern struct platform_device msm9615_qcedev_device;
391#endif
Jeff Ohlstein7e668552011-10-06 16:17:25 -0700392extern struct platform_device msm8960_device_watchdog;
393extern struct platform_device msm8660_device_watchdog;
394extern struct platform_device msm8064_device_watchdog;
395extern struct platform_device msm9615_device_watchdog;
Rohit Vaswanie897f842012-03-19 14:19:34 -0700396extern struct platform_device fsm9xxx_device_watchdog;
Pratik Patelfd6f56a2011-10-10 17:47:55 -0700397
Pratik Patel3b0ca882012-06-01 16:54:14 -0700398extern struct platform_device coresight_tpiu_device;
399extern struct platform_device coresight_etb_device;
400extern struct platform_device coresight_funnel_device;
401extern struct platform_device apq8064_coresight_funnel_device;
402extern struct platform_device coresight_etm0_device;
403extern struct platform_device coresight_etm1_device;
404extern struct platform_device coresight_etm2_device;
405extern struct platform_device coresight_etm3_device;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700406#endif
Gagan Mac8a7a5d32011-11-11 16:43:06 -0700407
408extern struct platform_device msm_bus_8064_apps_fabric;
409extern struct platform_device msm_bus_8064_sys_fabric;
410extern struct platform_device msm_bus_8064_mm_fabric;
411extern struct platform_device msm_bus_8064_sys_fpb;
412extern struct platform_device msm_bus_8064_cpss_fpb;
Joel Kingdacbc822012-01-25 13:30:57 -0800413
414extern struct platform_device mdm_8064_device;
Ameya Thakure155ece2012-07-09 12:08:37 -0700415extern struct platform_device i2s_mdm_8064_device;
Jin Hongd3024e62012-02-09 16:13:32 -0800416extern struct platform_device msm_dsps_device_8064;
Abhimanyu Kapur90ced6e2012-06-26 17:41:25 -0700417extern struct platform_device *msm_8974_stub_regulator_devices[];
418extern int msm_8974_stub_regulator_devices_len;
Praveen Chidambaram8ea3dcd2011-12-07 14:46:31 -0700419
Steve Mucklef9a87492012-11-02 15:41:00 -0700420extern struct platform_device apq8064_dcvs_device;
Praveen Chidambaram5c8adf22012-02-23 18:44:37 -0700421extern struct platform_device apq8064_msm_gov_device;
Gagan Maccd5b3272012-02-09 18:13:10 -0700422
423extern struct platform_device msm_bus_8930_apps_fabric;
424extern struct platform_device msm_bus_8930_sys_fabric;
425extern struct platform_device msm_bus_8930_mm_fabric;
426extern struct platform_device msm_bus_8930_sys_fpb;
427extern struct platform_device msm_bus_8930_cpss_fpb;
Kevin Chan3be11612012-03-22 20:05:40 -0700428
429extern struct platform_device msm_device_csic0;
430extern struct platform_device msm_device_csic1;
431extern struct platform_device msm_device_vfe;
432extern struct platform_device msm_device_vpe;
Joel King8f839b92012-04-01 14:37:46 -0700433extern struct platform_device mpq8064_device_qup_i2c_gsbi5;
Bar Weinerf82c5872012-10-23 14:31:26 +0200434extern struct platform_device mpq8064_device_qup_spi_gsbi6;
Laura Abbott0577d7b2012-04-17 11:14:30 -0700435
Laura Abbottd92be422012-06-04 15:11:09 -0700436extern struct platform_device msm8660_iommu_domain_device;
Laura Abbott0577d7b2012-04-17 11:14:30 -0700437extern struct platform_device msm8960_iommu_domain_device;
438extern struct platform_device msm8930_iommu_domain_device;
439extern struct platform_device apq8064_iommu_domain_device;
Laura Abbott532b2df2012-04-12 10:53:48 -0700440
441extern struct platform_device msm8960_rtb_device;
442extern struct platform_device msm8930_rtb_device;
443extern struct platform_device apq8064_rtb_device;
Laura Abbott2ae8f362012-04-12 11:03:04 -0700444
445extern struct platform_device msm8960_cache_dump_device;
Laura Abbott93a4a352012-05-25 09:26:35 -0700446extern struct platform_device apq8064_cache_dump_device;
Laura Abbottf3173042012-05-29 15:23:18 -0700447extern struct platform_device msm8930_cache_dump_device;
Hariprasad Dhalinarasimhaf42732a2012-05-21 18:00:49 -0700448
Joel King0cbf5d82012-05-24 15:21:38 -0700449extern struct platform_device mdm_sglte_device;
Ramesh Masavarapuf31ff242012-05-10 18:55:21 -0700450
451extern struct platform_device apq_device_tz_log;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700452
453extern struct platform_device msm7x27_device_acpuclk;
454extern struct platform_device msm7x27a_device_acpuclk;
455extern struct platform_device msm7x27aa_device_acpuclk;
456extern struct platform_device msm7x30_device_acpuclk;
Matt Wagantallf5cc3892012-06-07 19:47:02 -0700457extern struct platform_device apq8064_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700458extern struct platform_device msm8625_device_acpuclk;
Matt Wagantallab730bd2012-06-07 20:13:51 -0700459extern struct platform_device msm8627_device_acpuclk;
Kaushal Kumar86473f02012-06-28 19:35:58 +0530460extern struct platform_device msm8625ab_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700461extern struct platform_device msm8x50_device_acpuclk;
462extern struct platform_device msm8x60_device_acpuclk;
Matt Wagantall6dcfa922012-06-07 20:13:51 -0700463extern struct platform_device msm8930_device_acpuclk;
Tianyi Gou12370f12012-07-23 19:13:57 -0700464extern struct platform_device msm8930aa_device_acpuclk;
Tianyi Gou2520b6e2012-10-29 19:13:53 -0700465extern struct platform_device msm8930ab_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700466extern struct platform_device msm8960_device_acpuclk;
Patrick Daly6578e0c2012-07-19 18:50:02 -0700467extern struct platform_device msm8960ab_device_acpuclk;
Matt Wagantallbf430eb2012-03-22 11:45:49 -0700468extern struct platform_device msm9615_device_acpuclk;
Rohit Vaswanib1cc4932012-07-23 21:30:11 -0700469
Abhijeet Dharmapurikarfb4a2f82012-08-23 14:36:59 -0700470extern struct platform_device apq8064_msm_mpd_device;
471
Rohit Vaswanib1cc4932012-07-23 21:30:11 -0700472extern struct platform_device msm_gpio_device;
Kuirong Wangf8c5e142012-06-21 16:17:32 -0700473
474extern struct platform_device apq_cpudai_mi2s;
475extern struct platform_device apq_cpudai_i2s_rx;
476extern struct platform_device apq_cpudai_i2s_tx;
Srikanth Uyyala7d4f7212012-10-12 17:45:36 +0530477extern struct dev_avtimer_data dev_avtimer_pdata;
Kuirong Wangf8c5e142012-06-21 16:17:32 -0700478