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; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 54 | extern struct platform_device msm8960_device_ssbi_pm8921; |
| 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; |
| 61 | |
Stepan Moskovchenko | 2701a44 | 2011-08-19 13:47:22 -0700 | [diff] [blame] | 62 | extern struct platform_device apq8064_device_uart_gsbi1; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 63 | extern struct platform_device apq8064_device_uart_gsbi3; |
Kenneth Heitke | 748593a | 2011-07-15 15:45:11 -0600 | [diff] [blame] | 64 | extern struct platform_device apq8064_device_qup_i2c_gsbi4; |
Harini Jayaraman | c4c5869 | 2011-07-19 14:50:10 -0600 | [diff] [blame] | 65 | extern struct platform_device apq8064_device_qup_spi_gsbi5; |
Sagar Dharia | 8bdcdaf | 2011-09-16 16:01:15 -0600 | [diff] [blame] | 66 | extern struct platform_device apq8064_slim_ctrl; |
Kenneth Heitke | 36920d3 | 2011-07-20 16:44:30 -0600 | [diff] [blame] | 67 | extern struct platform_device apq8064_device_ssbi_pmic1; |
| 68 | extern struct platform_device apq8064_device_ssbi_pmic2; |
Stepan Moskovchenko | d056fca | 2011-01-27 12:12:07 -0800 | [diff] [blame] | 69 | |
Rohit Vaswani | 0966687 | 2011-08-23 17:41:54 -0700 | [diff] [blame] | 70 | extern struct platform_device msm9615_device_uart_gsbi4; |
Harini Jayaraman | eba5267 | 2011-09-08 15:13:00 -0600 | [diff] [blame] | 71 | extern struct platform_device msm9615_device_qup_i2c_gsbi5; |
Harini Jayaraman | 738c931 | 2011-09-08 15:22:38 -0600 | [diff] [blame] | 72 | extern struct platform_device msm9615_device_qup_spi_gsbi3; |
Kenneth Heitke | af3d3cf | 2011-09-08 11:45:31 -0700 | [diff] [blame] | 73 | extern struct platform_device msm9615_device_ssbi_pmic1; |
Siddartha Mohanadoss | 5d49cec | 2011-09-21 10:26:15 -0700 | [diff] [blame^] | 74 | extern struct platform_device msm9615_device_tsens; |
Rohit Vaswani | 0966687 | 2011-08-23 17:41:54 -0700 | [diff] [blame] | 75 | |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 76 | extern struct platform_device msm_device_sdc1; |
| 77 | extern struct platform_device msm_device_sdc2; |
| 78 | extern struct platform_device msm_device_sdc3; |
| 79 | extern struct platform_device msm_device_sdc4; |
| 80 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 81 | extern struct platform_device msm_device_gadget_peripheral; |
Pavankumar Kondeti | 7032d51 | 2010-12-08 13:37:07 +0530 | [diff] [blame] | 82 | extern struct platform_device msm_device_hsusb_host; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 83 | extern struct platform_device msm_device_hsusb_host2; |
| 84 | |
| 85 | extern struct platform_device msm_device_otg; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 86 | |
Stepan Moskovchenko | 14aa649 | 2011-08-08 15:15:01 -0700 | [diff] [blame] | 87 | extern struct platform_device msm8960_device_otg; |
| 88 | extern struct platform_device msm8960_device_gadget_peripheral; |
| 89 | |
| 90 | extern struct platform_device apq8064_device_otg; |
| 91 | extern struct platform_device apq8064_usb_diag_device; |
| 92 | extern struct platform_device apq8064_device_gadget_peripheral; |
| 93 | |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 94 | extern struct platform_device msm_device_i2c; |
| 95 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 96 | extern struct platform_device msm_device_i2c_2; |
| 97 | |
| 98 | extern struct platform_device qup_device_i2c; |
| 99 | |
| 100 | extern struct platform_device msm_gsbi0_qup_i2c_device; |
| 101 | extern struct platform_device msm_gsbi1_qup_i2c_device; |
| 102 | extern struct platform_device msm_gsbi3_qup_i2c_device; |
| 103 | extern struct platform_device msm_gsbi4_qup_i2c_device; |
| 104 | extern struct platform_device msm_gsbi7_qup_i2c_device; |
| 105 | extern struct platform_device msm_gsbi8_qup_i2c_device; |
| 106 | extern struct platform_device msm_gsbi9_qup_i2c_device; |
| 107 | extern struct platform_device msm_gsbi12_qup_i2c_device; |
| 108 | |
| 109 | extern struct platform_device msm_slim_ctrl; |
| 110 | extern struct platform_device msm_device_sps; |
Yan He | 06913ce | 2011-08-26 16:33:46 -0700 | [diff] [blame] | 111 | extern struct platform_device msm_device_sps_apq8064; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 112 | extern struct platform_device msm_device_bam_dmux; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 113 | extern struct platform_device msm_device_smd; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 114 | extern struct platform_device msm_device_dmov; |
Stepan Moskovchenko | df13d34 | 2011-08-03 19:01:25 -0700 | [diff] [blame] | 115 | extern struct platform_device msm8960_device_dmov; |
| 116 | extern struct platform_device apq8064_device_dmov; |
Jeff Ohlstein | d19bf44 | 2011-09-09 12:48:18 -0700 | [diff] [blame] | 117 | extern struct platform_device msm9615_device_dmov; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 118 | extern struct platform_device msm_device_dmov_adm0; |
| 119 | extern struct platform_device msm_device_dmov_adm1; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 120 | |
| 121 | extern struct platform_device msm_device_nand; |
| 122 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 123 | extern struct platform_device msm_device_tssc; |
| 124 | |
| 125 | extern struct platform_device msm_rotator_device; |
| 126 | |
| 127 | extern struct platform_device msm_device_tsif[2]; |
| 128 | |
| 129 | extern struct platform_device msm_device_ssbi1; |
| 130 | extern struct platform_device msm_device_ssbi2; |
| 131 | extern struct platform_device msm_device_ssbi3; |
| 132 | extern struct platform_device msm_device_ssbi6; |
| 133 | extern struct platform_device msm_device_ssbi7; |
| 134 | |
| 135 | extern struct platform_device msm_gsbi1_qup_spi_device; |
| 136 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 137 | extern struct platform_device msm_device_vidc_720p; |
| 138 | |
| 139 | extern struct platform_device msm_pcm; |
| 140 | extern struct platform_device msm_pcm_routing; |
| 141 | extern struct platform_device msm_cpudai0; |
| 142 | extern struct platform_device msm_cpudai1; |
| 143 | extern struct platform_device msm_cpudai_hdmi_rx; |
| 144 | extern struct platform_device msm_cpudai_bt_rx; |
| 145 | extern struct platform_device msm_cpudai_bt_tx; |
| 146 | extern struct platform_device msm_cpudai_fm_rx; |
| 147 | extern struct platform_device msm_cpudai_fm_tx; |
Bhalchandra Gajare | 0e795c4 | 2011-08-15 18:10:30 -0700 | [diff] [blame] | 148 | extern struct platform_device msm_cpudai_auxpcm_rx; |
| 149 | extern struct platform_device msm_cpudai_auxpcm_tx; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 150 | extern struct platform_device msm_cpu_fe; |
| 151 | extern struct platform_device msm_stub_codec; |
| 152 | extern struct platform_device msm_voice; |
| 153 | extern struct platform_device msm_voip; |
| 154 | extern struct platform_device msm_lpa_pcm; |
| 155 | extern struct platform_device msm_pcm_hostless; |
Laxminath Kasam | cee1d60 | 2011-08-01 19:26:57 +0530 | [diff] [blame] | 156 | extern struct platform_device msm_cpudai_afe_01_rx; |
| 157 | extern struct platform_device msm_cpudai_afe_01_tx; |
| 158 | extern struct platform_device msm_cpudai_afe_02_rx; |
| 159 | extern struct platform_device msm_cpudai_afe_02_tx; |
| 160 | extern struct platform_device msm_pcm_afe; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 161 | |
| 162 | extern struct platform_device *msm_footswitch_devices[]; |
| 163 | extern unsigned msm_num_footswitch_devices; |
| 164 | |
| 165 | extern struct platform_device fsm_qfp_fuse_device; |
| 166 | |
Rohit Vaswani | 4c0d304 | 2011-07-13 14:19:23 -0700 | [diff] [blame] | 167 | extern struct platform_device fsm_xo_device; |
| 168 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 169 | extern struct platform_device qfec_device; |
Daniel Walker | 50bc0ef | 2010-12-13 14:35:11 -0800 | [diff] [blame] | 170 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 171 | extern struct platform_device msm_kgsl_3d0; |
| 172 | extern struct platform_device msm_kgsl_2d0; |
| 173 | extern struct platform_device msm_kgsl_2d1; |
| 174 | |
| 175 | extern struct platform_device msm_mipi_dsi1_device; |
| 176 | |
| 177 | extern struct clk_lookup msm_clocks_fsm9xxx[]; |
| 178 | extern unsigned msm_num_clocks_fsm9xxx; |
| 179 | |
| 180 | extern struct platform_device msm_footswitch; |
| 181 | |
| 182 | void __init msm_fb_register_device(char *name, void *data); |
| 183 | void __init msm_camera_register_device(void *, uint32_t, void *); |
| 184 | struct platform_device *msm_add_gsbi9_uart(void); |
| 185 | extern struct platform_device msm_device_touchscreen; |
| 186 | |
| 187 | extern struct pil_device peripheral_dsps; |
| 188 | extern struct platform_device led_pdev; |
Laura Abbott | a2e9363 | 2011-08-19 13:36:32 -0700 | [diff] [blame] | 189 | |
| 190 | extern struct platform_device ion_dev; |
Brian Swetland | bcc0f6a | 2008-09-10 14:00:53 -0700 | [diff] [blame] | 191 | #endif |