static int mipi_dsi_panel_msm_power(int on) { int rc = 0; uint32_t lcdc_reset_cfg; /* I2C-controlled GPIO Expander -init of the GPIOs very late */ if (unlikely(!dsi_gpio_initialized)) { pmapp_disp_backlight_init(); rc = gpio_request(GPIO_DISPLAY_PWR_EN, "gpio_disp_pwr"); if (rc < 0) { pr_err("failed to request gpio_disp_pwr\n"); return rc; } if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { rc = gpio_direction_output(GPIO_DISPLAY_PWR_EN, 1); if (rc < 0) { pr_err("failed to enable display pwr\n"); goto fail_gpio1; } rc = gpio_request(GPIO_BACKLIGHT_EN, "gpio_bkl_en"); if (rc < 0) { pr_err("failed to request gpio_bkl_en\n"); goto fail_gpio1; } rc = gpio_direction_output(GPIO_BACKLIGHT_EN, 1); if (rc < 0) { pr_err("failed to enable backlight\n"); goto fail_gpio2; } } rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); goto fail_gpio2; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); goto fail_vreg; } if (pmapp_disp_backlight_set_brightness(100)) pr_err("backlight set brightness failed\n"); dsi_gpio_initialized = 1; } if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, on); gpio_set_value_cansleep(GPIO_BACKLIGHT_EN, on); } else if (machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa() || machine_is_msm8625_ffa()) { if (on) { /* This line drives an active low pin on FFA */ rc = gpio_direction_output(GPIO_DISPLAY_PWR_EN, !on); if (rc < 0) pr_err("failed to set direction for " "display pwr\n"); } else { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, !on); rc = gpio_direction_input(GPIO_DISPLAY_PWR_EN); if (rc < 0) pr_err("failed to set direction for " "display pwr\n"); } } if (on) { gpio_set_value_cansleep(GPIO_LCDC_BRDG_PD, 0); if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { lcdc_reset_cfg = readl_relaxed(lcdc_reset_ptr); rmb(); lcdc_reset_cfg &= ~1; writel_relaxed(lcdc_reset_cfg, lcdc_reset_ptr); msleep(20); wmb(); lcdc_reset_cfg |= 1; writel_relaxed(lcdc_reset_cfg, lcdc_reset_ptr); msleep(20); } else { gpio_set_value_cansleep(GPIO_LCDC_BRDG_RESET_N, 0); msleep(20); gpio_set_value_cansleep(GPIO_LCDC_BRDG_RESET_N, 1); msleep(20); } } else { gpio_set_value_cansleep(GPIO_LCDC_BRDG_PD, 1); } rc = on ? regulator_bulk_enable(ARRAY_SIZE(regs_dsi), regs_dsi) : regulator_bulk_disable(ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) pr_err("%s: could not %sable regulators: %d\n", __func__, on ? "en" : "dis", rc); return rc; fail_vreg: regulator_bulk_free(ARRAY_SIZE(regs_dsi), regs_dsi); fail_gpio2: gpio_free(GPIO_BACKLIGHT_EN); fail_gpio1: gpio_free(GPIO_DISPLAY_PWR_EN); dsi_gpio_initialized = 0; return rc; }
static void __init msm7x27a_init_cam(void) { #ifdef CONFIG_HI351 struct msm_camera_sensor_info *s_info; #endif #ifdef CONFIG_T4K28 struct msm_camera_sensor_info *s_info; #endif if (!(machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa() || machine_is_msm7627a_qrd1() || machine_is_msm8625_ffa())) { #ifdef CONFIG_MACH_LGE #ifdef CONFIG_HI351 sensor_board_info_hi351.cam_vreg = NULL; sensor_board_info_hi351.num_vreg = 0; s_info = &msm_camera_sensor_hi351_data; s_info->sensor_platform_info->ext_power_ctrl = msm_camera_7x27a_ext_power_ctrl; #endif #ifdef CONFIG_T4K28 sensor_board_info_t4k28.cam_vreg = NULL; sensor_board_info_t4k28.num_vreg = 0; s_info = &msm_camera_sensor_t4k28_data; s_info->sensor_platform_info->ext_power_ctrl = msm_camera_7x27a_ext_power_ctrl; #endif #else sensor_board_info_s5k4e1.cam_vreg = NULL; sensor_board_info_s5k4e1.num_vreg = 0; sensor_board_info_mt9e013.cam_vreg = NULL; sensor_board_info_mt9e013.num_vreg = 0; sensor_board_info_ov9726.cam_vreg = NULL; sensor_board_info_ov9726.num_vreg = 0; sensor_board_info_ov7692.cam_vreg = NULL; sensor_board_info_ov7692.num_vreg = 0; sensor_board_info_ov5647.cam_vreg = NULL; sensor_board_info_ov5647.num_vreg = 0; sensor_board_info_ov8825.cam_vreg = NULL; sensor_board_info_ov8825.num_vreg = 0; #endif } #ifndef CONFIG_MACH_LGE if (machine_is_msm8625_evb() || machine_is_msm8625_evt()) { sensor_board_info_ov7692.cam_vreg = ov7692_gpio_vreg; sensor_board_info_ov7692.num_vreg = ARRAY_SIZE(ov7692_gpio_vreg); sensor_board_info_ov5647.cam_vreg = ov5647_gpio_vreg; sensor_board_info_ov5647.num_vreg = ARRAY_SIZE(ov5647_gpio_vreg); sensor_board_info_ov8825.cam_vreg = ov8825_gpio_vreg; sensor_board_info_ov8825.num_vreg = ARRAY_SIZE(ov8825_gpio_vreg); } #endif /* */ platform_device_register(&msm_camera_server); #if 0 if (machine_is_msm8625_surf() || machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm8625_qrd7()) { platform_device_register(&msm8625_device_csic0); platform_device_register(&msm8625_device_csic1); } else { platform_device_register(&msm7x27a_device_csic0); platform_device_register(&msm7x27a_device_csic1); } #else platform_device_register(&msm7x27a_device_csic0); platform_device_register(&msm7x27a_device_csic1); #endif if (machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm8625_qrd7()) *(int *) msm7x27a_device_clkctl.dev.platform_data = 1; platform_device_register(&msm7x27a_device_clkctl); platform_device_register(&msm7x27a_device_vfe); }
static void __init msm7x27a_init_cam(void) { if (!(machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa() || machine_is_msm7627a_qrd1() || machine_is_msm8625_ffa())) { /*MTD-MM-SL-ImproveFrontCamera-00*{ */ /*MTD-MM-SL-CameraPorting-00*{ */ #ifndef CONFIG_FIH_CAMERA sensor_board_info_s5k4e1.cam_vreg = NULL; sensor_board_info_s5k4e1.num_vreg = 0; sensor_board_info_mt9e013.cam_vreg = NULL; sensor_board_info_mt9e013.num_vreg = 0; sensor_board_info_ov9726.cam_vreg = NULL; sensor_board_info_ov9726.num_vreg = 0; sensor_board_info_ov7692.cam_vreg = NULL; sensor_board_info_ov7692.num_vreg = 0; sensor_board_info_ov5647.cam_vreg = NULL; sensor_board_info_ov5647.num_vreg = 0; sensor_board_info_ov8825.cam_vreg = NULL; sensor_board_info_ov8825.num_vreg = 0; #else #ifdef CONFIG_ISX006 sensor_board_info_isx006.cam_vreg = NULL; sensor_board_info_isx006.num_vreg = 0; #endif #endif /*MTD-MM-SL-CameraPorting-00*} */ /*MTD-MM-SL-ImproveFrontCamera-00*} */ } if (machine_is_msm8625_evb() || machine_is_msm8625_evt()) { #ifndef CONFIG_FIH_CAMERA sensor_board_info_ov7692.cam_vreg = ov7692_gpio_vreg; sensor_board_info_ov7692.num_vreg = ARRAY_SIZE(ov7692_gpio_vreg); sensor_board_info_ov5647.cam_vreg = ov5647_gpio_vreg; sensor_board_info_ov5647.num_vreg = ARRAY_SIZE(ov5647_gpio_vreg); sensor_board_info_ov8825.cam_vreg = ov8825_gpio_vreg; sensor_board_info_ov8825.num_vreg = ARRAY_SIZE(ov8825_gpio_vreg); #endif } platform_device_register(&msm_camera_server); if (machine_is_msm8625_surf() || machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm8625_qrd7()) { platform_device_register(&msm8625_device_csic0); platform_device_register(&msm8625_device_csic1); } else { platform_device_register(&msm7x27a_device_csic0); platform_device_register(&msm7x27a_device_csic1); } if (machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm8625_qrd7()) *(int *) msm7x27a_device_clkctl.dev.platform_data = 1; platform_device_register(&msm7x27a_device_clkctl); platform_device_register(&msm7x27a_device_vfe); }
static int msm_fb_detect_panel(const char *name) { int ret = -ENODEV; if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { if (!strncmp(name, "lcdc_toshiba_fwvga_pt", 21) || !strncmp(name, "mipi_cmd_renesas_fwvga", 22)) ret = 0; } else if (machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa() || machine_is_msm8625_ffa()) { if (!strncmp(name, "mipi_cmd_renesas_fwvga", 22)) ret = 0; } else if (machine_is_msm7627a_qrd1()) { if (!strncmp(name, "mipi_video_truly_wvga", 21)) ret = 0; } else if (machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) { if (!strncmp(name, "lcdc_truly_hvga_ips3p2335_pt", 28)) ret = 0; } else if (machine_is_msm7627a_evb() || machine_is_msm8625_evb() || machine_is_msm8625_qrd5() || machine_is_msm7x27a_qrd5a()) { if (cont_splash_enabled == 1) { #if defined CONFIG_FB_MSM_MIPI_TCL_TD_TNFW4602_2_VIDEO_MODE if (!strncmp(name, LCD_MODULE_NAME, strlen(LCD_MODULE_NAME))) #else if (!strncmp(name, "mipi_cmd_nt35510_wvga", 21)) #endif ret = 0; } else if (cont_splash_enabled == 2) { #if defined CONFIG_FB_MSM_MIPI_TCL_TD_TNFW4602_2_VIDEO_MODE if (!strncmp(name, LCD_MODULE_NAME, strlen(LCD_MODULE_NAME))) #else if (!strncmp(name, "mipi_cmd_nt35510_wvga", 21)) #endif ret = 0; } else { #if defined CONFIG_FB_MSM_MIPI_TCL_TD_TNFW4602_2_VIDEO_MODE if (!strncmp(name, LCD_MODULE_NAME, strlen(LCD_MODULE_NAME))) #else if (!strncmp(name, "mipi_cmd_nt35510_wvga", 21)) #endif ret = 0; } } else if (machine_is_msm8625_skua()) { if (!strncmp(name, "mipi_video_himax_wvga", 21) && skua_panel_is_himax()) ret = 0; else if (!strncmp(name, "mipi_cmd_nt35510_alaska_wvga", 28) && !skua_panel_is_himax()) ret = 0; } else if (machine_is_msm8625_evt()) { if (!strncmp(name, "mipi_video_nt35510_wvga", 23)) ret = 0; } #if !defined(CONFIG_FB_MSM_LCDC_AUTO_DETECT) && \ !defined(CONFIG_FB_MSM_MIPI_PANEL_AUTO_DETECT) && \ !defined(CONFIG_FB_MSM_LCDC_MIPI_PANEL_AUTO_DETECT) if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { if (!strncmp(name, LCDC_TOSHIBA_FWVGA_PANEL_NAME, strnlen(LCDC_TOSHIBA_FWVGA_PANEL_NAME, PANEL_NAME_MAX_LEN))) return 0; } #endif return ret; }
static int mipi_dsi_panel_msm_power(int on) { /*++ Huize - 20120927 Modify for identifying what the code is used by customization ++*/ #ifdef DISPLAY_CUSTOMIZATION int rc = 0; if (unlikely(!dsi_gpio_initialized)) { pr_emerg("%s\n", __func__); #ifndef CONFIG_LEDS_CHIP_LM3533 rc = gpio_request(GPIO_BACKLIGHT_EN, "gpio_bl_en"); if (rc < 0) { pr_err("failed to request gpio_bl_en\n"); return rc; } rc = gpio_tlmm_config( GPIO_CFG(GPIO_BACKLIGHT_EN,0, GPIO_CFG_OUTPUT, GPIO_CFG_NO_PULL, GPIO_CFG_2MA), GPIO_CFG_ENABLE); #endif if (rc) { pr_err("Failed to enable gpio_bl_en\n"); goto fail_gpio1; } rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); goto fail_gpio2; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); goto fail_vreg; } dsi_gpio_initialized = 1; } #else int rc = 0; uint32_t lcdc_reset_cfg; /* I2C-controlled GPIO Expander -init of the GPIOs very late */ if (unlikely(!dsi_gpio_initialized)) { pmapp_disp_backlight_init(); rc = gpio_request(GPIO_DISPLAY_PWR_EN, "gpio_disp_pwr"); if (rc < 0) { pr_err("failed to request gpio_disp_pwr\n"); return rc; } if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { rc = gpio_direction_output(GPIO_DISPLAY_PWR_EN, 1); if (rc < 0) { pr_err("failed to enable display pwr\n"); goto fail_gpio1; } rc = gpio_request(GPIO_BACKLIGHT_EN, "gpio_bkl_en"); if (rc < 0) { pr_err("failed to request gpio_bkl_en\n"); goto fail_gpio1; } rc = gpio_direction_output(GPIO_BACKLIGHT_EN, 1); if (rc < 0) { pr_err("failed to enable backlight\n"); goto fail_gpio2; } } rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); goto fail_gpio2; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); goto fail_vreg; } if (pmapp_disp_backlight_set_brightness(100)) pr_err("backlight set brightness failed\n"); dsi_gpio_initialized = 1; } if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, on); gpio_set_value_cansleep(GPIO_BACKLIGHT_EN, on); } else if (machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa() || machine_is_msm8625_ffa()) { if (on) { /* This line drives an active low pin on FFA */ rc = gpio_direction_output(GPIO_DISPLAY_PWR_EN, !on); if (rc < 0) pr_err("failed to set direction for " "display pwr\n"); } else { gpio_set_value_cansleep(GPIO_DISPLAY_PWR_EN, !on); rc = gpio_direction_input(GPIO_DISPLAY_PWR_EN); if (rc < 0) pr_err("failed to set direction for " "display pwr\n"); } } if (on) { gpio_set_value_cansleep(GPIO_LCDC_BRDG_PD, 0); if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { lcdc_reset_cfg = readl_relaxed(lcdc_reset_ptr); rmb(); lcdc_reset_cfg &= ~1; writel_relaxed(lcdc_reset_cfg, lcdc_reset_ptr); msleep(20); wmb(); lcdc_reset_cfg |= 1; writel_relaxed(lcdc_reset_cfg, lcdc_reset_ptr); } else { gpio_set_value_cansleep(GPIO_LCDC_BRDG_RESET_N, 0); msleep(20); gpio_set_value_cansleep(GPIO_LCDC_BRDG_RESET_N, 1); } } else { gpio_set_value_cansleep(GPIO_LCDC_BRDG_PD, 1); } #endif /*-- Huize - 20120927 Modify for identifying what the code is used by customization --*/ rc = on ? regulator_bulk_enable(ARRAY_SIZE(regs_dsi), regs_dsi) : regulator_bulk_disable(ARRAY_SIZE(regs_dsi), regs_dsi); if (rc) pr_err("%s: could not %sable regulators: %d\n", __func__, on ? "en" : "dis", rc); return rc; fail_vreg: regulator_bulk_free(ARRAY_SIZE(regs_dsi), regs_dsi); fail_gpio2: gpio_free(GPIO_BACKLIGHT_EN); fail_gpio1: //Jordan-20111230 , remove // gpio_free(GPIO_DISPLAY_PWR_EN); dsi_gpio_initialized = 0; return rc; }
/* FIH-SW-MM-VH-DISPLAY-JB00*[ */ static int msm_fb_dsi_client_msm_reset(int hold) { int rc = 0; static int dsi_reset_initialized = 0; printk(KERN_INFO "[DISPLAY]%s: E, hold <%d>\n", __func__, hold); if (dsi_reset_initialized == 0) { rc = gpio_request(GPIO_LCM_RESET, "gpio_disp_pwr"); if (rc < 0) { pr_err("[DISPLAY] %s: Failed to request lcm_reset, rc <%d>\n", __func__, rc); //return rc; } rc = gpio_tlmm_config(GPIO_CFG(GPIO_LCM_RESET, 0, GPIO_CFG_OUTPUT, GPIO_CFG_NO_PULL, GPIO_CFG_2MA), GPIO_CFG_ENABLE); if (unlikely(fih_get_product_phase() < Phase_SP2)) { printk(KERN_ALERT "[DISPLAY]%s: <%d> < SP2\n", __func__, fih_get_product_phase()); rc = gpio_request(GPIO_LCM_BKL_EN, "lcm_bkl_en"); if (rc < 0) { pr_err("[DISPLAY] %s: Failed to request lcm_bkl_en\n", __func__); //goto gpio_error; } rc = gpio_tlmm_config(GPIO_CFG(GPIO_LCM_BKL_EN, 0, GPIO_CFG_OUTPUT, GPIO_CFG_PULL_DOWN, GPIO_CFG_2MA), GPIO_CFG_ENABLE); if (rc < 0) { pr_err("[DISPLAY] %s: Failed lcm_bkl_en enable\n", __func__); //goto gpio_error2; } } dsi_reset_initialized = 1; } if (hold) { gpio_direction_output(GPIO_LCM_RESET, 0); } else { rc |= gpio_direction_output(GPIO_LCM_RESET, 1); msleep(5); rc |= gpio_direction_output(GPIO_LCM_RESET, 0); msleep(5); rc |= gpio_direction_output(GPIO_LCM_RESET, 1); } msleep(150); #if 0 if (!rc) { if (machine_is_msm7x27a_surf() || machine_is_msm7625a_surf() || machine_is_msm8625_surf()) { lcdc_reset_ptr = ioremap_nocache(LCDC_RESET_PHYS, sizeof(uint32_t)); printk(KERN_ERR "[DISPLAY]%s: surf\n", __func__); if (!lcdc_reset_ptr) return 0; } printk(KERN_ERR "[DISPLAY]%s: X, rc <%d>\n", __func__, rc); return rc; } else { //goto gpio_error; } #endif #if 0 gpio_error2: pr_err("Failed GPIO bridge pd\n"); gpio_free(GPIO_LCDC_BRDG_PD); gpio_error: pr_err("Failed GPIO bridge reset\n"); gpio_free(GPIO_LCDC_BRDG_RESET_N); #endif printk(KERN_INFO "[DISPLAY]%s: X, rc <%d>\n", __func__, rc); return rc; }
/* FIH-SW-MM-VH-DISPLAY-JB00*[ */ void __init msm_fb_add_devices(void) { /* int rc = 0; */ msm7x27a_set_display_params(prim_panel_name); if (machine_is_msm7627a_qrd1()) platform_add_devices(qrd_fb_devices, ARRAY_SIZE(qrd_fb_devices)); else if (machine_is_msm7627a_evb() || machine_is_msm8625_evb() || machine_is_msm8625_evt()) { mipi_NT35510_pdata.bl_lock = 1; mipi_NT35516_pdata.bl_lock = 1; if (disable_splash) mdp_pdata.cont_splash_enabled = 0x0; platform_add_devices(evb_fb_devices, ARRAY_SIZE(evb_fb_devices)); } else if (machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) { sku3_lcdc_lcd_camera_power_init(); mdp_pdata.cont_splash_enabled = 0x0; platform_add_devices(qrd3_fb_devices, ARRAY_SIZE(qrd3_fb_devices)); } else { mdp_pdata.cont_splash_enabled = 0x0; platform_add_devices(msm_fb_devices, ARRAY_SIZE(msm_fb_devices)); } msm_fb_register_device("mdp", &mdp_pdata); if (0){ if (machine_is_msm7625a_surf() || machine_is_msm7x27a_surf() || machine_is_msm8625_surf() || machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) msm_fb_register_device("lcdc", &lcdc_pdata); } #ifdef CONFIG_FB_MSM_MIPI_DSI msm_fb_register_device("mipi_dsi", &mipi_dsi_pdata); #endif #if 0 if (machine_is_msm7627a_evb() || machine_is_msm8625_evb() || machine_is_msm8625_evt()) { gpio_reg_2p85v = regulator_get(&mipi_dsi_device.dev, "lcd_vdd"); if (IS_ERR(gpio_reg_2p85v)) pr_err("%s:ext_2p85v regulator get failed", __func__); gpio_reg_1p8v = regulator_get(&mipi_dsi_device.dev, "lcd_vddi"); if (IS_ERR(gpio_reg_1p8v)) pr_err("%s:ext_1p8v regulator get failed", __func__); if (mdp_pdata.cont_splash_enabled) { /*Enable EXT_2.85 and 1.8 regulators*/ rc = regulator_enable(gpio_reg_2p85v); if (rc < 0) pr_err("%s: reg enable failed\n", __func__); rc = regulator_enable(gpio_reg_1p8v); if (rc < 0) pr_err("%s: reg enable failed\n", __func__); } } #endif }
static void __init msm7x27a_init_cam(void) { if (!(machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa() || machine_is_msm7627a_qrd1() || machine_is_msm8625_ffa())) { /* LGE_CHANGE_S: 2012/11/2 [email protected] U0 Camera Bring Up */ #ifdef CONFIG_MACH_LGE #ifdef CONFIG_HI542 sensor_board_info_hi542.cam_vreg = NULL; sensor_board_info_hi542.num_vreg = 0; #endif #ifdef CONFIG_MT9E013_LGIT mt9e013_lgit_sensor_info.cam_vreg = NULL; mt9e013_lgit_sensor_info.num_vreg = 0; #endif #ifdef CONFIG_MT9V113 sensor_board_info_mt9v113.cam_vreg = NULL; sensor_board_info_mt9v113.num_vreg = 0; #endif #else #ifdef CONFIG_S5K4E1 sensor_board_info_s5k4e1.cam_vreg = NULL; sensor_board_info_s5k4e1.num_vreg = 0; #endif #ifdef CONFIG_MT9E013 sensor_board_info_mt9e013.cam_vreg = NULL; sensor_board_info_mt9e013.num_vreg = 0; #endif #ifdef CONFIG_WEBCAM_OV9726 sensor_board_info_ov9726.cam_vreg = NULL; sensor_board_info_ov9726.num_vreg = 0; #endif #ifdef CONFIG_OV7692 sensor_board_info_ov7692.cam_vreg = NULL; sensor_board_info_ov7692.num_vreg = 0; #endif #ifdef CONFIG_OV5647 sensor_board_info_ov5647.cam_vreg = NULL; sensor_board_info_ov5647.num_vreg = 0; #endif sensor_board_info_ov8825.cam_vreg = NULL; sensor_board_info_ov8825.num_vreg = 0; #endif /* LGE_CHANGE_E: 2012/11/2 [email protected] U0 Camera Bring Up */ } if (machine_is_msm8625_evb() || machine_is_msm8625_evt()) { #ifdef CONFIG_OV7692 sensor_board_info_ov7692.cam_vreg = ov7692_gpio_vreg; sensor_board_info_ov7692.num_vreg = ARRAY_SIZE(ov7692_gpio_vreg); #endif #ifdef CONFIG_OV5647 sensor_board_info_ov5647.cam_vreg = ov5647_gpio_vreg; sensor_board_info_ov5647.num_vreg = ARRAY_SIZE(ov5647_gpio_vreg); #endif /* LGE_CHANGE_S: 2012/11/2 [email protected] U0 Camera Bring Up */ #ifndef CONFIG_MACH_LGE sensor_board_info_ov8825.cam_vreg = ov8825_gpio_vreg; sensor_board_info_ov8825.num_vreg = ARRAY_SIZE(ov8825_gpio_vreg); #endif /* LGE_CHANGE_E: 2012/11/2 [email protected] U0 Camera Bring Up */ } platform_device_register(&msm_camera_server); /* LGE_CHANGE_S: 2012/11/2 [email protected] U0 Camera Bring Up */ #ifndef CONFIG_MACH_LGE if (machine_is_msm8625_surf() || machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm8625_qrd7() || machine_is_msm7x27a_u0()) { platform_device_register(&msm8625_device_csic0); platform_device_register(&msm8625_device_csic1); } else { platform_device_register(&msm7x27a_device_csic0); platform_device_register(&msm7x27a_device_csic1); } #endif platform_device_register(&msm7x27a_device_csic0); platform_device_register(&msm7x27a_device_csic1); /* LGE_CHANGE_E: 2012/11/2 [email protected] U0 Camera Bring Up */ if (machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm8625_qrd7()) *(int *) msm7x27a_device_clkctl.dev.platform_data = 1; platform_device_register(&msm7x27a_device_clkctl); platform_device_register(&msm7x27a_device_vfe); }