static void protou_set_backlight(struct msm_fb_data_type *mfd)
{
	if (!mfd->panel_power_on)
		return;

	mipi_dsi_set_backlight(mfd);
}
static void mipi_sony_set_backlight(struct msm_fb_data_type *mfd)
{
	int bl_level;

	bl_level = mfd->bl_level;

	mipi_dsi_set_backlight(mfd);
}
Example #3
0
static void mipi_renesas_set_backlight(struct msm_fb_data_type *mfd)
{
	int bl_level;

	bl_level = mfd->bl_level;
	pr_debug("%s+ bl_level=%d\n", __func__, mfd->bl_level);
	mipi_dsi_set_backlight(mfd);
}
Example #4
0
static void ville_set_backlight(struct msm_fb_data_type *mfd)
{
	if (!mfd->panel_power_on || cur_bl_level == mfd->bl_level)
		return;

	mipi_dsi_set_backlight(mfd);

	cur_bl_level = mfd->bl_level;
}
static void mipi_himax_set_backlight(struct msm_fb_data_type *mfd)
{
	int bl_level;

	bl_level = mfd->bl_level;

	if (!mipi_dsi_controller_on())
			return;

	mipi_dsi_set_backlight(mfd);
}
static void villec2_set_backlight(struct msm_fb_data_type *mfd)
{
	if (!mfd->panel_power_on || cur_bl_level == mfd->bl_level) {
		return;
	}

	mipi_dsi_set_backlight(mfd);

	cur_bl_level = mfd->bl_level;
	PR_DISP_DEBUG("%s+ bl_level=%d\n", __func__, mfd->bl_level);
}
static void protou_bkl_switch(struct msm_fb_data_type *mfd, bool on)
{
	PR_DISP_INFO("%s > %d\n", __func__, on);
	if (on) {
		mipi_status = 1;
		if (mfd->bl_level == 0)
			/* Assign the backlight by last brightness before suspend */
			mfd->bl_level = last_brightness;

		mipi_dsi_set_backlight(mfd);
	} else {
		if (bl_level_prevset != 0) {
			if (bl_level_prevset >= BRI_SETTING_MIN)
				last_brightness = bl_level_prevset;
			mfd->bl_level = 0;
			mipi_dsi_set_backlight(mfd);
		}
		mipi_status = 0;
	}
}
static void mipi_himax_bkl_switch(struct msm_fb_data_type *mfd, bool on)
{
	unsigned int val = 0;

	if (on) {
		mipi_status = 1;
		val = mfd->bl_level;
		if (val == 0) {
			if (bl_level_prevset != 1) {
				val = bl_level_prevset;
				mfd->bl_level = val;
			} else {
				val = DEFAULT_BRIGHTNESS;
				mfd->bl_level = val;
			}
		}
		mipi_dsi_set_backlight(mfd);
	} else {
		mipi_status = 0;
		mfd->bl_level = 0;
		mipi_dsi_set_backlight(mfd);
	}
}
Example #9
0
static void mipi_renesas_bkl_switch(struct msm_fb_data_type *mfd, bool on)
{
	unsigned int val = 0;

	pr_debug("%s+:on/off=%d\n", __func__, on);
	if (on) {
		mipi_status = 1;
		val = mfd->bl_level;
		if (val == 0) {
			if (bl_level_prevset != 1) {
				val = bl_level_prevset;
				mfd->bl_level = val;
			} else {
				val = DEFAULT_BRIGHTNESS;
				mfd->bl_level = val;
			}
		}
		mipi_dsi_set_backlight(mfd);
	} else {
		mipi_status = 0;
		mfd->bl_level = 0;
		mipi_dsi_set_backlight(mfd);
	}
}
static void mipi_ville_set_backlight(struct msm_fb_data_type *mfd)
{
	mipi_dsi_set_backlight(mfd, mfd->bl_level);

	cur_bl_level = mfd->bl_level;
}