Suresh Vankadara | 8df2c75 | 2012-01-18 00:18:03 +0530 | [diff] [blame^] | 1 | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 14 | #include <asm/mach-types.h> |
| 15 | #include <mach/board.h> |
| 16 | #include <mach/msm_bus_board.h> |
| 17 | #include <mach/gpio.h> |
| 18 | #include <mach/gpiomux.h> |
| 19 | #include "devices.h" |
Stepan Moskovchenko | 5a83dba | 2011-12-05 17:30:17 -0800 | [diff] [blame] | 20 | #include "board-8930.h" |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 21 | |
| 22 | #if (defined(CONFIG_GPIO_SX150X) || defined(CONFIG_GPIO_SX150X_MODULE)) && \ |
| 23 | defined(CONFIG_I2C) |
| 24 | |
| 25 | static struct i2c_board_info cam_expander_i2c_info[] = { |
| 26 | { |
| 27 | I2C_BOARD_INFO("sx1508q", 0x22), |
| 28 | .platform_data = &msm8930_sx150x_data[SX150X_CAM] |
| 29 | }, |
| 30 | }; |
| 31 | |
| 32 | static struct msm_cam_expander_info cam_expander_info[] = { |
| 33 | { |
| 34 | cam_expander_i2c_info, |
| 35 | MSM_8930_GSBI4_QUP_I2C_BUS_ID, |
| 36 | }, |
| 37 | }; |
| 38 | #endif |
| 39 | |
| 40 | static struct gpiomux_setting cam_settings[] = { |
| 41 | { |
| 42 | .func = GPIOMUX_FUNC_GPIO, /*suspend*/ |
| 43 | .drv = GPIOMUX_DRV_2MA, |
| 44 | .pull = GPIOMUX_PULL_DOWN, |
| 45 | }, |
| 46 | |
| 47 | { |
| 48 | .func = GPIOMUX_FUNC_1, /*active 1*/ |
| 49 | .drv = GPIOMUX_DRV_2MA, |
| 50 | .pull = GPIOMUX_PULL_NONE, |
| 51 | }, |
| 52 | |
| 53 | { |
| 54 | .func = GPIOMUX_FUNC_GPIO, /*active 2*/ |
| 55 | .drv = GPIOMUX_DRV_2MA, |
| 56 | .pull = GPIOMUX_PULL_NONE, |
| 57 | }, |
| 58 | |
| 59 | { |
| 60 | .func = GPIOMUX_FUNC_1, /*active 3*/ |
| 61 | .drv = GPIOMUX_DRV_8MA, |
| 62 | .pull = GPIOMUX_PULL_NONE, |
| 63 | }, |
| 64 | |
| 65 | { |
| 66 | .func = GPIOMUX_FUNC_5, /*active 4*/ |
| 67 | .drv = GPIOMUX_DRV_8MA, |
| 68 | .pull = GPIOMUX_PULL_UP, |
| 69 | }, |
| 70 | |
| 71 | { |
| 72 | .func = GPIOMUX_FUNC_6, /*active 5*/ |
| 73 | .drv = GPIOMUX_DRV_8MA, |
| 74 | .pull = GPIOMUX_PULL_UP, |
| 75 | }, |
| 76 | |
| 77 | { |
| 78 | .func = GPIOMUX_FUNC_2, /*active 6*/ |
| 79 | .drv = GPIOMUX_DRV_2MA, |
| 80 | .pull = GPIOMUX_PULL_UP, |
| 81 | }, |
| 82 | |
| 83 | { |
| 84 | .func = GPIOMUX_FUNC_3, /*active 7*/ |
| 85 | .drv = GPIOMUX_DRV_8MA, |
| 86 | .pull = GPIOMUX_PULL_UP, |
| 87 | }, |
| 88 | |
| 89 | { |
| 90 | .func = GPIOMUX_FUNC_GPIO, /*i2c suspend*/ |
| 91 | .drv = GPIOMUX_DRV_2MA, |
| 92 | .pull = GPIOMUX_PULL_KEEPER, |
| 93 | }, |
| 94 | |
| 95 | }; |
| 96 | |
| 97 | |
| 98 | static struct msm_gpiomux_config msm8960_cam_common_configs[] = { |
| 99 | { |
| 100 | .gpio = 2, |
| 101 | .settings = { |
| 102 | [GPIOMUX_ACTIVE] = &cam_settings[2], |
| 103 | [GPIOMUX_SUSPENDED] = &cam_settings[0], |
| 104 | }, |
| 105 | }, |
| 106 | { |
| 107 | .gpio = 3, |
| 108 | .settings = { |
| 109 | [GPIOMUX_ACTIVE] = &cam_settings[1], |
| 110 | [GPIOMUX_SUSPENDED] = &cam_settings[0], |
| 111 | }, |
| 112 | }, |
| 113 | { |
| 114 | .gpio = 4, |
| 115 | .settings = { |
| 116 | [GPIOMUX_ACTIVE] = &cam_settings[1], |
| 117 | [GPIOMUX_SUSPENDED] = &cam_settings[0], |
| 118 | }, |
| 119 | }, |
| 120 | { |
| 121 | .gpio = 5, |
| 122 | .settings = { |
| 123 | [GPIOMUX_ACTIVE] = &cam_settings[1], |
| 124 | [GPIOMUX_SUSPENDED] = &cam_settings[0], |
| 125 | }, |
| 126 | }, |
| 127 | { |
| 128 | .gpio = 76, |
| 129 | .settings = { |
| 130 | [GPIOMUX_ACTIVE] = &cam_settings[2], |
| 131 | [GPIOMUX_SUSPENDED] = &cam_settings[0], |
| 132 | }, |
| 133 | }, |
| 134 | { |
| 135 | .gpio = 107, |
| 136 | .settings = { |
| 137 | [GPIOMUX_ACTIVE] = &cam_settings[2], |
| 138 | [GPIOMUX_SUSPENDED] = &cam_settings[0], |
| 139 | }, |
| 140 | }, |
| 141 | }; |
| 142 | |
| 143 | static struct msm_gpiomux_config msm8960_cam_2d_configs[] = { |
| 144 | { |
| 145 | .gpio = 18, |
| 146 | .settings = { |
| 147 | [GPIOMUX_ACTIVE] = &cam_settings[3], |
| 148 | [GPIOMUX_SUSPENDED] = &cam_settings[8], |
| 149 | }, |
| 150 | }, |
| 151 | { |
| 152 | .gpio = 19, |
| 153 | .settings = { |
| 154 | [GPIOMUX_ACTIVE] = &cam_settings[3], |
| 155 | [GPIOMUX_SUSPENDED] = &cam_settings[8], |
| 156 | }, |
| 157 | }, |
| 158 | { |
| 159 | .gpio = 20, |
| 160 | .settings = { |
| 161 | [GPIOMUX_ACTIVE] = &cam_settings[3], |
| 162 | [GPIOMUX_SUSPENDED] = &cam_settings[8], |
| 163 | }, |
| 164 | }, |
| 165 | { |
| 166 | .gpio = 21, |
| 167 | .settings = { |
| 168 | [GPIOMUX_ACTIVE] = &cam_settings[3], |
| 169 | [GPIOMUX_SUSPENDED] = &cam_settings[8], |
| 170 | }, |
| 171 | }, |
| 172 | }; |
| 173 | |
| 174 | #ifdef CONFIG_MSM_CAMERA |
| 175 | |
| 176 | static uint16_t msm_cam_gpio_2d_tbl[] = { |
| 177 | 5, /*CAMIF_MCLK*/ |
| 178 | 20, /*CAMIF_I2C_DATA*/ |
| 179 | 21, /*CAMIF_I2C_CLK*/ |
| 180 | }; |
| 181 | |
| 182 | static struct msm_camera_gpio_conf gpio_conf = { |
| 183 | .cam_gpiomux_conf_tbl = msm8960_cam_2d_configs, |
| 184 | .cam_gpiomux_conf_tbl_size = ARRAY_SIZE(msm8960_cam_2d_configs), |
| 185 | .cam_gpio_tbl = msm_cam_gpio_2d_tbl, |
| 186 | .cam_gpio_tbl_size = ARRAY_SIZE(msm_cam_gpio_2d_tbl), |
| 187 | }; |
| 188 | |
| 189 | #define VFE_CAMIF_TIMER1_GPIO 2 |
| 190 | #define VFE_CAMIF_TIMER2_GPIO 3 |
| 191 | #define VFE_CAMIF_TIMER3_GPIO_INT 4 |
| 192 | static struct msm_camera_sensor_strobe_flash_data strobe_flash_xenon = { |
| 193 | .flash_trigger = VFE_CAMIF_TIMER2_GPIO, |
| 194 | .flash_charge = VFE_CAMIF_TIMER1_GPIO, |
| 195 | .flash_charge_done = VFE_CAMIF_TIMER3_GPIO_INT, |
| 196 | .flash_recharge_duration = 50000, |
| 197 | .irq = MSM_GPIO_TO_INT(VFE_CAMIF_TIMER3_GPIO_INT), |
| 198 | }; |
| 199 | |
| 200 | #ifdef CONFIG_MSM_CAMERA_FLASH |
| 201 | static struct msm_camera_sensor_flash_src msm_flash_src = { |
| 202 | .flash_sr_type = MSM_CAMERA_FLASH_SRC_EXT, |
| 203 | ._fsrc.ext_driver_src.led_en = GPIO_CAM_GP_LED_EN1, |
| 204 | ._fsrc.ext_driver_src.led_flash_en = GPIO_CAM_GP_LED_EN2, |
| 205 | #if defined(CONFIG_I2C) && (defined(CONFIG_GPIO_SX150X) || \ |
| 206 | defined(CONFIG_GPIO_SX150X_MODULE)) |
| 207 | ._fsrc.ext_driver_src.expander_info = cam_expander_info, |
| 208 | #endif |
| 209 | }; |
| 210 | #endif |
| 211 | |
| 212 | static struct msm_bus_vectors cam_init_vectors[] = { |
| 213 | { |
| 214 | .src = MSM_BUS_MASTER_VFE, |
| 215 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 216 | .ab = 0, |
| 217 | .ib = 0, |
| 218 | }, |
| 219 | { |
| 220 | .src = MSM_BUS_MASTER_VPE, |
| 221 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 222 | .ab = 0, |
| 223 | .ib = 0, |
| 224 | }, |
| 225 | { |
| 226 | .src = MSM_BUS_MASTER_JPEG_ENC, |
| 227 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 228 | .ab = 0, |
| 229 | .ib = 0, |
| 230 | }, |
| 231 | }; |
| 232 | |
| 233 | static struct msm_bus_vectors cam_preview_vectors[] = { |
| 234 | { |
| 235 | .src = MSM_BUS_MASTER_VFE, |
| 236 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 237 | .ab = 27648000, |
| 238 | .ib = 110592000, |
| 239 | }, |
| 240 | { |
| 241 | .src = MSM_BUS_MASTER_VPE, |
| 242 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 243 | .ab = 0, |
| 244 | .ib = 0, |
| 245 | }, |
| 246 | { |
| 247 | .src = MSM_BUS_MASTER_JPEG_ENC, |
| 248 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 249 | .ab = 0, |
| 250 | .ib = 0, |
| 251 | }, |
| 252 | }; |
| 253 | |
| 254 | static struct msm_bus_vectors cam_video_vectors[] = { |
| 255 | { |
| 256 | .src = MSM_BUS_MASTER_VFE, |
| 257 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 258 | .ab = 140451840, |
| 259 | .ib = 561807360, |
| 260 | }, |
| 261 | { |
| 262 | .src = MSM_BUS_MASTER_VPE, |
| 263 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 264 | .ab = 206807040, |
| 265 | .ib = 488816640, |
| 266 | }, |
| 267 | { |
| 268 | .src = MSM_BUS_MASTER_JPEG_ENC, |
| 269 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 270 | .ab = 0, |
| 271 | .ib = 0, |
| 272 | }, |
| 273 | }; |
| 274 | |
| 275 | static struct msm_bus_vectors cam_snapshot_vectors[] = { |
| 276 | { |
| 277 | .src = MSM_BUS_MASTER_VFE, |
| 278 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 279 | .ab = 274423680, |
| 280 | .ib = 1097694720, |
| 281 | }, |
| 282 | { |
| 283 | .src = MSM_BUS_MASTER_VPE, |
| 284 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 285 | .ab = 0, |
| 286 | .ib = 0, |
| 287 | }, |
| 288 | { |
| 289 | .src = MSM_BUS_MASTER_JPEG_ENC, |
| 290 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 291 | .ab = 540000000, |
| 292 | .ib = 1350000000, |
| 293 | }, |
| 294 | }; |
| 295 | |
| 296 | static struct msm_bus_vectors cam_zsl_vectors[] = { |
| 297 | { |
| 298 | .src = MSM_BUS_MASTER_VFE, |
| 299 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 300 | .ab = 302071680, |
| 301 | .ib = 1208286720, |
| 302 | }, |
| 303 | { |
| 304 | .src = MSM_BUS_MASTER_VPE, |
| 305 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 306 | .ab = 0, |
| 307 | .ib = 0, |
| 308 | }, |
| 309 | { |
| 310 | .src = MSM_BUS_MASTER_JPEG_ENC, |
| 311 | .dst = MSM_BUS_SLAVE_EBI_CH0, |
| 312 | .ab = 540000000, |
| 313 | .ib = 1350000000, |
| 314 | }, |
| 315 | }; |
| 316 | |
| 317 | static struct msm_bus_paths cam_bus_client_config[] = { |
| 318 | { |
| 319 | ARRAY_SIZE(cam_init_vectors), |
| 320 | cam_init_vectors, |
| 321 | }, |
| 322 | { |
| 323 | ARRAY_SIZE(cam_preview_vectors), |
| 324 | cam_preview_vectors, |
| 325 | }, |
| 326 | { |
| 327 | ARRAY_SIZE(cam_video_vectors), |
| 328 | cam_video_vectors, |
| 329 | }, |
| 330 | { |
| 331 | ARRAY_SIZE(cam_snapshot_vectors), |
| 332 | cam_snapshot_vectors, |
| 333 | }, |
| 334 | { |
| 335 | ARRAY_SIZE(cam_zsl_vectors), |
| 336 | cam_zsl_vectors, |
| 337 | }, |
| 338 | }; |
| 339 | |
| 340 | static struct msm_bus_scale_pdata cam_bus_client_pdata = { |
| 341 | cam_bus_client_config, |
| 342 | ARRAY_SIZE(cam_bus_client_config), |
| 343 | .name = "msm_camera", |
| 344 | }; |
| 345 | |
| 346 | static struct msm_camera_device_platform_data msm_camera_csi_device_data[] = { |
| 347 | { |
| 348 | .ioclk.mclk_clk_rate = 24000000, |
| 349 | .ioclk.vfe_clk_rate = 228570000, |
| 350 | .csid_core = 0, |
Suresh Vankadara | 8df2c75 | 2012-01-18 00:18:03 +0530 | [diff] [blame^] | 351 | .is_csiphy = 1, |
| 352 | .is_csid = 1, |
| 353 | .is_ispif = 1, |
| 354 | .is_vpe = 1, |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 355 | .cam_bus_scale_table = &cam_bus_client_pdata, |
| 356 | }, |
| 357 | { |
| 358 | .ioclk.mclk_clk_rate = 24000000, |
| 359 | .ioclk.vfe_clk_rate = 228570000, |
| 360 | .csid_core = 1, |
Suresh Vankadara | 8df2c75 | 2012-01-18 00:18:03 +0530 | [diff] [blame^] | 361 | .is_csiphy = 1, |
| 362 | .is_csid = 1, |
| 363 | .is_ispif = 1, |
| 364 | .is_vpe = 1, |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 365 | .cam_bus_scale_table = &cam_bus_client_pdata, |
| 366 | }, |
| 367 | }; |
| 368 | |
| 369 | #ifdef CONFIG_IMX074_ACT |
| 370 | static struct i2c_board_info imx074_actuator_i2c_info = { |
| 371 | I2C_BOARD_INFO("imx074_act", 0x11), |
| 372 | }; |
| 373 | |
| 374 | static struct msm_actuator_info imx074_actuator_info = { |
| 375 | .board_info = &imx074_actuator_i2c_info, |
| 376 | .bus_id = MSM_8930_GSBI4_QUP_I2C_BUS_ID, |
| 377 | .vcm_pwd = 0, |
| 378 | .vcm_enable = 1, |
| 379 | }; |
| 380 | #endif |
| 381 | |
| 382 | #ifdef CONFIG_IMX074 |
| 383 | static struct msm_camera_sensor_flash_data flash_imx074 = { |
| 384 | .flash_type = MSM_CAMERA_FLASH_LED, |
| 385 | #ifdef CONFIG_MSM_CAMERA_FLASH |
| 386 | .flash_src = &msm_flash_src |
| 387 | #endif |
| 388 | }; |
| 389 | |
| 390 | static struct msm_camera_sensor_platform_info sensor_board_info_imx074 = { |
| 391 | .mount_angle = 90, |
| 392 | .sensor_reset = 107, |
| 393 | .sensor_pwd = 85, |
| 394 | .vcm_pwd = 0, |
| 395 | .vcm_enable = 1, |
| 396 | }; |
| 397 | |
| 398 | static struct msm_camera_sensor_info msm_camera_sensor_imx074_data = { |
| 399 | .sensor_name = "imx074", |
| 400 | .pdata = &msm_camera_csi_device_data[0], |
| 401 | .flash_data = &flash_imx074, |
| 402 | .strobe_flash_data = &strobe_flash_xenon, |
| 403 | .sensor_platform_info = &sensor_board_info_imx074, |
| 404 | .gpio_conf = &gpio_conf, |
| 405 | .csi_if = 1, |
| 406 | .camera_type = BACK_CAMERA_2D, |
| 407 | #ifdef CONFIG_IMX074_ACT |
| 408 | .actuator_info = &imx074_actuator_info |
| 409 | #endif |
| 410 | }; |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 411 | #endif |
Sreesudhan Ramakrish Ramkumar | bc5f5b8 | 2011-12-28 17:10:30 -0800 | [diff] [blame] | 412 | |
| 413 | #ifdef CONFIG_MT9M114 |
| 414 | static struct msm_camera_sensor_flash_data flash_mt9m114 = { |
| 415 | .flash_type = MSM_CAMERA_FLASH_NONE |
| 416 | }; |
| 417 | |
| 418 | static struct msm_camera_sensor_platform_info sensor_board_info_mt9m114 = { |
| 419 | .mount_angle = 90, |
| 420 | .sensor_reset = 107, |
| 421 | }; |
| 422 | |
| 423 | static struct msm_camera_sensor_info msm_camera_sensor_mt9m114_data = { |
| 424 | .sensor_name = "mt9m114", |
| 425 | .pdata = &msm_camera_csi_device_data[0], |
| 426 | .flash_data = &flash_mt9m114, |
| 427 | .sensor_platform_info = &sensor_board_info_mt9m114, |
| 428 | .gpio_conf = &gpio_conf, |
| 429 | .csi_if = 1, |
| 430 | .camera_type = BACK_CAMERA_2D, |
| 431 | }; |
| 432 | #endif |
| 433 | |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 434 | #ifdef CONFIG_OV2720 |
| 435 | static struct msm_camera_sensor_flash_data flash_ov2720 = { |
| 436 | .flash_type = MSM_CAMERA_FLASH_NONE, |
| 437 | }; |
| 438 | |
| 439 | static struct msm_camera_sensor_platform_info sensor_board_info_ov2720 = { |
| 440 | .mount_angle = 0, |
| 441 | .sensor_reset = 76, |
| 442 | .sensor_pwd = 85, |
| 443 | .vcm_pwd = 0, |
| 444 | .vcm_enable = 1, |
| 445 | }; |
| 446 | |
| 447 | static struct msm_camera_sensor_info msm_camera_sensor_ov2720_data = { |
| 448 | .sensor_name = "ov2720", |
| 449 | .pdata = &msm_camera_csi_device_data[1], |
| 450 | .flash_data = &flash_ov2720, |
| 451 | .sensor_platform_info = &sensor_board_info_ov2720, |
| 452 | .gpio_conf = &gpio_conf, |
| 453 | .csi_if = 1, |
| 454 | .camera_type = FRONT_CAMERA_2D, |
| 455 | }; |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 456 | #endif |
| 457 | |
| 458 | void __init msm8930_init_cam(void) |
| 459 | { |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 460 | msm_gpiomux_install(msm8960_cam_common_configs, |
| 461 | ARRAY_SIZE(msm8960_cam_common_configs)); |
| 462 | |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 463 | platform_device_register(&msm8960_device_csiphy0); |
| 464 | platform_device_register(&msm8960_device_csiphy1); |
| 465 | platform_device_register(&msm8960_device_csid0); |
| 466 | platform_device_register(&msm8960_device_csid1); |
| 467 | platform_device_register(&msm8960_device_ispif); |
| 468 | platform_device_register(&msm8960_device_vfe); |
| 469 | platform_device_register(&msm8960_device_vpe); |
| 470 | } |
Kevin Chan | 09f4e66 | 2011-12-16 08:17:02 -0800 | [diff] [blame] | 471 | |
| 472 | #ifdef CONFIG_I2C |
| 473 | struct i2c_board_info msm8930_camera_i2c_boardinfo[] = { |
| 474 | #ifdef CONFIG_IMX074 |
| 475 | { |
| 476 | I2C_BOARD_INFO("imx074", 0x1A), |
| 477 | .platform_data = &msm_camera_sensor_imx074_data, |
| 478 | }, |
| 479 | #endif |
| 480 | #ifdef CONFIG_OV2720 |
| 481 | { |
| 482 | I2C_BOARD_INFO("ov2720", 0x6C), |
| 483 | .platform_data = &msm_camera_sensor_ov2720_data, |
| 484 | }, |
| 485 | #endif |
Sreesudhan Ramakrish Ramkumar | bc5f5b8 | 2011-12-28 17:10:30 -0800 | [diff] [blame] | 486 | { |
| 487 | I2C_BOARD_INFO("mt9m114", 0x48), |
| 488 | .platform_data = &msm_camera_sensor_mt9m114_data, |
| 489 | }, |
Kevin Chan | 09f4e66 | 2011-12-16 08:17:02 -0800 | [diff] [blame] | 490 | #ifdef CONFIG_MSM_CAMERA_FLASH_SC628A |
| 491 | { |
| 492 | I2C_BOARD_INFO("sc628a", 0x6E), |
| 493 | }, |
| 494 | #endif |
| 495 | }; |
| 496 | |
| 497 | struct msm_camera_board_info msm8930_camera_board_info = { |
| 498 | .board_info = msm8930_camera_i2c_boardinfo, |
| 499 | .num_i2c_board_info = ARRAY_SIZE(msm8930_camera_i2c_boardinfo), |
| 500 | }; |
| 501 | #endif |
Stepan Moskovchenko | 39236d7 | 2011-11-30 17:42:23 -0800 | [diff] [blame] | 502 | #endif |