blob: be96e13d0f5f656addfac1f671449650a2990297 [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.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07004 * Copyright (c) 2009-2011, Code Aurora Forum. 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);
28
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070029extern struct platform_device asoc_msm_pcm;
30extern struct platform_device asoc_msm_dai0;
31extern struct platform_device asoc_msm_dai1;
32#if defined (CONFIG_SND_MSM_MVS_DAI_SOC)
33extern struct platform_device asoc_msm_mvs;
34extern struct platform_device asoc_mvs_dai0;
35extern struct platform_device asoc_mvs_dai1;
36#endif
37
38extern struct platform_device msm_ebi0_thermal;
39extern struct platform_device msm_ebi1_thermal;
Daniel Walker5e96da52010-05-12 13:43:28 -070040
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -070041extern struct platform_device msm_device_uart1;
42extern struct platform_device msm_device_uart2;
43extern struct platform_device msm_device_uart3;
44
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070045extern struct platform_device msm_device_uart_dm1;
46extern struct platform_device msm_device_uart_dm2;
47extern struct platform_device msm_device_uart_dm3;
48extern struct platform_device msm_device_uart_dm12;
49extern struct platform_device *msm_device_uart_gsbi9;
Mayank Rana9f51f582011-08-04 18:35:59 +053050extern struct platform_device msm_device_uart_dm6;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070051
Stepan Moskovchenkod056fca2011-01-27 12:12:07 -080052extern struct platform_device msm8960_device_uart_gsbi2;
53extern struct platform_device msm8960_device_uart_gsbi5;
Jay Chokshi33c044a2011-12-07 13:05:40 -080054extern struct platform_device msm8960_device_ssbi_pmic;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070055extern struct platform_device msm8960_device_qup_i2c_gsbi3;
56extern struct platform_device msm8960_device_qup_i2c_gsbi4;
57extern struct platform_device msm8960_device_qup_i2c_gsbi10;
58extern struct platform_device msm8960_device_qup_i2c_gsbi12;
59extern struct platform_device msm8960_device_qup_spi_gsbi1;
60extern struct platform_device msm8960_gemini_device;
Kevin Chanf6216f22011-10-25 18:40:11 -070061extern struct platform_device msm8960_device_csiphy0;
62extern struct platform_device msm8960_device_csiphy1;
Kevin Chanc8b52e82011-10-25 23:20:21 -070063extern struct platform_device msm8960_device_csid0;
64extern struct platform_device msm8960_device_csid1;
Kevin Chane12c6672011-10-26 11:55:26 -070065extern struct platform_device msm8960_device_ispif;
Kevin Chan5827c552011-10-28 18:36:32 -070066extern struct platform_device msm8960_device_vfe;
Kevin Chana0853122011-11-07 19:48:44 -080067extern struct platform_device msm8960_device_vpe;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070068
Stepan Moskovchenko2701a442011-08-19 13:47:22 -070069extern struct platform_device apq8064_device_uart_gsbi1;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070070extern struct platform_device apq8064_device_uart_gsbi3;
Kenneth Heitke748593a2011-07-15 15:45:11 -060071extern struct platform_device apq8064_device_qup_i2c_gsbi4;
Harini Jayaramanc4c58692011-07-19 14:50:10 -060072extern struct platform_device apq8064_device_qup_spi_gsbi5;
Sagar Dharia8bdcdaf2011-09-16 16:01:15 -060073extern struct platform_device apq8064_slim_ctrl;
Kenneth Heitke36920d32011-07-20 16:44:30 -060074extern struct platform_device apq8064_device_ssbi_pmic1;
75extern struct platform_device apq8064_device_ssbi_pmic2;
Stepan Moskovchenkod056fca2011-01-27 12:12:07 -080076
Rohit Vaswani09666872011-08-23 17:41:54 -070077extern struct platform_device msm9615_device_uart_gsbi4;
Harini Jayaramaneba52672011-09-08 15:13:00 -060078extern struct platform_device msm9615_device_qup_i2c_gsbi5;
Harini Jayaraman738c9312011-09-08 15:22:38 -060079extern struct platform_device msm9615_device_qup_spi_gsbi3;
Kenneth Heitkeaf3d3cf2011-09-08 11:45:31 -070080extern struct platform_device msm9615_device_ssbi_pmic1;
Siddartha Mohanadoss5d49cec2011-09-21 10:26:15 -070081extern struct platform_device msm9615_device_tsens;
Gagan Mac7a827642011-09-22 19:42:21 -060082extern struct platform_device msm_bus_9615_sys_fabric;
83extern struct platform_device msm_bus_def_fab;
Rohit Vaswani09666872011-08-23 17:41:54 -070084
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -070085extern struct platform_device msm_device_sdc1;
86extern struct platform_device msm_device_sdc2;
87extern struct platform_device msm_device_sdc3;
88extern struct platform_device msm_device_sdc4;
89
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070090extern struct platform_device msm_device_gadget_peripheral;
Pavankumar Kondeti7032d512010-12-08 13:37:07 +053091extern struct platform_device msm_device_hsusb_host;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070092extern struct platform_device msm_device_hsusb_host2;
Vijayavardhan Vennapusaeb566482011-09-18 07:48:37 +053093extern struct platform_device msm_device_hsic_host;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070094
95extern struct platform_device msm_device_otg;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -070096
Stepan Moskovchenko14aa6492011-08-08 15:15:01 -070097extern struct platform_device msm8960_device_otg;
98extern struct platform_device msm8960_device_gadget_peripheral;
99
100extern struct platform_device apq8064_device_otg;
101extern struct platform_device apq8064_usb_diag_device;
102extern struct platform_device apq8064_device_gadget_peripheral;
103
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700104extern struct platform_device msm_device_i2c;
105
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700106extern struct platform_device msm_device_i2c_2;
107
108extern struct platform_device qup_device_i2c;
109
110extern struct platform_device msm_gsbi0_qup_i2c_device;
111extern struct platform_device msm_gsbi1_qup_i2c_device;
112extern struct platform_device msm_gsbi3_qup_i2c_device;
113extern struct platform_device msm_gsbi4_qup_i2c_device;
114extern struct platform_device msm_gsbi7_qup_i2c_device;
115extern struct platform_device msm_gsbi8_qup_i2c_device;
116extern struct platform_device msm_gsbi9_qup_i2c_device;
117extern struct platform_device msm_gsbi12_qup_i2c_device;
118
119extern struct platform_device msm_slim_ctrl;
120extern struct platform_device msm_device_sps;
Ofir Cohen40a4e862011-12-08 15:17:52 +0200121extern struct platform_device msm_device_usb_bam;
Yan He06913ce2011-08-26 16:33:46 -0700122extern struct platform_device msm_device_sps_apq8064;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700123extern struct platform_device msm_device_bam_dmux;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700124extern struct platform_device msm_device_smd;
Jeff Hugo0c0f5e92011-09-28 13:55:45 -0600125extern struct platform_device msm_device_smd_apq8064;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700126extern struct platform_device msm_device_dmov;
Stepan Moskovchenkodf13d342011-08-03 19:01:25 -0700127extern struct platform_device msm8960_device_dmov;
128extern struct platform_device apq8064_device_dmov;
Jeff Ohlsteind19bf442011-09-09 12:48:18 -0700129extern struct platform_device msm9615_device_dmov;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700130extern struct platform_device msm_device_dmov_adm0;
131extern struct platform_device msm_device_dmov_adm1;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700132
133extern struct platform_device msm_device_nand;
134
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700135extern struct platform_device msm_device_tssc;
136
137extern struct platform_device msm_rotator_device;
138
139extern struct platform_device msm_device_tsif[2];
140
Anirudh Ghayal9d9cdc22011-10-10 17:17:07 +0530141extern struct platform_device msm_device_ssbi_pmic1;
Anirudh Ghayalc49157f2011-11-09 14:49:59 +0530142extern struct platform_device msm_device_ssbi_pmic2;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700143extern struct platform_device msm_device_ssbi1;
144extern struct platform_device msm_device_ssbi2;
145extern struct platform_device msm_device_ssbi3;
146extern struct platform_device msm_device_ssbi6;
147extern struct platform_device msm_device_ssbi7;
148
149extern struct platform_device msm_gsbi1_qup_spi_device;
150
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700151extern struct platform_device msm_device_vidc_720p;
152
153extern struct platform_device msm_pcm;
154extern struct platform_device msm_pcm_routing;
155extern struct platform_device msm_cpudai0;
156extern struct platform_device msm_cpudai1;
157extern struct platform_device msm_cpudai_hdmi_rx;
158extern struct platform_device msm_cpudai_bt_rx;
159extern struct platform_device msm_cpudai_bt_tx;
160extern struct platform_device msm_cpudai_fm_rx;
161extern struct platform_device msm_cpudai_fm_tx;
Bhalchandra Gajare0e795c42011-08-15 18:10:30 -0700162extern struct platform_device msm_cpudai_auxpcm_rx;
163extern struct platform_device msm_cpudai_auxpcm_tx;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700164extern struct platform_device msm_cpu_fe;
165extern struct platform_device msm_stub_codec;
166extern struct platform_device msm_voice;
167extern struct platform_device msm_voip;
168extern struct platform_device msm_lpa_pcm;
169extern struct platform_device msm_pcm_hostless;
Laxminath Kasamcee1d602011-08-01 19:26:57 +0530170extern struct platform_device msm_cpudai_afe_01_rx;
171extern struct platform_device msm_cpudai_afe_01_tx;
172extern struct platform_device msm_cpudai_afe_02_rx;
173extern struct platform_device msm_cpudai_afe_02_tx;
174extern struct platform_device msm_pcm_afe;
Asish Bhattacharya96bb6f42011-11-01 20:36:09 +0530175extern struct platform_device msm_compr_dsp;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700176
Stephen Boyd3acc9e42011-09-28 16:46:40 -0700177extern struct platform_device msm_pil_q6v3;
Stephen Boydeb819882011-08-29 14:46:30 -0700178extern struct platform_device msm_8960_q6_lpass;
179extern struct platform_device msm_8960_q6_mss_fw;
180extern struct platform_device msm_8960_q6_mss_sw;
Stephen Boyd322a9922011-09-20 01:05:54 -0700181extern struct platform_device msm_8960_riva;
Stephen Boydeb819882011-08-29 14:46:30 -0700182
Bharath Ramachandramurthyb8e797f2011-11-30 12:08:42 -0800183extern struct platform_device apq_pcm;
184extern struct platform_device apq_pcm_routing;
185extern struct platform_device apq_cpudai0;
186extern struct platform_device apq_cpudai1;
187extern struct platform_device apq_cpudai_hdmi_rx;
188extern struct platform_device apq_cpudai_bt_rx;
189extern struct platform_device apq_cpudai_bt_tx;
190extern struct platform_device apq_cpudai_fm_rx;
191extern struct platform_device apq_cpudai_fm_tx;
192extern struct platform_device apq_cpudai_auxpcm_rx;
193extern struct platform_device apq_cpudai_auxpcm_tx;
194extern struct platform_device apq_cpu_fe;
195extern struct platform_device apq_stub_codec;
196extern struct platform_device apq_voice;
197extern struct platform_device apq_voip;
198extern struct platform_device apq_lpa_pcm;
199extern struct platform_device apq_pcm_hostless;
200extern struct platform_device apq_cpudai_afe_01_rx;
201extern struct platform_device apq_cpudai_afe_01_tx;
202extern struct platform_device apq_cpudai_afe_02_rx;
203extern struct platform_device apq_cpudai_afe_02_tx;
204extern struct platform_device apq_pcm_afe;
205
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700206extern struct platform_device *msm_footswitch_devices[];
207extern unsigned msm_num_footswitch_devices;
208
209extern struct platform_device fsm_qfp_fuse_device;
210
Rohit Vaswani4c0d3042011-07-13 14:19:23 -0700211extern struct platform_device fsm_xo_device;
212
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700213extern struct platform_device qfec_device;
Daniel Walker50bc0ef2010-12-13 14:35:11 -0800214
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700215extern struct platform_device msm_kgsl_3d0;
216extern struct platform_device msm_kgsl_2d0;
217extern struct platform_device msm_kgsl_2d1;
218
219extern struct platform_device msm_mipi_dsi1_device;
220
221extern struct clk_lookup msm_clocks_fsm9xxx[];
222extern unsigned msm_num_clocks_fsm9xxx;
223
224extern struct platform_device msm_footswitch;
225
226void __init msm_fb_register_device(char *name, void *data);
227void __init msm_camera_register_device(void *, uint32_t, void *);
228struct platform_device *msm_add_gsbi9_uart(void);
229extern struct platform_device msm_device_touchscreen;
230
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700231extern struct platform_device led_pdev;
Laura Abbotta2e93632011-08-19 13:36:32 -0700232
Maheshkumar Sivasubramanian9c8cdc92011-09-12 14:11:30 -0600233extern struct platform_device msm_rpm_device;
Praveen Chidambaram7a712232011-10-28 13:39:45 -0600234extern struct platform_device msm_rpm_stat_device;
Ramesh Masavarapu5ad37392011-10-10 10:44:10 -0700235extern struct platform_device msm_device_rng;
Ramesh Masavarapuf46be1b2011-11-03 11:13:41 -0700236extern struct platform_device apq8064_device_rng;
Ramesh Masavarapuaa28b5b2011-10-21 10:26:03 -0700237
238#if defined(CONFIG_CRYPTO_DEV_QCRYPTO) || \
239 defined(CONFIG_CRYPTO_DEV_QCRYPTO_MODULE)
240extern struct platform_device msm9615_qcrypto_device;
241#endif
242
243#if defined(CONFIG_CRYPTO_DEV_QCEDEV) || \
244 defined(CONFIG_CRYPTO_DEV_QCEDEV_MODULE)
245extern struct platform_device msm9615_qcedev_device;
246#endif
Jeff Ohlstein7e668552011-10-06 16:17:25 -0700247extern struct platform_device msm8960_device_watchdog;
248extern struct platform_device msm8660_device_watchdog;
249extern struct platform_device msm8064_device_watchdog;
250extern struct platform_device msm9615_device_watchdog;
Pratik Patelfd6f56a2011-10-10 17:47:55 -0700251
252extern struct platform_device msm_etb_device;
253extern struct platform_device msm_tpiu_device;
254extern struct platform_device msm_funnel_device;
255extern struct platform_device msm_debug_device;
256extern struct platform_device msm_ptm_device;
Brian Swetlandbcc0f6a2008-09-10 14:00:53 -0700257#endif