static int unk_panel_blank(struct msm_lcdc_panel_ops *ops) { struct vreg *vreg; lcdc_lgit_panel_off(); MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[0], disable, 0); MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[1], disable, 0); return 0; }
static int unk_panel_unblank(struct msm_lcdc_panel_ops *ops) { struct vreg *vreg; MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[0], enable, 1800); MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[1], enable, 2800); lcdc_lgit_panel_on(); return 0; }
static void msm_fb_lcdc_power_save(int on) { struct vreg *vreg; int i; if (on) { MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[0], enable, 1800); MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[1], enable, 2800); } else{ MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[0], disable, 0); MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[1], disable, 0); } }
static void msm_fb_mddi_power_save(int on) { struct vreg *vreg; int flag_on = !!on; if (mddi_power_save_on == flag_on) return; mddi_power_save_on = flag_on; if (on) { MSM_FB_LCDC_VREG_OP(msm_fb_vreg[0], enable, 1800); MSM_FB_LCDC_VREG_OP(msm_fb_vreg[1], enable, 2800); } else{ MSM_FB_LCDC_VREG_OP(msm_fb_vreg[0], disable, 0); MSM_FB_LCDC_VREG_OP(msm_fb_vreg[1], disable, 0); } }
static void msm_fb_lcdc_power_save(int on) { struct vreg *vreg; int i; for (i = 0; i < ARRAY_SIZE(msm_fb_lcdc_vreg); i++) { if (on) MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[i], enable); else{ MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[i], disable); gpio_tlmm_config(GPIO_CFG(GPIO_OUT_88, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), GPIO_ENABLE); gpio_set_value(88, 0); mdelay(15); gpio_set_value(88, 1); mdelay(15); } } }
static int ebi2_tovis_power_save(int on) { struct vreg *vreg; int flag_on = !!on; printk(KERN_INFO "%s: on=%d\n", __func__, flag_on); if (mddi_power_save_on == flag_on) return 0; mddi_power_save_on = flag_on; if (on) { //MSM_FB_LCDC_VREG_OP(msm_fb_vreg[0], enable, 1800); MSM_FB_LCDC_VREG_OP(msm_fb_vreg[1], enable, 2800); } else{ //MSM_FB_LCDC_VREG_OP(msm_fb_vreg[0], disable, 0); MSM_FB_LCDC_VREG_OP(msm_fb_vreg[1], disable, 0); } return 0; }
static int ebi2_tovis_power_save(int on) { struct vreg *vreg; int flag_on = !!on; printk(KERN_INFO"%s: on=%d\n", __func__, flag_on); if (mddi_power_save_on == flag_on) return 0; mddi_power_save_on = flag_on; if (on) { /* MSM_FB_LCDC_VREG_OP(msm_fb_vreg[0], enable, 1800); */ MSM_FB_LCDC_VREG_OP(msm_fb_vreg[1], enable, 2800); } else{ /* LGE_CHANGE, [[email protected]] , 2011-02-10, for current consumption */ //MSM_FB_LCDC_VREG_OP(msm_fb_vreg[0], disable, 0); MSM_FB_LCDC_VREG_OP(msm_fb_vreg[1], disable, 0); } return 0; }