Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* arch/arm/mach-msm/include/mach/board.h |
| 2 | * |
| 3 | * Copyright (C) 2007 Google, Inc. |
Shuzhen Wang | b4f4c92 | 2013-01-08 14:32:08 -0800 | [diff] [blame] | 4 | * Copyright (c) 2008-2013, The Linux Foundation. All rights reserved. |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 5 | * 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 Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 22 | #include <linux/input.h> |
| 23 | #include <linux/usb.h> |
| 24 | #include <linux/leds-pmic8058.h> |
| 25 | #include <linux/clkdev.h> |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 26 | #include <linux/of_platform.h> |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 27 | #include <linux/msm_ssbi.h> |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 28 | #include <mach/msm_bus.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 29 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 30 | struct 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 | |
| 48 | struct msm_camera_io_clk { |
| 49 | uint32_t mclk_clk_rate; |
| 50 | uint32_t vfe_clk_rate; |
| 51 | }; |
| 52 | |
Nishant Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 53 | struct msm_cam_expander_info { |
| 54 | struct i2c_board_info const *board_info; |
| 55 | int bus_id; |
| 56 | }; |
| 57 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 58 | struct 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 Vankadara | 8df2c75 | 2012-01-18 00:18:03 +0530 | [diff] [blame] | 64 | uint8_t is_vpe; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 65 | struct msm_bus_scale_pdata *cam_bus_scale_table; |
Sreesudhan Ramakrish Ramkumar | 5ad18cd | 2012-09-07 23:22:34 -0700 | [diff] [blame] | 66 | uint8_t csiphy_core; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 67 | }; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 68 | |
| 69 | #ifdef CONFIG_SENSORS_MT9T013 |
| 70 | struct msm_camera_legacy_device_platform_data { |
| 71 | int sensor_reset; |
| 72 | int sensor_pwd; |
| 73 | int vcm_pwd; |
| 74 | void (*config_gpio_on) (void); |
| 75 | void (*config_gpio_off)(void); |
| 76 | }; |
| 77 | #endif |
| 78 | |
| 79 | #define MSM_CAMERA_FLASH_NONE 0 |
| 80 | #define MSM_CAMERA_FLASH_LED 1 |
| 81 | |
| 82 | #define MSM_CAMERA_FLASH_SRC_PMIC (0x00000001<<0) |
| 83 | #define MSM_CAMERA_FLASH_SRC_PWM (0x00000001<<1) |
| 84 | #define MSM_CAMERA_FLASH_SRC_CURRENT_DRIVER (0x00000001<<2) |
Nishant Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 85 | #define MSM_CAMERA_FLASH_SRC_EXT (0x00000001<<3) |
Taniya Das | 7a22cdd | 2011-09-08 14:57:00 +0530 | [diff] [blame] | 86 | #define MSM_CAMERA_FLASH_SRC_LED (0x00000001<<3) |
Raju P.L.S.S.S.N | bf3faff | 2012-04-05 14:33:36 +0530 | [diff] [blame] | 87 | #define MSM_CAMERA_FLASH_SRC_LED1 (0x00000001<<4) |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 88 | |
| 89 | struct msm_camera_sensor_flash_pmic { |
| 90 | uint8_t num_of_src; |
| 91 | uint32_t low_current; |
| 92 | uint32_t high_current; |
| 93 | enum pmic8058_leds led_src_1; |
| 94 | enum pmic8058_leds led_src_2; |
| 95 | int (*pmic_set_current)(enum pmic8058_leds id, unsigned mA); |
| 96 | }; |
| 97 | |
| 98 | struct msm_camera_sensor_flash_pwm { |
| 99 | uint32_t freq; |
| 100 | uint32_t max_load; |
| 101 | uint32_t low_load; |
| 102 | uint32_t high_load; |
| 103 | uint32_t channel; |
| 104 | }; |
| 105 | |
| 106 | struct pmic8058_leds_platform_data; |
| 107 | struct msm_camera_sensor_flash_current_driver { |
| 108 | uint32_t low_current; |
| 109 | uint32_t high_current; |
| 110 | const struct pmic8058_leds_platform_data *driver_channel; |
Nishant Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 111 | }; |
| 112 | |
Jeyaprakash Soundrapandian | 85099fe | 2012-05-15 17:09:51 -0700 | [diff] [blame] | 113 | enum msm_camera_ext_led_flash_id { |
| 114 | MAM_CAMERA_EXT_LED_FLASH_SC628A, |
| 115 | MAM_CAMERA_EXT_LED_FLASH_TPS61310, |
| 116 | }; |
| 117 | |
Nishant Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 118 | struct msm_camera_sensor_flash_external { |
| 119 | uint32_t led_en; |
| 120 | uint32_t led_flash_en; |
Jeyaprakash Soundrapandian | 85099fe | 2012-05-15 17:09:51 -0700 | [diff] [blame] | 121 | enum msm_camera_ext_led_flash_id flash_id; |
Nishant Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 122 | struct msm_cam_expander_info *expander_info; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 123 | }; |
| 124 | |
Taniya Das | 7a22cdd | 2011-09-08 14:57:00 +0530 | [diff] [blame] | 125 | struct msm_camera_sensor_flash_led { |
| 126 | const char *led_name; |
| 127 | const int led_name_len; |
| 128 | }; |
| 129 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 130 | struct msm_camera_sensor_flash_src { |
| 131 | int flash_sr_type; |
Sreesudhan Ramakrish Ramkumar | 7f723dc | 2012-10-12 22:58:13 -0700 | [diff] [blame] | 132 | struct gpio *init_gpio_tbl; |
| 133 | uint8_t init_gpio_tbl_size; |
| 134 | struct msm_gpio_set_tbl *set_gpio_tbl; |
| 135 | uint8_t set_gpio_tbl_size; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 136 | |
| 137 | union { |
| 138 | struct msm_camera_sensor_flash_pmic pmic_src; |
| 139 | struct msm_camera_sensor_flash_pwm pwm_src; |
| 140 | struct msm_camera_sensor_flash_current_driver |
| 141 | current_driver_src; |
Nishant Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 142 | struct msm_camera_sensor_flash_external |
| 143 | ext_driver_src; |
Taniya Das | 7a22cdd | 2011-09-08 14:57:00 +0530 | [diff] [blame] | 144 | struct msm_camera_sensor_flash_led led_src; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 145 | } _fsrc; |
| 146 | }; |
| 147 | |
| 148 | struct msm_camera_sensor_flash_data { |
| 149 | int flash_type; |
| 150 | struct msm_camera_sensor_flash_src *flash_src; |
Sreesudhan Ramakrish Ramkumar | 7f723dc | 2012-10-12 22:58:13 -0700 | [diff] [blame] | 151 | struct i2c_board_info const *board_info; |
| 152 | int bus_id; |
| 153 | uint8_t flash_src_index; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 154 | }; |
| 155 | |
| 156 | struct msm_camera_sensor_strobe_flash_data { |
| 157 | uint8_t flash_trigger; |
| 158 | uint8_t flash_charge; /* pin for charge */ |
| 159 | uint8_t flash_charge_done; |
| 160 | uint32_t flash_recharge_duration; |
| 161 | uint32_t irq; |
| 162 | spinlock_t spin_lock; |
| 163 | spinlock_t timer_lock; |
| 164 | int state; |
| 165 | }; |
| 166 | |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 167 | enum msm_camera_type { |
| 168 | BACK_CAMERA_2D, |
| 169 | FRONT_CAMERA_2D, |
| 170 | BACK_CAMERA_3D, |
| 171 | BACK_CAMERA_INT_3D, |
| 172 | }; |
| 173 | |
Raju P.L.S.S.S.N | 3f4b302 | 2012-03-29 10:09:01 +0530 | [diff] [blame] | 174 | enum msm_sensor_type { |
| 175 | BAYER_SENSOR, |
| 176 | YUV_SENSOR, |
| 177 | }; |
| 178 | |
Kevin Chan | eb6b607 | 2012-01-17 11:54:54 -0800 | [diff] [blame] | 179 | struct msm_gpio_set_tbl { |
| 180 | unsigned gpio; |
| 181 | unsigned long flags; |
| 182 | uint32_t delay; |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 183 | }; |
| 184 | |
Shuzhen Wang | b4f4c92 | 2013-01-08 14:32:08 -0800 | [diff] [blame] | 185 | struct msm_camera_gpio_num_info { |
feim | 1b0083f | 2013-06-05 09:09:44 +0800 | [diff] [blame^] | 186 | uint16_t gpio_num[7]; |
Hody Hung | 9ba65cf | 2012-01-17 17:34:51 -0800 | [diff] [blame] | 187 | }; |
| 188 | |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 189 | struct msm_camera_gpio_conf { |
| 190 | void *cam_gpiomux_conf_tbl; |
| 191 | uint8_t cam_gpiomux_conf_tbl_size; |
Kevin Chan | eb6b607 | 2012-01-17 11:54:54 -0800 | [diff] [blame] | 192 | struct gpio *cam_gpio_common_tbl; |
| 193 | uint8_t cam_gpio_common_tbl_size; |
| 194 | struct gpio *cam_gpio_req_tbl; |
| 195 | uint8_t cam_gpio_req_tbl_size; |
| 196 | struct msm_gpio_set_tbl *cam_gpio_set_tbl; |
| 197 | uint8_t cam_gpio_set_tbl_size; |
Sandeep Kodimela | c6f7867 | 2012-03-07 10:44:04 +0530 | [diff] [blame] | 198 | uint32_t gpio_no_mux; |
| 199 | uint32_t *camera_off_table; |
| 200 | uint8_t camera_off_table_size; |
| 201 | uint32_t *camera_on_table; |
| 202 | uint8_t camera_on_table_size; |
Shuzhen Wang | b4f4c92 | 2013-01-08 14:32:08 -0800 | [diff] [blame] | 203 | struct msm_camera_gpio_num_info *gpio_num_info; |
Kevin Chan | eb6b607 | 2012-01-17 11:54:54 -0800 | [diff] [blame] | 204 | }; |
| 205 | |
Kevin Chan | bb8ef86 | 2012-02-14 13:03:04 -0800 | [diff] [blame] | 206 | enum msm_camera_i2c_mux_mode { |
| 207 | MODE_R, |
| 208 | MODE_L, |
| 209 | MODE_DUAL |
| 210 | }; |
| 211 | |
| 212 | struct msm_camera_i2c_conf { |
| 213 | uint8_t use_i2c_mux; |
| 214 | struct platform_device *mux_dev; |
| 215 | enum msm_camera_i2c_mux_mode i2c_mux_mode; |
| 216 | }; |
| 217 | |
Kevin Chan | eb6b607 | 2012-01-17 11:54:54 -0800 | [diff] [blame] | 218 | struct msm_camera_sensor_platform_info { |
| 219 | int mount_angle; |
| 220 | int sensor_reset; |
| 221 | struct camera_vreg_t *cam_vreg; |
| 222 | int num_vreg; |
| 223 | int32_t (*ext_power_ctrl) (int enable); |
| 224 | struct msm_camera_gpio_conf *gpio_conf; |
Kevin Chan | bb8ef86 | 2012-02-14 13:03:04 -0800 | [diff] [blame] | 225 | struct msm_camera_i2c_conf *i2c_conf; |
Hody Hung | 9ba65cf | 2012-01-17 17:34:51 -0800 | [diff] [blame] | 226 | struct msm_camera_csi_lane_params *csi_lane_params; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 227 | }; |
| 228 | |
Rajakumar Govindaram | 6627b36 | 2012-01-29 19:00:30 -0800 | [diff] [blame] | 229 | enum msm_camera_actuator_name { |
| 230 | MSM_ACTUATOR_MAIN_CAM_0, |
| 231 | MSM_ACTUATOR_MAIN_CAM_1, |
| 232 | MSM_ACTUATOR_MAIN_CAM_2, |
| 233 | MSM_ACTUATOR_MAIN_CAM_3, |
| 234 | MSM_ACTUATOR_MAIN_CAM_4, |
| 235 | MSM_ACTUATOR_MAIN_CAM_5, |
| 236 | MSM_ACTUATOR_WEB_CAM_0, |
| 237 | MSM_ACTUATOR_WEB_CAM_1, |
| 238 | MSM_ACTUATOR_WEB_CAM_2, |
| 239 | }; |
| 240 | |
Sreesudhan Ramakrish Ramkumar | a4b5f30 | 2011-09-12 16:23:22 -0700 | [diff] [blame] | 241 | struct msm_actuator_info { |
| 242 | struct i2c_board_info const *board_info; |
Rajakumar Govindaram | 6627b36 | 2012-01-29 19:00:30 -0800 | [diff] [blame] | 243 | enum msm_camera_actuator_name cam_name; |
Sreesudhan Ramakrish Ramkumar | a4b5f30 | 2011-09-12 16:23:22 -0700 | [diff] [blame] | 244 | int bus_id; |
| 245 | int vcm_pwd; |
| 246 | int vcm_enable; |
| 247 | }; |
| 248 | |
Jeyaprakash Soundrapandian | 734476b | 2012-05-03 20:08:15 -0700 | [diff] [blame] | 249 | struct msm_eeprom_info { |
| 250 | struct i2c_board_info const *board_info; |
| 251 | int bus_id; |
Jack Wang | b88c8c2 | 2012-07-26 11:33:36 -0700 | [diff] [blame] | 252 | int eeprom_reg_addr; |
| 253 | int eeprom_read_length; |
| 254 | int eeprom_i2c_slave_addr; |
Jeyaprakash Soundrapandian | 734476b | 2012-05-03 20:08:15 -0700 | [diff] [blame] | 255 | }; |
| 256 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 257 | struct msm_camera_sensor_info { |
| 258 | const char *sensor_name; |
| 259 | int sensor_reset_enable; |
| 260 | int sensor_reset; |
| 261 | int sensor_pwd; |
| 262 | int vcm_pwd; |
| 263 | int vcm_enable; |
| 264 | int mclk; |
| 265 | int flash_type; |
| 266 | struct msm_camera_sensor_platform_info *sensor_platform_info; |
| 267 | struct msm_camera_device_platform_data *pdata; |
| 268 | struct resource *resource; |
| 269 | uint8_t num_resources; |
| 270 | struct msm_camera_sensor_flash_data *flash_data; |
| 271 | int csi_if; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 272 | struct msm_camera_sensor_strobe_flash_data *strobe_flash_data; |
| 273 | char *eeprom_data; |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 274 | enum msm_camera_type camera_type; |
Raju P.L.S.S.S.N | 3f4b302 | 2012-03-29 10:09:01 +0530 | [diff] [blame] | 275 | enum msm_sensor_type sensor_type; |
Sreesudhan Ramakrish Ramkumar | a4b5f30 | 2011-09-12 16:23:22 -0700 | [diff] [blame] | 276 | struct msm_actuator_info *actuator_info; |
Su Liu | aca0470 | 2012-02-14 02:27:32 +0530 | [diff] [blame] | 277 | int pmic_gpio_enable; |
Jeyaprakash Soundrapandian | 734476b | 2012-05-03 20:08:15 -0700 | [diff] [blame] | 278 | struct msm_eeprom_info *eeprom_info; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 279 | }; |
| 280 | |
Kevin Chan | 09f4e66 | 2011-12-16 08:17:02 -0800 | [diff] [blame] | 281 | struct msm_camera_board_info { |
| 282 | struct i2c_board_info *board_info; |
| 283 | uint8_t num_i2c_board_info; |
| 284 | }; |
| 285 | |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 286 | int msm_get_cam_resources(struct msm_camera_sensor_info *); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 287 | |
Stephen Boyd | bd32344 | 2011-02-23 09:37:42 -0800 | [diff] [blame] | 288 | struct clk_lookup; |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 289 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 290 | struct snd_endpoint { |
| 291 | int id; |
| 292 | const char *name; |
| 293 | }; |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 294 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 295 | struct msm_snd_endpoints { |
| 296 | struct snd_endpoint *endpoints; |
| 297 | unsigned num; |
| 298 | }; |
| 299 | |
Manish Dewangan | 1c0fa49 | 2012-08-22 10:33:11 +0530 | [diff] [blame] | 300 | struct cad_endpoint { |
| 301 | int id; |
| 302 | const char *name; |
| 303 | uint32_t capability; |
| 304 | }; |
| 305 | |
| 306 | struct msm_cad_endpoints { |
| 307 | struct cad_endpoint *endpoints; |
| 308 | unsigned num; |
| 309 | }; |
| 310 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 311 | #define MSM_MAX_DEC_CNT 14 |
| 312 | /* 7k target ADSP information */ |
| 313 | /* Bit 23:0, for codec identification like mp3, wav etc * |
| 314 | * Bit 27:24, for mode identification like tunnel, non tunnel* |
| 315 | * bit 31:28, for operation support like DM, DMA */ |
| 316 | enum msm_adspdec_concurrency { |
| 317 | MSM_ADSP_CODEC_WAV = 0, |
| 318 | MSM_ADSP_CODEC_ADPCM = 1, |
| 319 | MSM_ADSP_CODEC_MP3 = 2, |
| 320 | MSM_ADSP_CODEC_REALAUDIO = 3, |
| 321 | MSM_ADSP_CODEC_WMA = 4, |
| 322 | MSM_ADSP_CODEC_AAC = 5, |
| 323 | MSM_ADSP_CODEC_RESERVED = 6, |
| 324 | MSM_ADSP_CODEC_MIDI = 7, |
| 325 | MSM_ADSP_CODEC_YADPCM = 8, |
| 326 | MSM_ADSP_CODEC_QCELP = 9, |
| 327 | MSM_ADSP_CODEC_AMRNB = 10, |
| 328 | MSM_ADSP_CODEC_AMRWB = 11, |
| 329 | MSM_ADSP_CODEC_EVRC = 12, |
| 330 | MSM_ADSP_CODEC_WMAPRO = 13, |
Chaithanya Krishna Bacharaju | 8e838cc | 2012-08-16 11:32:46 +0530 | [diff] [blame] | 331 | MSM_ADSP_CODEC_AC3 = 23, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 332 | MSM_ADSP_MODE_TUNNEL = 24, |
| 333 | MSM_ADSP_MODE_NONTUNNEL = 25, |
| 334 | MSM_ADSP_MODE_LP = 26, |
| 335 | MSM_ADSP_OP_DMA = 28, |
| 336 | MSM_ADSP_OP_DM = 29, |
| 337 | }; |
| 338 | |
| 339 | struct msm_adspdec_info { |
| 340 | const char *module_name; |
| 341 | unsigned module_queueid; |
| 342 | int module_decid; /* objid */ |
| 343 | unsigned nr_codec_support; |
| 344 | }; |
| 345 | |
| 346 | /* Carries information about number codec |
| 347 | * supported if same codec or different codecs |
| 348 | */ |
| 349 | struct dec_instance_table { |
| 350 | uint8_t max_instances_same_dec; |
| 351 | uint8_t max_instances_diff_dec; |
| 352 | }; |
| 353 | |
| 354 | struct msm_adspdec_database { |
| 355 | unsigned num_dec; |
| 356 | unsigned num_concurrency_support; |
| 357 | unsigned int *dec_concurrency_table; /* Bit masked entry to * |
| 358 | * represents codec, mode etc */ |
| 359 | struct msm_adspdec_info *dec_info_list; |
| 360 | struct dec_instance_table *dec_instance_list; |
| 361 | }; |
| 362 | |
| 363 | enum msm_mdp_hw_revision { |
| 364 | MDP_REV_20 = 1, |
| 365 | MDP_REV_22, |
| 366 | MDP_REV_30, |
| 367 | MDP_REV_303, |
| 368 | MDP_REV_31, |
| 369 | MDP_REV_40, |
| 370 | MDP_REV_41, |
| 371 | MDP_REV_42, |
Huaibin Yang | 4a084e3 | 2011-12-15 15:25:52 -0800 | [diff] [blame] | 372 | MDP_REV_43, |
| 373 | MDP_REV_44, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 374 | }; |
| 375 | |
| 376 | struct msm_panel_common_pdata { |
| 377 | uintptr_t hw_revision_addr; |
| 378 | int gpio; |
Padmanabhan Komanduru | bea9c06 | 2012-04-09 10:33:48 +0530 | [diff] [blame] | 379 | bool bl_lock; |
Padmanabhan Komanduru | 0f0000a | 2012-04-12 10:23:02 +0530 | [diff] [blame] | 380 | spinlock_t bl_spinlock; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 381 | int (*backlight_level)(int level, int max, int min); |
| 382 | int (*pmic_backlight)(int level); |
Jeevan Shriram | 8f7c96d | 2012-05-15 12:42:57 +0530 | [diff] [blame] | 383 | int (*rotate_panel)(void); |
Padmanabhan Komanduru | cc91399 | 2012-05-09 14:57:28 +0530 | [diff] [blame] | 384 | int (*backlight) (int level, int mode); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 385 | int (*panel_num)(void); |
| 386 | void (*panel_config_gpio)(int); |
| 387 | int (*vga_switch)(int select_vga); |
| 388 | int *gpio_num; |
Siddhartha Agrawal | 496f928 | 2012-08-15 17:41:34 -0700 | [diff] [blame] | 389 | u32 mdp_max_clk; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 390 | #ifdef CONFIG_MSM_BUS_SCALING |
| 391 | struct msm_bus_scale_pdata *mdp_bus_scale_table; |
| 392 | #endif |
| 393 | int mdp_rev; |
Nagamalleswararao Ganji | 937a119 | 2011-12-07 19:00:52 -0800 | [diff] [blame] | 394 | u32 ov0_wb_size; /* overlay0 writeback size */ |
| 395 | u32 ov1_wb_size; /* overlay1 writeback size */ |
| 396 | u32 mem_hid; |
Chandan Uddaraju | 2679f09 | 2012-03-09 15:48:04 -0800 | [diff] [blame] | 397 | char cont_splash_enabled; |
Pradeep Jilagam | d635cad | 2012-08-03 15:52:06 +0530 | [diff] [blame] | 398 | u32 splash_screen_addr; |
| 399 | u32 splash_screen_size; |
Olav Haugan | ef95ae3 | 2012-05-15 09:50:30 -0700 | [diff] [blame] | 400 | char mdp_iommu_split_domain; |
Kalyan Thota | 327a968 | 2012-08-23 17:08:25 +0530 | [diff] [blame] | 401 | u32 avtimer_phy; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 402 | }; |
| 403 | |
Huaibin Yang | a541942 | 2011-12-08 23:52:10 -0800 | [diff] [blame] | 404 | |
| 405 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 406 | struct lcdc_platform_data { |
| 407 | int (*lcdc_gpio_config)(int on); |
| 408 | int (*lcdc_power_save)(int); |
| 409 | unsigned int (*lcdc_get_clk)(void); |
| 410 | #ifdef CONFIG_MSM_BUS_SCALING |
| 411 | struct msm_bus_scale_pdata *bus_scale_table; |
| 412 | #endif |
Huaibin Yang | 02f981c | 2012-02-27 16:58:41 -0800 | [diff] [blame] | 413 | int (*lvds_pixel_remap)(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 414 | }; |
| 415 | |
| 416 | struct tvenc_platform_data { |
| 417 | int poll; |
| 418 | int (*pm_vid_en)(int on); |
| 419 | #ifdef CONFIG_MSM_BUS_SCALING |
| 420 | struct msm_bus_scale_pdata *bus_scale_table; |
| 421 | #endif |
| 422 | }; |
| 423 | |
| 424 | struct mddi_platform_data { |
| 425 | int (*mddi_power_save)(int on); |
| 426 | int (*mddi_sel_clk)(u32 *clk_rate); |
| 427 | int (*mddi_client_power)(u32 client_id); |
| 428 | }; |
| 429 | |
| 430 | struct mipi_dsi_platform_data { |
| 431 | int vsync_gpio; |
| 432 | int (*dsi_power_save)(int on); |
| 433 | int (*dsi_client_reset)(void); |
| 434 | int (*get_lane_config)(void); |
Ravishangar Kalyanam | 87dd72e | 2012-04-16 19:07:36 -0700 | [diff] [blame] | 435 | char (*splash_is_enabled)(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 436 | int target_type; |
| 437 | }; |
| 438 | |
Chandan Uddaraju | 83eac3c | 2011-09-11 18:32:23 -0700 | [diff] [blame] | 439 | enum mipi_dsi_3d_ctrl { |
| 440 | FPGA_EBI2_INTF, |
| 441 | FPGA_SPI_INTF, |
| 442 | }; |
| 443 | |
| 444 | /* DSI PHY configuration */ |
| 445 | struct mipi_dsi_phy_ctrl { |
| 446 | uint32_t regulator[5]; |
| 447 | uint32_t timing[12]; |
| 448 | uint32_t ctrl[4]; |
| 449 | uint32_t strength[4]; |
| 450 | uint32_t pll[21]; |
| 451 | }; |
| 452 | |
Nagamalleswararao Ganji | eac5dfa | 2011-07-23 17:31:16 -0700 | [diff] [blame] | 453 | struct mipi_dsi_panel_platform_data { |
Chandan Uddaraju | 83eac3c | 2011-09-11 18:32:23 -0700 | [diff] [blame] | 454 | int fpga_ctrl_mode; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 455 | int fpga_3d_config_addr; |
Nagamalleswararao Ganji | eac5dfa | 2011-07-23 17:31:16 -0700 | [diff] [blame] | 456 | int *gpio; |
Chandan Uddaraju | 83eac3c | 2011-09-11 18:32:23 -0700 | [diff] [blame] | 457 | struct mipi_dsi_phy_ctrl *phy_ctrl_settings; |
Ravishangar Kalyanam | 903f65c | 2012-01-28 21:36:22 -0800 | [diff] [blame] | 458 | char dlane_swap; |
Chandan Uddaraju | 2679f09 | 2012-03-09 15:48:04 -0800 | [diff] [blame] | 459 | void (*dsi_pwm_cfg)(void); |
Chandan Uddaraju | 194a4b5 | 2012-03-21 10:11:18 -0700 | [diff] [blame] | 460 | char enable_wled_bl_ctrl; |
Huaibin Yang | a07d787 | 2012-11-08 14:05:24 -0800 | [diff] [blame] | 461 | void (*gpio_set_backlight)(int bl_level); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 462 | }; |
| 463 | |
Ravishangar Kalyanam | c2fee31 | 2012-02-09 19:11:22 -0800 | [diff] [blame] | 464 | struct lvds_panel_platform_data { |
| 465 | int *gpio; |
| 466 | }; |
| 467 | |
Olav Haugan | ef95ae3 | 2012-05-15 09:50:30 -0700 | [diff] [blame] | 468 | struct msm_wfd_platform_data { |
| 469 | char (*wfd_check_mdp_iommu_split)(void); |
| 470 | }; |
| 471 | |
Ravishangar Kalyanam | 8c79ead | 2011-12-02 21:05:01 -0800 | [diff] [blame] | 472 | #define PANEL_NAME_MAX_LEN 50 |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 473 | struct msm_fb_platform_data { |
| 474 | int (*detect_client)(const char *name); |
| 475 | int mddi_prescan; |
Ajay Singh Parmar | 6b82d2b | 2012-07-19 17:23:26 +0530 | [diff] [blame] | 476 | unsigned char ext_resolution; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 477 | int (*allow_set_offset)(void); |
Ravishangar Kalyanam | 8c79ead | 2011-12-02 21:05:01 -0800 | [diff] [blame] | 478 | char prim_panel_name[PANEL_NAME_MAX_LEN]; |
| 479 | char ext_panel_name[PANEL_NAME_MAX_LEN]; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 480 | }; |
| 481 | |
| 482 | struct msm_hdmi_platform_data { |
| 483 | int irq; |
| 484 | int (*cable_detect)(int insert); |
| 485 | int (*comm_power)(int on, int show); |
| 486 | int (*enable_5v)(int on); |
| 487 | int (*core_power)(int on, int show); |
| 488 | int (*cec_power)(int on); |
Ajay Singh Parmar | 7d11c27 | 2012-06-07 12:25:31 +0530 | [diff] [blame] | 489 | int (*panel_power)(int on); |
| 490 | int (*gpio_config)(int on); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 491 | int (*init_irq)(void); |
| 492 | bool (*check_hdcp_hw_support)(void); |
Manoj Rao | c6d904c | 2012-06-22 00:32:14 -0700 | [diff] [blame] | 493 | bool is_mhl_enabled; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 494 | }; |
| 495 | |
Manoj Rao | 1464874 | 2012-03-30 19:42:12 -0700 | [diff] [blame] | 496 | struct msm_mhl_platform_data { |
| 497 | int irq; |
Manoj Rao | c6d904c | 2012-06-22 00:32:14 -0700 | [diff] [blame] | 498 | /* GPIO no. for mhl intr */ |
| 499 | uint32_t gpio_mhl_int; |
| 500 | /* GPIO no. for mhl block reset */ |
| 501 | uint32_t gpio_mhl_reset; |
| 502 | /* |
| 503 | * below gpios are specific to targets |
| 504 | * that have the integrated MHL soln. |
| 505 | */ |
| 506 | /* GPIO no. for mhl block power */ |
| 507 | uint32_t gpio_mhl_power; |
| 508 | /* GPIO no. for hdmi-mhl mux */ |
| 509 | uint32_t gpio_hdmi_mhl_mux; |
Abhishek Kharbanda | 72dc72e | 2012-06-07 13:41:37 -0700 | [diff] [blame] | 510 | bool mhl_enabled; |
Manoj Rao | 1464874 | 2012-03-30 19:42:12 -0700 | [diff] [blame] | 511 | }; |
| 512 | |
Gilad Avidov | 0906336 | 2013-05-06 13:47:40 -0600 | [diff] [blame] | 513 | /** |
| 514 | * msm_i2c_platform_data: i2c-qup driver configuration data |
| 515 | * |
| 516 | * @active_only when set, votes when system active and removes the vote when |
| 517 | * system goes idle (optimises for performance). When unset, voting using |
| 518 | * runtime pm (optimizes for power). |
| 519 | * @master_id master id number of the i2c core or its wrapper (BLSP/GSBI). |
| 520 | * When zero, clock path voting is disabled. |
| 521 | */ |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 522 | struct msm_i2c_platform_data { |
| 523 | int clk_freq; |
| 524 | uint32_t rmutex; |
| 525 | const char *rsl_id; |
| 526 | uint32_t pm_lat; |
| 527 | int pri_clk; |
| 528 | int pri_dat; |
| 529 | int aux_clk; |
| 530 | int aux_dat; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 531 | int src_clk_rate; |
| 532 | int use_gsbi_shared_mode; |
Kiran Gunda | 9aa5e91 | 2012-08-16 18:37:46 +0530 | [diff] [blame] | 533 | int keep_ahb_clk_on; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 534 | void (*msm_i2c_config_gpio)(int iface, int config_type); |
Gilad Avidov | 0906336 | 2013-05-06 13:47:40 -0600 | [diff] [blame] | 535 | bool active_only; |
| 536 | uint32_t master_id; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 537 | }; |
| 538 | |
| 539 | struct msm_i2c_ssbi_platform_data { |
| 540 | const char *rsl_id; |
| 541 | enum msm_ssbi_controller_type controller_type; |
| 542 | }; |
| 543 | |
| 544 | struct msm_vidc_platform_data { |
| 545 | int memtype; |
Deepak Kotur | cb4f672 | 2011-10-31 14:06:57 -0700 | [diff] [blame] | 546 | u32 enable_ion; |
Deepika Pepakayala | bebc762 | 2011-12-01 15:13:43 -0800 | [diff] [blame] | 547 | int disable_dmx; |
Rajeshwar Kurapaty | c155c35 | 2011-12-17 06:35:32 +0530 | [diff] [blame] | 548 | int disable_fullhd; |
Deepak kotur | 5f10b27 | 2012-03-15 22:01:39 -0700 | [diff] [blame] | 549 | u32 cp_enabled; |
Riaz Rahaman | 84f8c68 | 2012-05-30 13:32:10 +0530 | [diff] [blame] | 550 | u32 secure_wb_heap; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 551 | #ifdef CONFIG_MSM_BUS_SCALING |
| 552 | struct msm_bus_scale_pdata *vidc_bus_client_pdata; |
| 553 | #endif |
Mohan Kumar Gubbihalli Lachma Naik | ed9dc91 | 2012-03-01 19:11:14 -0800 | [diff] [blame] | 554 | int cont_mode_dpb_count; |
Deva Ramasubramanian | 837ae36 | 2012-05-12 23:26:53 -0700 | [diff] [blame] | 555 | int disable_turbo; |
Riaz Rahaman | 84f8c68 | 2012-05-30 13:32:10 +0530 | [diff] [blame] | 556 | unsigned long fw_addr; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 557 | }; |
| 558 | |
Arun Menon | 8ef6d5a | 2013-01-04 21:20:26 -0800 | [diff] [blame] | 559 | enum msm_vidc_v4l2_iommu_map { |
| 560 | MSM_VIDC_V4L2_IOMMU_MAP_NS = 0, |
| 561 | MSM_VIDC_V4L2_IOMMU_MAP_CP, |
| 562 | MSM_VIDC_V4L2_IOMMU_MAP_MAX, |
| 563 | }; |
| 564 | |
| 565 | struct msm_vidc_v4l2_platform_data { |
| 566 | /* |
| 567 | * Should be a <num_iommu_table x 2> array where |
| 568 | * iommu_table[n][0] is the start address and |
| 569 | * iommu_table[n][1] is the size. |
| 570 | */ |
| 571 | int64_t **iommu_table; |
| 572 | int num_iommu_table; |
| 573 | |
| 574 | /* |
| 575 | * Should be a <num_load_table x 2> array where |
| 576 | * load_table[n][0] is the load and load_table[n][1] |
| 577 | * is the desired clock rate. |
| 578 | */ |
| 579 | int64_t **load_table; |
| 580 | int num_load_table; |
Deva Ramasubramanian | 1973ba8 | 2013-03-27 15:34:38 -0700 | [diff] [blame] | 581 | |
| 582 | uint32_t max_load; |
Arun Menon | 8ef6d5a | 2013-01-04 21:20:26 -0800 | [diff] [blame] | 583 | }; |
| 584 | |
Terence Hampson | a6914ca | 2012-04-09 14:06:50 -0400 | [diff] [blame] | 585 | struct vcap_platform_data { |
| 586 | unsigned *gpios; |
| 587 | int num_gpios; |
| 588 | struct msm_bus_scale_pdata *bus_client_pdata; |
| 589 | }; |
| 590 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 591 | #if defined(CONFIG_USB_PEHCI_HCD) || defined(CONFIG_USB_PEHCI_HCD_MODULE) |
| 592 | struct isp1763_platform_data { |
| 593 | unsigned reset_gpio; |
| 594 | int (*setup_gpio)(int enable); |
| 595 | }; |
| 596 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 597 | /* common init routines for use by arch/arm/mach-msm/board-*.c */ |
| 598 | |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 599 | #ifdef CONFIG_OF_DEVICE |
Abhimanyu Kapur | 90ced6e | 2012-06-26 17:41:25 -0700 | [diff] [blame] | 600 | void msm_8974_init(struct of_dev_auxdata **); |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 601 | #endif |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 602 | void msm_add_devices(void); |
Abhimanyu Kapur | 90ced6e | 2012-06-26 17:41:25 -0700 | [diff] [blame] | 603 | void msm_8974_add_devices(void); |
| 604 | void msm_8974_add_drivers(void); |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 605 | void msm_map_common_io(void); |
| 606 | void msm_map_qsd8x50_io(void); |
| 607 | void msm_map_msm8x60_io(void); |
| 608 | void msm_map_msm8960_io(void); |
| 609 | void msm_map_msm8930_io(void); |
| 610 | void msm_map_apq8064_io(void); |
| 611 | void msm_map_msm7x30_io(void); |
| 612 | void msm_map_fsm9xxx_io(void); |
Rohit Vaswani | 695d223 | 2013-03-20 19:12:59 -0700 | [diff] [blame] | 613 | void msm_map_fsm9900_io(void); |
Rohit Vaswani | 833772c | 2013-03-20 19:14:06 -0700 | [diff] [blame] | 614 | void fsm9900_init_gpiomux(void); |
Abhimanyu Kapur | 90ced6e | 2012-06-26 17:41:25 -0700 | [diff] [blame] | 615 | void msm_map_8974_io(void); |
Stepan Moskovchenko | e90cd65 | 2013-04-18 12:54:47 -0700 | [diff] [blame] | 616 | void msm_map_8084_io(void); |
Abhimanyu Kapur | a6e2774 | 2013-03-18 16:39:31 -0700 | [diff] [blame] | 617 | void msm_map_msmkrypton_io(void); |
Jay Chokshi | 184a7df | 2013-05-10 17:35:59 -0700 | [diff] [blame] | 618 | void msm_map_msmsamarium_io(void); |
Taniya Das | 43bcdd6 | 2011-12-02 17:33:27 +0530 | [diff] [blame] | 619 | void msm_map_msm8625_io(void); |
Rohit Vaswani | 3fc6034 | 2012-04-23 18:55:15 -0700 | [diff] [blame] | 620 | void msm_map_msm9625_io(void); |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 621 | void msm_init_irq(void); |
Abhimanyu Kapur | 90ced6e | 2012-06-26 17:41:25 -0700 | [diff] [blame] | 622 | void msm_8974_init_irq(void); |
Taniya Das | 86e0e13 | 2011-10-19 11:32:00 +0530 | [diff] [blame] | 623 | void vic_handle_irq(struct pt_regs *regs); |
Abhimanyu Kapur | 90ced6e | 2012-06-26 17:41:25 -0700 | [diff] [blame] | 624 | void msm_8974_reserve(void); |
| 625 | void msm_8974_very_early(void); |
| 626 | void msm_8974_init_gpiomux(void); |
Stepan Moskovchenko | e90cd65 | 2013-04-18 12:54:47 -0700 | [diff] [blame] | 627 | void apq8084_init_gpiomux(void); |
Rohit Vaswani | 5a06e79 | 2012-06-29 16:03:23 -0700 | [diff] [blame] | 628 | void msm9625_init_gpiomux(void); |
Abhimanyu Kapur | a6e2774 | 2013-03-18 16:39:31 -0700 | [diff] [blame] | 629 | void msmkrypton_init_gpiomux(void); |
Jay Chokshi | ffeabaf | 2013-05-10 17:49:25 -0700 | [diff] [blame] | 630 | void msmsamarium_init_gpiomux(void); |
Ravi Kumar V | 8834dad | 2012-08-31 22:49:55 +0530 | [diff] [blame] | 631 | void msm_map_mpq8092_io(void); |
Ravi Kumar V | 345872a | 2012-09-01 00:06:02 +0530 | [diff] [blame] | 632 | void mpq8092_init_gpiomux(void); |
Syed Rameez Mustafa | 878892c | 2012-08-23 17:30:32 -0700 | [diff] [blame] | 633 | void msm_map_msm8226_io(void); |
| 634 | void msm8226_init_irq(void); |
Syed Rameez Mustafa | 9d16c4f | 2012-09-10 14:16:55 -0700 | [diff] [blame] | 635 | void msm8226_init_gpiomux(void); |
Syed Rameez Mustafa | 3971c14 | 2013-01-09 19:04:53 -0800 | [diff] [blame] | 636 | void msm8610_init_gpiomux(void); |
| 637 | void msm_map_msm8610_io(void); |
| 638 | void msm8610_init_irq(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 639 | |
Ranjhith Kalisamy | b5fabb4 | 2012-10-30 18:43:20 +0530 | [diff] [blame] | 640 | /* Dump debug info (states, rate, etc) of clocks */ |
| 641 | #if defined(CONFIG_ARCH_MSM7X27) |
| 642 | void msm_clk_dump_debug_info(void); |
| 643 | #else |
| 644 | static inline void msm_clk_dump_debug_info(void) {} |
| 645 | #endif |
| 646 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 647 | struct mmc_platform_data; |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 648 | int msm_add_sdcc(unsigned int controller, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 649 | struct mmc_platform_data *plat); |
| 650 | |
Murali Nalajala | 2a0bbda | 2012-03-28 12:12:54 +0530 | [diff] [blame] | 651 | void msm_pm_register_irqs(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 652 | struct msm_usb_host_platform_data; |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 653 | int msm_add_host(unsigned int host, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 654 | struct msm_usb_host_platform_data *plat); |
| 655 | #if defined(CONFIG_USB_FUNCTION_MSM_HSUSB) \ |
| 656 | || defined(CONFIG_USB_MSM_72K) || defined(CONFIG_USB_MSM_72K_MODULE) |
| 657 | void msm_hsusb_set_vbus_state(int online); |
| 658 | #else |
| 659 | static inline void msm_hsusb_set_vbus_state(int online) {} |
| 660 | #endif |
| 661 | |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 662 | void msm_snddev_init(void); |
| 663 | void msm_snddev_init_timpani(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 664 | void msm_snddev_poweramp_on(void); |
| 665 | void msm_snddev_poweramp_off(void); |
| 666 | void msm_snddev_hsed_voltage_on(void); |
| 667 | void msm_snddev_hsed_voltage_off(void); |
| 668 | void msm_snddev_tx_route_config(void); |
| 669 | void msm_snddev_tx_route_deconfig(void); |
| 670 | |
Eric Holmberg | 51edef7 | 2013-04-11 14:28:33 -0600 | [diff] [blame] | 671 | extern phys_addr_t msm_shared_ram_phys; /* defined in arch/arm/mach-msm/io.c */ |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 672 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 673 | |
| 674 | #endif |