__s32 BSP_disp_lcd_close_befor(__u32 sel) { close_flow[sel].func_num = 0; lcd_panel_fun[sel].cfg_close_flow(sel); #ifdef CONFIG_ARCH_SUN5I /* must close immediately, cause vbi may not come */ Disp_drc_enable(sel, 2); #endif gdisp.screen[sel].status &= ~LCD_ON; gdisp.screen[sel].output_type = DISP_OUTPUT_TYPE_NONE; return DIS_SUCCESS; }
__s32 BSP_disp_lcd_open_after(__u32 sel) { //esMEM_SwitchDramWorkMode(DRAM_WORK_MODE_LCD); gdisp.screen[sel].b_out_interlace = 0; gdisp.screen[sel].status |= LCD_ON; gdisp.screen[sel].output_type = DISP_OUTPUT_TYPE_LCD; Lcd_Panel_Parameter_Check(sel); #ifdef CONFIG_ARCH_SUN5I Disp_drc_enable(sel, TRUE); #endif Display_set_fb_timing(sel); return DIS_SUCCESS; }
/* *Enable / disable automatic backlight control function */ __s32 BSP_disp_iep_drc_enable(__u32 sel, __bool en) { if (sel == 0) { if (en) gdisp.screen[sel].iep_status |= DRC_REQUIRED; else gdisp.screen[sel].iep_status &= ~DRC_REQUIRED; Disp_drc_enable(sel, en); return DIS_SUCCESS; } else { return DIS_NOT_SUPPORT; } }