static int mipi_samsung_disp_on(struct platform_device *pdev) { struct msm_fb_data_type *mfd; struct mipi_panel_info *mipi; static int first_boot_on; mfd = platform_get_drvdata(pdev); if (unlikely(!mfd)) return -ENODEV; if (unlikely(mfd->key != MFD_KEY)) return -EINVAL; mipi = &mfd->panel_info.mipi; if (!first_boot_on) { execute_panel_init(mfd); first_boot_on = 1; } if (get_auto_brightness() >= 6) msd.mpd->first_bl_hbm_psre = 1; sec_debug_mdp_reset_value(); pr_info("[%s]\n", __func__); return 0; }
static ssize_t show_auto_brightness(struct device *dev, struct device_attribute *attr, char *buf) { int ret; ret = get_auto_brightness(); if (ret < 0) return ret; return sprintf(buf, "%i\n", ret); }
static int mipi_samsung_disp_on(struct platform_device *pdev) { struct msm_fb_data_type *mfd; struct mipi_panel_info *mipi; static int first_boot_on; u32 tmp; mfd = platform_get_drvdata(pdev); if (unlikely(!mfd)) return -ENODEV; if (unlikely(mfd->key != MFD_KEY)) return -EINVAL; mipi = &mfd->panel_info.mipi; if (!first_boot_on) { execute_panel_init(mfd); first_boot_on = 1; } if (get_ldi_chip() == LDI_MAGNA) { mipi_set_tx_power_mode(LP_TX_MODE); mipi_samsung_disp_send_cmd(mfd, PANEL_READY_TO_ON, false); mipi_set_tx_power_mode(HS_TX_MODE); /* force dsi_clk alway on * Magan nees clk lane LP mode before sending 0xF0 & 0xFC & 0xD2 cmds */ tmp = MIPI_INP(MIPI_DSI_BASE + 0xA8); tmp |= (1<<28); MIPI_OUTP(MIPI_DSI_BASE + 0xA8, tmp); wmb(); } if (get_auto_brightness() >= 6) msd.mpd->first_bl_hbm_psre = 1; sec_debug_mdp_reset_value(); pr_info("[%s]\n", __func__); return 0; }
static int mipi_samsung_disp_on(struct platform_device *pdev) { struct msm_fb_data_type *mfd; struct mipi_panel_info *mipi; mfd = platform_get_drvdata(pdev); if (unlikely(!mfd)) return -ENODEV; if (unlikely(mfd->key != MFD_KEY)) return -EINVAL; mipi = &mfd->panel_info.mipi; msd.mpd->lcd_no = get_disp_switch(); if (!msd.dstat.is_smart_dim_loaded[msd.mpd->lcd_no]) { execute_panel_init(mfd); mfd->bl_level = DEFAULT_BL; msd.dstat.is_smart_dim_loaded[msd.mpd->lcd_no] = true; } if (get_auto_brightness() >= HBM_MODE_ID) msd.mpd->first_bl_hbm_psre = 1; mipi_samsung_disp_send_cmd(mfd, PANEL_ON, false); mfd->resume_state = MIPI_RESUME_STATE; #if defined(CONFIG_MDNIE_LITE_TUNING) is_negative_on(); #endif msd.mpd->rst_brightness = true; mipi_samsung_disp_backlight(mfd); pr_info("%s - [%d], id=0x%x\n", __func__, msd.mpd->lcd_no, msd.mpd->manufacture_id); return 0; }