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. |
Nagamalleswararao Ganji | 70fac1e | 2011-12-29 19:06:37 -0800 | [diff] [blame] | 4 | * Copyright (c) 2008-2012, Code Aurora Forum. 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_csiphy; |
| 65 | uint8_t is_csic; |
| 66 | uint8_t is_csid; |
| 67 | uint8_t is_ispif; |
| 68 | uint8_t is_vpe; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 69 | struct msm_bus_scale_pdata *cam_bus_scale_table; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 70 | }; |
| 71 | enum msm_camera_csi_data_format { |
| 72 | CSI_8BIT, |
| 73 | CSI_10BIT, |
| 74 | CSI_12BIT, |
| 75 | }; |
| 76 | struct 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 |
| 85 | struct 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 Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 100 | #define MSM_CAMERA_FLASH_SRC_EXT (0x00000001<<3) |
Taniya Das | 7a22cdd | 2011-09-08 14:57:00 +0530 | [diff] [blame] | 101 | #define MSM_CAMERA_FLASH_SRC_LED (0x00000001<<3) |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 102 | |
| 103 | struct 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 | |
| 112 | struct 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 | |
| 120 | struct pmic8058_leds_platform_data; |
| 121 | struct 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 Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | struct 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 Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 131 | }; |
| 132 | |
Taniya Das | 7a22cdd | 2011-09-08 14:57:00 +0530 | [diff] [blame] | 133 | struct msm_camera_sensor_flash_led { |
| 134 | const char *led_name; |
| 135 | const int led_name_len; |
| 136 | }; |
| 137 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 138 | struct 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 Pandit | 474f225 | 2011-07-23 23:17:56 +0530 | [diff] [blame] | 146 | struct msm_camera_sensor_flash_external |
| 147 | ext_driver_src; |
Taniya Das | 7a22cdd | 2011-09-08 14:57:00 +0530 | [diff] [blame] | 148 | struct msm_camera_sensor_flash_led led_src; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 149 | } _fsrc; |
| 150 | }; |
| 151 | |
| 152 | struct msm_camera_sensor_flash_data { |
| 153 | int flash_type; |
| 154 | struct msm_camera_sensor_flash_src *flash_src; |
| 155 | }; |
| 156 | |
| 157 | struct 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 Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 168 | enum msm_camera_type { |
| 169 | BACK_CAMERA_2D, |
| 170 | FRONT_CAMERA_2D, |
| 171 | BACK_CAMERA_3D, |
| 172 | BACK_CAMERA_INT_3D, |
| 173 | }; |
| 174 | |
Kevin Chan | 8b0d232 | 2011-09-10 21:06:31 -0700 | [diff] [blame] | 175 | struct msm8960_privacy_light_cfg { |
| 176 | unsigned mpp; |
| 177 | }; |
| 178 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 179 | struct msm_camera_sensor_platform_info { |
| 180 | int mount_angle; |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 181 | int sensor_reset_enable; |
| 182 | int sensor_reset; |
| 183 | int sensor_pwd; |
| 184 | int vcm_pwd; |
| 185 | int vcm_enable; |
Kevin Chan | 8b0d232 | 2011-09-10 21:06:31 -0700 | [diff] [blame] | 186 | int privacy_light; |
| 187 | void *privacy_light_info; |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 188 | }; |
| 189 | |
| 190 | struct msm_camera_gpio_conf { |
| 191 | void *cam_gpiomux_conf_tbl; |
| 192 | uint8_t cam_gpiomux_conf_tbl_size; |
| 193 | uint16_t *cam_gpio_tbl; |
| 194 | uint8_t cam_gpio_tbl_size; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 195 | }; |
| 196 | |
Sreesudhan Ramakrish Ramkumar | a4b5f30 | 2011-09-12 16:23:22 -0700 | [diff] [blame] | 197 | struct msm_actuator_info { |
| 198 | struct i2c_board_info const *board_info; |
| 199 | int bus_id; |
| 200 | int vcm_pwd; |
| 201 | int vcm_enable; |
| 202 | }; |
| 203 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 204 | struct msm_camera_sensor_info { |
| 205 | const char *sensor_name; |
| 206 | int sensor_reset_enable; |
| 207 | int sensor_reset; |
| 208 | int sensor_pwd; |
| 209 | int vcm_pwd; |
| 210 | int vcm_enable; |
| 211 | int mclk; |
| 212 | int flash_type; |
| 213 | struct msm_camera_sensor_platform_info *sensor_platform_info; |
| 214 | struct msm_camera_device_platform_data *pdata; |
| 215 | struct resource *resource; |
| 216 | uint8_t num_resources; |
| 217 | struct msm_camera_sensor_flash_data *flash_data; |
| 218 | int csi_if; |
| 219 | struct msm_camera_csi_params csi_params; |
| 220 | struct msm_camera_sensor_strobe_flash_data *strobe_flash_data; |
| 221 | char *eeprom_data; |
Nishant Pandit | 24153d8 | 2011-08-27 16:05:13 +0530 | [diff] [blame] | 222 | struct msm_camera_gpio_conf *gpio_conf; |
| 223 | enum msm_camera_type camera_type; |
Sreesudhan Ramakrish Ramkumar | a4b5f30 | 2011-09-12 16:23:22 -0700 | [diff] [blame] | 224 | struct msm_actuator_info *actuator_info; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 225 | }; |
| 226 | |
Kevin Chan | 09f4e66 | 2011-12-16 08:17:02 -0800 | [diff] [blame] | 227 | struct msm_camera_board_info { |
| 228 | struct i2c_board_info *board_info; |
| 229 | uint8_t num_i2c_board_info; |
| 230 | }; |
| 231 | |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 232 | int msm_get_cam_resources(struct msm_camera_sensor_info *); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 233 | |
Stephen Boyd | bd32344 | 2011-02-23 09:37:42 -0800 | [diff] [blame] | 234 | struct clk_lookup; |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 235 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 236 | struct snd_endpoint { |
| 237 | int id; |
| 238 | const char *name; |
| 239 | }; |
Steve Muckle | a55df6e | 2010-01-07 12:43:24 -0800 | [diff] [blame] | 240 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 241 | struct msm_snd_endpoints { |
| 242 | struct snd_endpoint *endpoints; |
| 243 | unsigned num; |
| 244 | }; |
| 245 | |
| 246 | #define MSM_MAX_DEC_CNT 14 |
| 247 | /* 7k target ADSP information */ |
| 248 | /* Bit 23:0, for codec identification like mp3, wav etc * |
| 249 | * Bit 27:24, for mode identification like tunnel, non tunnel* |
| 250 | * bit 31:28, for operation support like DM, DMA */ |
| 251 | enum msm_adspdec_concurrency { |
| 252 | MSM_ADSP_CODEC_WAV = 0, |
| 253 | MSM_ADSP_CODEC_ADPCM = 1, |
| 254 | MSM_ADSP_CODEC_MP3 = 2, |
| 255 | MSM_ADSP_CODEC_REALAUDIO = 3, |
| 256 | MSM_ADSP_CODEC_WMA = 4, |
| 257 | MSM_ADSP_CODEC_AAC = 5, |
| 258 | MSM_ADSP_CODEC_RESERVED = 6, |
| 259 | MSM_ADSP_CODEC_MIDI = 7, |
| 260 | MSM_ADSP_CODEC_YADPCM = 8, |
| 261 | MSM_ADSP_CODEC_QCELP = 9, |
| 262 | MSM_ADSP_CODEC_AMRNB = 10, |
| 263 | MSM_ADSP_CODEC_AMRWB = 11, |
| 264 | MSM_ADSP_CODEC_EVRC = 12, |
| 265 | MSM_ADSP_CODEC_WMAPRO = 13, |
| 266 | MSM_ADSP_MODE_TUNNEL = 24, |
| 267 | MSM_ADSP_MODE_NONTUNNEL = 25, |
| 268 | MSM_ADSP_MODE_LP = 26, |
| 269 | MSM_ADSP_OP_DMA = 28, |
| 270 | MSM_ADSP_OP_DM = 29, |
| 271 | }; |
| 272 | |
| 273 | struct msm_adspdec_info { |
| 274 | const char *module_name; |
| 275 | unsigned module_queueid; |
| 276 | int module_decid; /* objid */ |
| 277 | unsigned nr_codec_support; |
| 278 | }; |
| 279 | |
| 280 | /* Carries information about number codec |
| 281 | * supported if same codec or different codecs |
| 282 | */ |
| 283 | struct dec_instance_table { |
| 284 | uint8_t max_instances_same_dec; |
| 285 | uint8_t max_instances_diff_dec; |
| 286 | }; |
| 287 | |
| 288 | struct msm_adspdec_database { |
| 289 | unsigned num_dec; |
| 290 | unsigned num_concurrency_support; |
| 291 | unsigned int *dec_concurrency_table; /* Bit masked entry to * |
| 292 | * represents codec, mode etc */ |
| 293 | struct msm_adspdec_info *dec_info_list; |
| 294 | struct dec_instance_table *dec_instance_list; |
| 295 | }; |
| 296 | |
| 297 | enum msm_mdp_hw_revision { |
| 298 | MDP_REV_20 = 1, |
| 299 | MDP_REV_22, |
| 300 | MDP_REV_30, |
| 301 | MDP_REV_303, |
| 302 | MDP_REV_31, |
| 303 | MDP_REV_40, |
| 304 | MDP_REV_41, |
| 305 | MDP_REV_42, |
Huaibin Yang | 4a084e3 | 2011-12-15 15:25:52 -0800 | [diff] [blame] | 306 | MDP_REV_43, |
| 307 | MDP_REV_44, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 308 | }; |
| 309 | |
| 310 | struct msm_panel_common_pdata { |
| 311 | uintptr_t hw_revision_addr; |
| 312 | int gpio; |
| 313 | int (*backlight_level)(int level, int max, int min); |
| 314 | int (*pmic_backlight)(int level); |
| 315 | int (*panel_num)(void); |
| 316 | void (*panel_config_gpio)(int); |
| 317 | int (*vga_switch)(int select_vga); |
| 318 | int *gpio_num; |
| 319 | int mdp_core_clk_rate; |
| 320 | unsigned num_mdp_clk; |
| 321 | int *mdp_core_clk_table; |
| 322 | #ifdef CONFIG_MSM_BUS_SCALING |
| 323 | struct msm_bus_scale_pdata *mdp_bus_scale_table; |
| 324 | #endif |
| 325 | int mdp_rev; |
Nagamalleswararao Ganji | 937a119 | 2011-12-07 19:00:52 -0800 | [diff] [blame] | 326 | u32 ov0_wb_size; /* overlay0 writeback size */ |
| 327 | u32 ov1_wb_size; /* overlay1 writeback size */ |
| 328 | u32 mem_hid; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 329 | }; |
| 330 | |
Huaibin Yang | a541942 | 2011-12-08 23:52:10 -0800 | [diff] [blame] | 331 | |
| 332 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 333 | struct lcdc_platform_data { |
| 334 | int (*lcdc_gpio_config)(int on); |
| 335 | int (*lcdc_power_save)(int); |
| 336 | unsigned int (*lcdc_get_clk)(void); |
| 337 | #ifdef CONFIG_MSM_BUS_SCALING |
| 338 | struct msm_bus_scale_pdata *bus_scale_table; |
| 339 | #endif |
| 340 | }; |
| 341 | |
| 342 | struct tvenc_platform_data { |
| 343 | int poll; |
| 344 | int (*pm_vid_en)(int on); |
| 345 | #ifdef CONFIG_MSM_BUS_SCALING |
| 346 | struct msm_bus_scale_pdata *bus_scale_table; |
| 347 | #endif |
| 348 | }; |
| 349 | |
| 350 | struct mddi_platform_data { |
| 351 | int (*mddi_power_save)(int on); |
| 352 | int (*mddi_sel_clk)(u32 *clk_rate); |
| 353 | int (*mddi_client_power)(u32 client_id); |
| 354 | }; |
| 355 | |
| 356 | struct mipi_dsi_platform_data { |
| 357 | int vsync_gpio; |
| 358 | int (*dsi_power_save)(int on); |
| 359 | int (*dsi_client_reset)(void); |
| 360 | int (*get_lane_config)(void); |
| 361 | int target_type; |
| 362 | }; |
| 363 | |
Chandan Uddaraju | 83eac3c | 2011-09-11 18:32:23 -0700 | [diff] [blame] | 364 | enum mipi_dsi_3d_ctrl { |
| 365 | FPGA_EBI2_INTF, |
| 366 | FPGA_SPI_INTF, |
| 367 | }; |
| 368 | |
| 369 | /* DSI PHY configuration */ |
| 370 | struct mipi_dsi_phy_ctrl { |
| 371 | uint32_t regulator[5]; |
| 372 | uint32_t timing[12]; |
| 373 | uint32_t ctrl[4]; |
| 374 | uint32_t strength[4]; |
| 375 | uint32_t pll[21]; |
| 376 | }; |
| 377 | |
Nagamalleswararao Ganji | eac5dfa | 2011-07-23 17:31:16 -0700 | [diff] [blame] | 378 | struct mipi_dsi_panel_platform_data { |
Chandan Uddaraju | 83eac3c | 2011-09-11 18:32:23 -0700 | [diff] [blame] | 379 | int fpga_ctrl_mode; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 380 | int fpga_3d_config_addr; |
Nagamalleswararao Ganji | eac5dfa | 2011-07-23 17:31:16 -0700 | [diff] [blame] | 381 | int *gpio; |
Chandan Uddaraju | 83eac3c | 2011-09-11 18:32:23 -0700 | [diff] [blame] | 382 | struct mipi_dsi_phy_ctrl *phy_ctrl_settings; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 383 | }; |
| 384 | |
| 385 | struct msm_fb_platform_data { |
| 386 | int (*detect_client)(const char *name); |
| 387 | int mddi_prescan; |
| 388 | int (*allow_set_offset)(void); |
| 389 | }; |
| 390 | |
| 391 | struct msm_hdmi_platform_data { |
| 392 | int irq; |
| 393 | int (*cable_detect)(int insert); |
| 394 | int (*comm_power)(int on, int show); |
| 395 | int (*enable_5v)(int on); |
| 396 | int (*core_power)(int on, int show); |
| 397 | int (*cec_power)(int on); |
| 398 | int (*init_irq)(void); |
| 399 | bool (*check_hdcp_hw_support)(void); |
| 400 | }; |
| 401 | |
| 402 | struct msm_i2c_platform_data { |
| 403 | int clk_freq; |
| 404 | uint32_t rmutex; |
| 405 | const char *rsl_id; |
| 406 | uint32_t pm_lat; |
| 407 | int pri_clk; |
| 408 | int pri_dat; |
| 409 | int aux_clk; |
| 410 | int aux_dat; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 411 | int src_clk_rate; |
| 412 | int use_gsbi_shared_mode; |
| 413 | void (*msm_i2c_config_gpio)(int iface, int config_type); |
| 414 | }; |
| 415 | |
| 416 | struct msm_i2c_ssbi_platform_data { |
| 417 | const char *rsl_id; |
| 418 | enum msm_ssbi_controller_type controller_type; |
| 419 | }; |
| 420 | |
| 421 | struct msm_vidc_platform_data { |
| 422 | int memtype; |
Deepak Kotur | cb4f672 | 2011-10-31 14:06:57 -0700 | [diff] [blame] | 423 | u32 enable_ion; |
Deepika Pepakayala | bebc762 | 2011-12-01 15:13:43 -0800 | [diff] [blame] | 424 | int disable_dmx; |
Rajeshwar Kurapaty | c155c35 | 2011-12-17 06:35:32 +0530 | [diff] [blame] | 425 | int disable_fullhd; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 426 | #ifdef CONFIG_MSM_BUS_SCALING |
| 427 | struct msm_bus_scale_pdata *vidc_bus_client_pdata; |
| 428 | #endif |
| 429 | }; |
| 430 | |
| 431 | #if defined(CONFIG_USB_PEHCI_HCD) || defined(CONFIG_USB_PEHCI_HCD_MODULE) |
| 432 | struct isp1763_platform_data { |
| 433 | unsigned reset_gpio; |
| 434 | int (*setup_gpio)(int enable); |
| 435 | }; |
| 436 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 437 | /* common init routines for use by arch/arm/mach-msm/board-*.c */ |
| 438 | |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 439 | #ifdef CONFIG_OF_DEVICE |
| 440 | void msm_copper_init(struct of_dev_auxdata **); |
| 441 | #endif |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 442 | void msm_add_devices(void); |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 443 | void msm_copper_add_devices(void); |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 444 | void msm_map_common_io(void); |
| 445 | void msm_map_qsd8x50_io(void); |
| 446 | void msm_map_msm8x60_io(void); |
| 447 | void msm_map_msm8960_io(void); |
| 448 | void msm_map_msm8930_io(void); |
| 449 | void msm_map_apq8064_io(void); |
| 450 | void msm_map_msm7x30_io(void); |
| 451 | void msm_map_fsm9xxx_io(void); |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 452 | void msm_map_copper_io(void); |
Taniya Das | 43bcdd6 | 2011-12-02 17:33:27 +0530 | [diff] [blame] | 453 | void msm_map_msm8625_io(void); |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 454 | void msm_init_irq(void); |
Sathish Ambley | c58afc2 | 2011-10-09 21:55:39 -0700 | [diff] [blame] | 455 | void msm_copper_init_irq(void); |
Taniya Das | 86e0e13 | 2011-10-19 11:32:00 +0530 | [diff] [blame] | 456 | void vic_handle_irq(struct pt_regs *regs); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 457 | |
| 458 | struct mmc_platform_data; |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 459 | int msm_add_sdcc(unsigned int controller, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 460 | struct mmc_platform_data *plat); |
| 461 | |
| 462 | struct msm_usb_host_platform_data; |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 463 | int msm_add_host(unsigned int host, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 464 | struct msm_usb_host_platform_data *plat); |
| 465 | #if defined(CONFIG_USB_FUNCTION_MSM_HSUSB) \ |
| 466 | || defined(CONFIG_USB_MSM_72K) || defined(CONFIG_USB_MSM_72K_MODULE) |
| 467 | void msm_hsusb_set_vbus_state(int online); |
| 468 | #else |
| 469 | static inline void msm_hsusb_set_vbus_state(int online) {} |
| 470 | #endif |
| 471 | |
Stepan Moskovchenko | b3e6386 | 2011-10-20 18:36:55 -0700 | [diff] [blame] | 472 | void msm_snddev_init(void); |
| 473 | void msm_snddev_init_timpani(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 474 | void msm_snddev_poweramp_on(void); |
| 475 | void msm_snddev_poweramp_off(void); |
| 476 | void msm_snddev_hsed_voltage_on(void); |
| 477 | void msm_snddev_hsed_voltage_off(void); |
| 478 | void msm_snddev_tx_route_config(void); |
| 479 | void msm_snddev_tx_route_deconfig(void); |
| 480 | |
| 481 | extern unsigned int msm_shared_ram_phys; /* defined in arch/arm/mach-msm/io.c */ |
| 482 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 483 | |
| 484 | #endif |