Пример #1
0
static void toppoly_tdo_panel_power_off(struct omap_dss_device *dssdev)
{
	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	omapdss_dpi_display_disable(dssdev);
}
Пример #2
0
static void kunlun_panel_disable(struct omap_dss_device *dssdev)
{
	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	omapdss_dpi_display_disable(dssdev);
}
Пример #3
0
static void vga_panel_disable(struct omap_dss_device *dssdev)
{
	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);
	omapdss_dpi_display_disable(dssdev);
	dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
}
Пример #4
0
static int tnlcd_power_on(struct omap_dss_device *dssdev)
{
	int r;

	//uki
	printk("OOOOOOOOOOOOOOOOOOOO tnlcd_power_on\n");
	gpio_set_value(p347_GPIO_BACKLIGHT_POWER,1);

	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
		return 0;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}

	return 0;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
Пример #5
0
static int at070tna2_panel_enable(struct omap_dss_device *dssdev)
{
	 int r = 0;

	if (at070tna2_hw_version != BOARD_ID_EVT1){
		schedule_delayed_work(&delay_work_enabletouch, 1);
	}
	
	gpio_direction_output(EDP_LCD_PWR_EN, 1);//for vdd
	
	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	/* Delay recommended by panel DATASHEET */
	mdelay(4);
	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}
//&*&*&*BC1_110817: fix the issue that user can see screen switch when device resume
	gpio_direction_output(EDP_LCD_LVDS_SHTDN_GPIO, 1);
	schedule_delayed_work(&delay_work_enablepanel, 10);  //20111117, JimmySu modify timing 6 -> 10, for earily suspend/resume
//&*&*&*BC2_110817: fix the issue that user can see screen switch when device resume
	
	return r;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
Пример #6
0
static void tpo_td043_power_off(struct omap_dss_device *dssdev)
{
	struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
	int nreset_gpio = dssdev->reset_gpio;

	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
		return;

	tpo_td043_write(tpo_td043->spi, 3,
			TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM);

	if (gpio_is_valid(nreset_gpio))
		gpio_set_value(nreset_gpio, 0);

	/* wait for at least 2 vsyncs before cutting off power */
	msleep(50);

	tpo_td043_write(tpo_td043->spi, 3, TPO_R03_VAL_STANDBY);

	regulator_disable(tpo_td043->vcc_reg);

	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	omapdss_dpi_display_disable(dssdev);
}
Пример #7
0
static void nec_8048_panel_disable(struct omap_dss_device *dssdev)
{
    if (dssdev->platform_disable)
        dssdev->platform_disable(dssdev);
    /* Delay recommended by panel DATASHEET */
    mdelay(4);

    omapdss_dpi_display_disable(dssdev);
}
static void sharp_lq_panel_power_off(struct omap_dss_device *dssdev)
{
	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	/* wait at least 5 vsyncs after disabling the LCD */
	msleep(100);

	omapdss_dpi_display_disable(dssdev);
}
Пример #9
0
static void generic_panel_power_off(struct omap_dss_device *dssdev)
{
	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
		return;

	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	omapdss_dpi_display_disable(dssdev);
}
static void DP501_panel_stop(struct omap_dss_device *dssdev)
{
#ifdef DP501_DEBUG
	printk(KERN_INFO "%s:%s\\n", __FILE__, __func__);
#endif
	omapdss_dpi_display_disable(dssdev);

	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);
}
static void tcg101wxlp_panel_disable(struct omap_dss_device *dssdev)
{
	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	/* wait at least 5 vsyncs after disabling the LCD */

	msleep(200);
	omapdss_dpi_display_disable(dssdev);
}
static void nec_8048_panel_power_off(struct omap_dss_device *dssdev)
{
	struct panel_nec_nl8048_data *pd = get_panel_data(dssdev);

	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
		return;

	if (gpio_is_valid(pd->res_gpio))
		gpio_set_value_cansleep(pd->res_gpio, 0);

	omapdss_dpi_display_disable(dssdev);
}
Пример #13
0
static void tnlcd_power_off(struct omap_dss_device *dssdev)
{
	//uki
	printk("OOOOOOOOOOOOOOOOOOOO tnlcd_power_off\n");
	gpio_set_value(p347_GPIO_BACKLIGHT_POWER,0);
	
	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
		return;

	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	omapdss_dpi_display_disable(dssdev);
}
static void tpo_td043_disable_dss(struct omap_dss_device *dssdev)
{
	struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);

	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
		return;

	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);

	omapdss_dpi_display_disable(dssdev);

	if (!tpo_td043->spi_suspended)
		tpo_td043_power_off(tpo_td043);
}
Пример #15
0
static void at070tna2_panel_disable(struct omap_dss_device *dssdev)
{

	if (at070tna2_hw_version != BOARD_ID_EVT1){
		gpio_direction_output(EDP_LCD_BL_SW, 0);	
		gpio_direction_output(EP5A_EVT_TOUCH_EN, 0);		
	}

	cancel_delayed_work(&delay_work_enablepanel); //20111117, JimmySu, add cancel delay for quickly press power button

	if (dssdev->platform_disable)
		dssdev->platform_disable(dssdev);
	 
	/* Delay recommended by panel DATASHEET */
	mdelay(4);

	omapdss_dpi_display_disable(dssdev);
}
Пример #16
0
static int vga_panel_enable(struct omap_dss_device *dssdev)
{
	int r = 0;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		return(r);

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r) {
			omapdss_dpi_display_disable(dssdev);
			return r;
		}
	}
	dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
	return r;
}
Пример #17
0
static int kunlun_panel_enable(struct omap_dss_device *dssdev)
{
	int r = 0;
	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}
	return r;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
static int tcg101wxlp_panel_enable(struct omap_dss_device *dssdev)
{
	int r = 0;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	/* wait couple of vsyncs until enabling the LCD */
	msleep(200);

	if (dssdev->platform_enable)
		r = dssdev->platform_enable(dssdev);

err0:
	if (r)
		omapdss_dpi_display_disable(dssdev);
	return r;
}
static void sharp_ls_power_off(struct omap_dss_device *dssdev)
{
	struct panel_sharp_ls037v7dw01_data *pd = get_panel_data(dssdev);

	if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
		return;

	if (gpio_is_valid(pd->ini_gpio))
		gpio_set_value_cansleep(pd->ini_gpio, 0);

	if (gpio_is_valid(pd->resb_gpio))
		gpio_set_value_cansleep(pd->resb_gpio, 0);

	/* wait at least 5 vsyncs after disabling the LCD */

	msleep(100);

	omapdss_dpi_display_disable(dssdev);
}
Пример #20
0
static int tpo_td043_power_on(struct omap_dss_device *dssdev)
{
	struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
	int nreset_gpio = dssdev->reset_gpio;
	int r;

	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
		return 0;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}

	regulator_enable(tpo_td043->vcc_reg);

	/* wait for power up */
	msleep(160);

	if (gpio_is_valid(nreset_gpio))
		gpio_set_value(nreset_gpio, 1);

	tpo_td043_write(tpo_td043->spi, 2,
			TPO_R02_MODE(tpo_td043->mode) | TPO_R02_NCLK_RISING);
	tpo_td043_write(tpo_td043->spi, 3, TPO_R03_VAL_NORMAL);
	tpo_td043_write(tpo_td043->spi, 0x20, 0xf0);
	tpo_td043_write(tpo_td043->spi, 0x21, 0xf0);
	tpo_td043_write_mirror(tpo_td043->spi, tpo_td043->hmirror,
			tpo_td043->vmirror);
	tpo_td043_write_gamma(tpo_td043->spi, tpo_td043->gamma);

	return 0;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
Пример #21
0
static int toppoly_tdo_panel_power_on(struct omap_dss_device *dssdev)
{
	int r;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}

	return 0;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
Пример #22
0
static int nec_8048_panel_enable(struct omap_dss_device *dssdev)
{
    int r = 0;

    r = omapdss_dpi_display_enable(dssdev);
    if (r)
        goto err0;

    /* Delay recommended by panel DATASHEET */
    mdelay(4);
    if (dssdev->platform_enable) {
        r = dssdev->platform_enable(dssdev);
        if (r)
            goto err1;
    }
    return r;
err1:
    omapdss_dpi_display_disable(dssdev);
err0:
    return r;
}
Пример #23
0
static int ltn101al03_power_off(struct omap_dss_device *dssdev)
{
	struct ltn101al03 *lcd = dev_get_drvdata(&dssdev->dev);

	lcd->enabled = 0;

	gpio_set_value(lcd->pdata->led_backlight_reset_gpio, 0);

	backlight_gptimer_stop(dssdev);
	msleep(250);

	gpio_set_value(lcd->pdata->lvds_nshdn_gpio, 0);

	omapdss_dpi_display_disable(dssdev);

	if (lcd->pdata->set_power)
		lcd->pdata->set_power(false);

	msleep(300);

	return 0;
}
Пример #24
0
static int tpo_td043_enable_dss(struct omap_dss_device *dssdev)
{
	struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
	int r;

	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
		return 0;

	omapdss_dpi_set_timings(dssdev, &dssdev->panel.timings);
	omapdss_dpi_set_data_lines(dssdev, dssdev->phy.dpi.data_lines);

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}

	/*
	 * If we are resuming from system suspend, SPI clocks might not be
	 * enabled yet, so we'll program the LCD from SPI PM resume callback.
	 */
	if (!tpo_td043->spi_suspended) {
		r = tpo_td043_power_on(tpo_td043);
		if (r)
			goto err1;
	}

	dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;

	return 0;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
Пример #25
0
static int generic_panel_power_on(struct omap_dss_device *dssdev)
{
	int r;

	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
		return 0;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}

	return 0;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}
static int sharp_lq_panel_power_on(struct omap_dss_device *dssdev)
{
	int r;

	r = omapdss_dpi_display_enable(dssdev);
	if (r)
		goto err0;

	/* wait couple of vsyncs until enabling the LCD */
	msleep(50);

	if (dssdev->platform_enable) {
		r = dssdev->platform_enable(dssdev);
		if (r)
			goto err1;
	}

	return 0;
err1:
	omapdss_dpi_display_disable(dssdev);
err0:
	return r;
}