blob: ae4d6325660a4af0747b52ec40629e5e62cddccc [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/* arch/arm/mach-msm/include/mach/board.h
2 *
3 * Copyright (C) 2007 Google, Inc.
Nagamalleswararao Ganji70fac1e2011-12-29 19:06:37 -08004 * Copyright (c) 2008-2012, Code Aurora Forum. All rights reserved.
Russell Kinga09e64f2008-08-05 16:14:15 +01005 * Author: Brian Swetland <swetland@google.com>
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 */
17
18#ifndef __ASM_ARCH_MSM_BOARD_H
19#define __ASM_ARCH_MSM_BOARD_H
20
21#include <linux/types.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070022#include <linux/input.h>
23#include <linux/usb.h>
24#include <linux/leds-pmic8058.h>
25#include <linux/clkdev.h>
Sathish Ambleyc58afc22011-10-09 21:55:39 -070026#include <linux/of_platform.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070027#include <linux/msm_ssbi.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070028#include <mach/msm_bus.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010029
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070030struct msm_camera_io_ext {
31 uint32_t mdcphy;
32 uint32_t mdcsz;
33 uint32_t appphy;
34 uint32_t appsz;
35 uint32_t camifpadphy;
36 uint32_t camifpadsz;
37 uint32_t csiphy;
38 uint32_t csisz;
39 uint32_t csiirq;
40 uint32_t csiphyphy;
41 uint32_t csiphysz;
42 uint32_t csiphyirq;
43 uint32_t ispifphy;
44 uint32_t ispifsz;
45 uint32_t ispifirq;
46};
47
48struct msm_camera_io_clk {
49 uint32_t mclk_clk_rate;
50 uint32_t vfe_clk_rate;
51};
52
Nishant Pandit474f2252011-07-23 23:17:56 +053053struct msm_cam_expander_info {
54 struct i2c_board_info const *board_info;
55 int bus_id;
56};
57
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070058struct msm_camera_device_platform_data {
59 int (*camera_gpio_on) (void);
60 void (*camera_gpio_off)(void);
61 struct msm_camera_io_ext ioext;
62 struct msm_camera_io_clk ioclk;
63 uint8_t csid_core;
Suresh Vankadara8df2c752012-01-18 00:18:03 +053064 uint8_t is_csiphy;
65 uint8_t is_csic;
66 uint8_t is_csid;
67 uint8_t is_ispif;
68 uint8_t is_vpe;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070069 struct msm_bus_scale_pdata *cam_bus_scale_table;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070070};
71enum msm_camera_csi_data_format {
72 CSI_8BIT,
73 CSI_10BIT,
74 CSI_12BIT,
75};
76struct msm_camera_csi_params {
77 enum msm_camera_csi_data_format data_format;
78 uint8_t lane_cnt;
79 uint8_t lane_assign;
80 uint8_t settle_cnt;
81 uint8_t dpcm_scheme;
82};
83
84#ifdef CONFIG_SENSORS_MT9T013
85struct msm_camera_legacy_device_platform_data {
86 int sensor_reset;
87 int sensor_pwd;
88 int vcm_pwd;
89 void (*config_gpio_on) (void);
90 void (*config_gpio_off)(void);
91};
92#endif
93
94#define MSM_CAMERA_FLASH_NONE 0
95#define MSM_CAMERA_FLASH_LED 1
96
97#define MSM_CAMERA_FLASH_SRC_PMIC (0x00000001<<0)
98#define MSM_CAMERA_FLASH_SRC_PWM (0x00000001<<1)
99#define MSM_CAMERA_FLASH_SRC_CURRENT_DRIVER (0x00000001<<2)
Nishant Pandit474f2252011-07-23 23:17:56 +0530100#define MSM_CAMERA_FLASH_SRC_EXT (0x00000001<<3)
Taniya Das7a22cdd2011-09-08 14:57:00 +0530101#define MSM_CAMERA_FLASH_SRC_LED (0x00000001<<3)
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700102
103struct msm_camera_sensor_flash_pmic {
104 uint8_t num_of_src;
105 uint32_t low_current;
106 uint32_t high_current;
107 enum pmic8058_leds led_src_1;
108 enum pmic8058_leds led_src_2;
109 int (*pmic_set_current)(enum pmic8058_leds id, unsigned mA);
110};
111
112struct msm_camera_sensor_flash_pwm {
113 uint32_t freq;
114 uint32_t max_load;
115 uint32_t low_load;
116 uint32_t high_load;
117 uint32_t channel;
118};
119
120struct pmic8058_leds_platform_data;
121struct msm_camera_sensor_flash_current_driver {
122 uint32_t low_current;
123 uint32_t high_current;
124 const struct pmic8058_leds_platform_data *driver_channel;
Nishant Pandit474f2252011-07-23 23:17:56 +0530125};
126
127struct msm_camera_sensor_flash_external {
128 uint32_t led_en;
129 uint32_t led_flash_en;
130 struct msm_cam_expander_info *expander_info;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700131};
132
Taniya Das7a22cdd2011-09-08 14:57:00 +0530133struct msm_camera_sensor_flash_led {
134 const char *led_name;
135 const int led_name_len;
136};
137
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700138struct msm_camera_sensor_flash_src {
139 int flash_sr_type;
140
141 union {
142 struct msm_camera_sensor_flash_pmic pmic_src;
143 struct msm_camera_sensor_flash_pwm pwm_src;
144 struct msm_camera_sensor_flash_current_driver
145 current_driver_src;
Nishant Pandit474f2252011-07-23 23:17:56 +0530146 struct msm_camera_sensor_flash_external
147 ext_driver_src;
Taniya Das7a22cdd2011-09-08 14:57:00 +0530148 struct msm_camera_sensor_flash_led led_src;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700149 } _fsrc;
150};
151
152struct msm_camera_sensor_flash_data {
153 int flash_type;
154 struct msm_camera_sensor_flash_src *flash_src;
155};
156
157struct msm_camera_sensor_strobe_flash_data {
158 uint8_t flash_trigger;
159 uint8_t flash_charge; /* pin for charge */
160 uint8_t flash_charge_done;
161 uint32_t flash_recharge_duration;
162 uint32_t irq;
163 spinlock_t spin_lock;
164 spinlock_t timer_lock;
165 int state;
166};
167
Nishant Pandit24153d82011-08-27 16:05:13 +0530168enum msm_camera_type {
169 BACK_CAMERA_2D,
170 FRONT_CAMERA_2D,
171 BACK_CAMERA_3D,
172 BACK_CAMERA_INT_3D,
173};
174
Kevin Chaneb6b6072012-01-17 11:54:54 -0800175enum camera_vreg_type {
176 REG_LDO,
177 REG_VS,
Kevin Chan8b0d2322011-09-10 21:06:31 -0700178};
179
Kevin Chaneb6b6072012-01-17 11:54:54 -0800180struct camera_vreg_t {
181 char *reg_name;
182 enum camera_vreg_type type;
183 int min_voltage;
184 int max_voltage;
185 int op_mode;
186};
187
188struct msm_gpio_set_tbl {
189 unsigned gpio;
190 unsigned long flags;
191 uint32_t delay;
Nishant Pandit24153d82011-08-27 16:05:13 +0530192};
193
Hody Hung9ba65cf2012-01-17 17:34:51 -0800194struct msm_camera_csi_lane_params {
195 uint8_t csi_lane_assign;
196 uint8_t csi_lane_mask;
197};
198
Nishant Pandit24153d82011-08-27 16:05:13 +0530199struct msm_camera_gpio_conf {
200 void *cam_gpiomux_conf_tbl;
201 uint8_t cam_gpiomux_conf_tbl_size;
Kevin Chaneb6b6072012-01-17 11:54:54 -0800202 struct gpio *cam_gpio_common_tbl;
203 uint8_t cam_gpio_common_tbl_size;
204 struct gpio *cam_gpio_req_tbl;
205 uint8_t cam_gpio_req_tbl_size;
206 struct msm_gpio_set_tbl *cam_gpio_set_tbl;
207 uint8_t cam_gpio_set_tbl_size;
Sandeep Kodimelac6f78672012-03-07 10:44:04 +0530208 uint32_t gpio_no_mux;
209 uint32_t *camera_off_table;
210 uint8_t camera_off_table_size;
211 uint32_t *camera_on_table;
212 uint8_t camera_on_table_size;
Kevin Chaneb6b6072012-01-17 11:54:54 -0800213};
214
Kevin Chanbb8ef862012-02-14 13:03:04 -0800215enum msm_camera_i2c_mux_mode {
216 MODE_R,
217 MODE_L,
218 MODE_DUAL
219};
220
221struct msm_camera_i2c_conf {
222 uint8_t use_i2c_mux;
223 struct platform_device *mux_dev;
224 enum msm_camera_i2c_mux_mode i2c_mux_mode;
225};
226
Kevin Chaneb6b6072012-01-17 11:54:54 -0800227struct msm_camera_sensor_platform_info {
228 int mount_angle;
229 int sensor_reset;
230 struct camera_vreg_t *cam_vreg;
231 int num_vreg;
232 int32_t (*ext_power_ctrl) (int enable);
233 struct msm_camera_gpio_conf *gpio_conf;
Kevin Chanbb8ef862012-02-14 13:03:04 -0800234 struct msm_camera_i2c_conf *i2c_conf;
Hody Hung9ba65cf2012-01-17 17:34:51 -0800235 struct msm_camera_csi_lane_params *csi_lane_params;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700236};
237
Sreesudhan Ramakrish Ramkumara4b5f302011-09-12 16:23:22 -0700238struct msm_actuator_info {
239 struct i2c_board_info const *board_info;
240 int bus_id;
241 int vcm_pwd;
242 int vcm_enable;
243};
244
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700245struct msm_camera_sensor_info {
246 const char *sensor_name;
247 int sensor_reset_enable;
248 int sensor_reset;
249 int sensor_pwd;
250 int vcm_pwd;
251 int vcm_enable;
252 int mclk;
253 int flash_type;
254 struct msm_camera_sensor_platform_info *sensor_platform_info;
255 struct msm_camera_device_platform_data *pdata;
256 struct resource *resource;
257 uint8_t num_resources;
258 struct msm_camera_sensor_flash_data *flash_data;
259 int csi_if;
260 struct msm_camera_csi_params csi_params;
261 struct msm_camera_sensor_strobe_flash_data *strobe_flash_data;
262 char *eeprom_data;
Nishant Pandit24153d82011-08-27 16:05:13 +0530263 enum msm_camera_type camera_type;
Sreesudhan Ramakrish Ramkumara4b5f302011-09-12 16:23:22 -0700264 struct msm_actuator_info *actuator_info;
Su Liuaca04702012-02-14 02:27:32 +0530265 int pmic_gpio_enable;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700266};
267
Kevin Chan09f4e662011-12-16 08:17:02 -0800268struct msm_camera_board_info {
269 struct i2c_board_info *board_info;
270 uint8_t num_i2c_board_info;
271};
272
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700273int msm_get_cam_resources(struct msm_camera_sensor_info *);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700274
Stephen Boydbd323442011-02-23 09:37:42 -0800275struct clk_lookup;
Daniel Walker5e96da52010-05-12 13:43:28 -0700276
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700277struct snd_endpoint {
278 int id;
279 const char *name;
280};
Steve Mucklea55df6e2010-01-07 12:43:24 -0800281
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700282struct msm_snd_endpoints {
283 struct snd_endpoint *endpoints;
284 unsigned num;
285};
286
287#define MSM_MAX_DEC_CNT 14
288/* 7k target ADSP information */
289/* Bit 23:0, for codec identification like mp3, wav etc *
290 * Bit 27:24, for mode identification like tunnel, non tunnel*
291 * bit 31:28, for operation support like DM, DMA */
292enum msm_adspdec_concurrency {
293 MSM_ADSP_CODEC_WAV = 0,
294 MSM_ADSP_CODEC_ADPCM = 1,
295 MSM_ADSP_CODEC_MP3 = 2,
296 MSM_ADSP_CODEC_REALAUDIO = 3,
297 MSM_ADSP_CODEC_WMA = 4,
298 MSM_ADSP_CODEC_AAC = 5,
299 MSM_ADSP_CODEC_RESERVED = 6,
300 MSM_ADSP_CODEC_MIDI = 7,
301 MSM_ADSP_CODEC_YADPCM = 8,
302 MSM_ADSP_CODEC_QCELP = 9,
303 MSM_ADSP_CODEC_AMRNB = 10,
304 MSM_ADSP_CODEC_AMRWB = 11,
305 MSM_ADSP_CODEC_EVRC = 12,
306 MSM_ADSP_CODEC_WMAPRO = 13,
307 MSM_ADSP_MODE_TUNNEL = 24,
308 MSM_ADSP_MODE_NONTUNNEL = 25,
309 MSM_ADSP_MODE_LP = 26,
310 MSM_ADSP_OP_DMA = 28,
311 MSM_ADSP_OP_DM = 29,
312};
313
314struct msm_adspdec_info {
315 const char *module_name;
316 unsigned module_queueid;
317 int module_decid; /* objid */
318 unsigned nr_codec_support;
319};
320
321/* Carries information about number codec
322 * supported if same codec or different codecs
323 */
324struct dec_instance_table {
325 uint8_t max_instances_same_dec;
326 uint8_t max_instances_diff_dec;
327};
328
329struct msm_adspdec_database {
330 unsigned num_dec;
331 unsigned num_concurrency_support;
332 unsigned int *dec_concurrency_table; /* Bit masked entry to *
333 * represents codec, mode etc */
334 struct msm_adspdec_info *dec_info_list;
335 struct dec_instance_table *dec_instance_list;
336};
337
338enum msm_mdp_hw_revision {
339 MDP_REV_20 = 1,
340 MDP_REV_22,
341 MDP_REV_30,
342 MDP_REV_303,
343 MDP_REV_31,
344 MDP_REV_40,
345 MDP_REV_41,
346 MDP_REV_42,
Huaibin Yang4a084e32011-12-15 15:25:52 -0800347 MDP_REV_43,
348 MDP_REV_44,
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700349};
350
351struct msm_panel_common_pdata {
352 uintptr_t hw_revision_addr;
353 int gpio;
354 int (*backlight_level)(int level, int max, int min);
355 int (*pmic_backlight)(int level);
356 int (*panel_num)(void);
357 void (*panel_config_gpio)(int);
358 int (*vga_switch)(int select_vga);
359 int *gpio_num;
360 int mdp_core_clk_rate;
361 unsigned num_mdp_clk;
362 int *mdp_core_clk_table;
363#ifdef CONFIG_MSM_BUS_SCALING
364 struct msm_bus_scale_pdata *mdp_bus_scale_table;
365#endif
366 int mdp_rev;
Nagamalleswararao Ganji937a1192011-12-07 19:00:52 -0800367 u32 ov0_wb_size; /* overlay0 writeback size */
368 u32 ov1_wb_size; /* overlay1 writeback size */
369 u32 mem_hid;
Chandan Uddaraju2679f092012-03-09 15:48:04 -0800370 char cont_splash_enabled;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700371};
372
Huaibin Yanga5419422011-12-08 23:52:10 -0800373
374
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700375struct lcdc_platform_data {
376 int (*lcdc_gpio_config)(int on);
377 int (*lcdc_power_save)(int);
378 unsigned int (*lcdc_get_clk)(void);
379#ifdef CONFIG_MSM_BUS_SCALING
380 struct msm_bus_scale_pdata *bus_scale_table;
381#endif
Huaibin Yang02f981c2012-02-27 16:58:41 -0800382 int (*lvds_pixel_remap)(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700383};
384
385struct tvenc_platform_data {
386 int poll;
387 int (*pm_vid_en)(int on);
388#ifdef CONFIG_MSM_BUS_SCALING
389 struct msm_bus_scale_pdata *bus_scale_table;
390#endif
391};
392
393struct mddi_platform_data {
394 int (*mddi_power_save)(int on);
395 int (*mddi_sel_clk)(u32 *clk_rate);
396 int (*mddi_client_power)(u32 client_id);
397};
398
399struct mipi_dsi_platform_data {
400 int vsync_gpio;
401 int (*dsi_power_save)(int on);
402 int (*dsi_client_reset)(void);
403 int (*get_lane_config)(void);
404 int target_type;
405};
406
Chandan Uddaraju83eac3c2011-09-11 18:32:23 -0700407enum mipi_dsi_3d_ctrl {
408 FPGA_EBI2_INTF,
409 FPGA_SPI_INTF,
410};
411
412/* DSI PHY configuration */
413struct mipi_dsi_phy_ctrl {
414 uint32_t regulator[5];
415 uint32_t timing[12];
416 uint32_t ctrl[4];
417 uint32_t strength[4];
418 uint32_t pll[21];
419};
420
Nagamalleswararao Ganjieac5dfa2011-07-23 17:31:16 -0700421struct mipi_dsi_panel_platform_data {
Chandan Uddaraju83eac3c2011-09-11 18:32:23 -0700422 int fpga_ctrl_mode;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700423 int fpga_3d_config_addr;
Nagamalleswararao Ganjieac5dfa2011-07-23 17:31:16 -0700424 int *gpio;
Chandan Uddaraju83eac3c2011-09-11 18:32:23 -0700425 struct mipi_dsi_phy_ctrl *phy_ctrl_settings;
Ravishangar Kalyanam903f65c2012-01-28 21:36:22 -0800426 char dlane_swap;
Chandan Uddaraju2679f092012-03-09 15:48:04 -0800427 void (*dsi_pwm_cfg)(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700428};
429
Ravishangar Kalyanamc2fee312012-02-09 19:11:22 -0800430struct lvds_panel_platform_data {
431 int *gpio;
432};
433
Ravishangar Kalyanam8c79ead2011-12-02 21:05:01 -0800434#define PANEL_NAME_MAX_LEN 50
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700435struct msm_fb_platform_data {
436 int (*detect_client)(const char *name);
437 int mddi_prescan;
438 int (*allow_set_offset)(void);
Ravishangar Kalyanam8c79ead2011-12-02 21:05:01 -0800439 char prim_panel_name[PANEL_NAME_MAX_LEN];
440 char ext_panel_name[PANEL_NAME_MAX_LEN];
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700441};
442
443struct msm_hdmi_platform_data {
444 int irq;
445 int (*cable_detect)(int insert);
446 int (*comm_power)(int on, int show);
447 int (*enable_5v)(int on);
448 int (*core_power)(int on, int show);
449 int (*cec_power)(int on);
450 int (*init_irq)(void);
451 bool (*check_hdcp_hw_support)(void);
452};
453
454struct msm_i2c_platform_data {
455 int clk_freq;
456 uint32_t rmutex;
457 const char *rsl_id;
458 uint32_t pm_lat;
459 int pri_clk;
460 int pri_dat;
461 int aux_clk;
462 int aux_dat;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700463 int src_clk_rate;
464 int use_gsbi_shared_mode;
465 void (*msm_i2c_config_gpio)(int iface, int config_type);
466};
467
468struct msm_i2c_ssbi_platform_data {
469 const char *rsl_id;
470 enum msm_ssbi_controller_type controller_type;
471};
472
473struct msm_vidc_platform_data {
474 int memtype;
Deepak Koturcb4f6722011-10-31 14:06:57 -0700475 u32 enable_ion;
Deepika Pepakayalabebc7622011-12-01 15:13:43 -0800476 int disable_dmx;
Rajeshwar Kurapatyc155c352011-12-17 06:35:32 +0530477 int disable_fullhd;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700478#ifdef CONFIG_MSM_BUS_SCALING
479 struct msm_bus_scale_pdata *vidc_bus_client_pdata;
480#endif
481};
482
483#if defined(CONFIG_USB_PEHCI_HCD) || defined(CONFIG_USB_PEHCI_HCD_MODULE)
484struct isp1763_platform_data {
485 unsigned reset_gpio;
486 int (*setup_gpio)(int enable);
487};
488#endif
Russell Kinga09e64f2008-08-05 16:14:15 +0100489/* common init routines for use by arch/arm/mach-msm/board-*.c */
490
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700491#ifdef CONFIG_OF_DEVICE
492void msm_copper_init(struct of_dev_auxdata **);
493#endif
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700494void msm_add_devices(void);
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700495void msm_copper_add_devices(void);
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700496void msm_map_common_io(void);
497void msm_map_qsd8x50_io(void);
498void msm_map_msm8x60_io(void);
499void msm_map_msm8960_io(void);
500void msm_map_msm8930_io(void);
501void msm_map_apq8064_io(void);
502void msm_map_msm7x30_io(void);
503void msm_map_fsm9xxx_io(void);
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700504void msm_map_copper_io(void);
Taniya Das43bcdd62011-12-02 17:33:27 +0530505void msm_map_msm8625_io(void);
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700506void msm_init_irq(void);
Sathish Ambleyc58afc22011-10-09 21:55:39 -0700507void msm_copper_init_irq(void);
Taniya Das86e0e132011-10-19 11:32:00 +0530508void vic_handle_irq(struct pt_regs *regs);
Olav Hauganb800c8c2012-01-30 08:50:45 -0800509void msm_copper_reserve(void);
510void msm_copper_very_early(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700511
512struct mmc_platform_data;
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700513int msm_add_sdcc(unsigned int controller,
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700514 struct mmc_platform_data *plat);
515
Murali Nalajala2a0bbda2012-03-28 12:12:54 +0530516void msm_pm_register_irqs(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700517struct msm_usb_host_platform_data;
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700518int msm_add_host(unsigned int host,
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700519 struct msm_usb_host_platform_data *plat);
520#if defined(CONFIG_USB_FUNCTION_MSM_HSUSB) \
521 || defined(CONFIG_USB_MSM_72K) || defined(CONFIG_USB_MSM_72K_MODULE)
522void msm_hsusb_set_vbus_state(int online);
523#else
524static inline void msm_hsusb_set_vbus_state(int online) {}
525#endif
526
Stepan Moskovchenkob3e63862011-10-20 18:36:55 -0700527void msm_snddev_init(void);
528void msm_snddev_init_timpani(void);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700529void msm_snddev_poweramp_on(void);
530void msm_snddev_poweramp_off(void);
531void msm_snddev_hsed_voltage_on(void);
532void msm_snddev_hsed_voltage_off(void);
533void msm_snddev_tx_route_config(void);
534void msm_snddev_tx_route_deconfig(void);
535
536extern unsigned int msm_shared_ram_phys; /* defined in arch/arm/mach-msm/io.c */
537
Russell Kinga09e64f2008-08-05 16:14:15 +0100538
539#endif