void s3cfb_early_suspend(struct early_suspend *h) { struct s3cfb_global *fbdev = container_of(h, struct s3cfb_global, early_suspend); pr_debug("s3cfb_early_suspend is called\n"); #ifdef CONFIG_SCREEN_DIMMER if (!screen_is_dimmed()) { s3cfb_display_off(fbdev); clk_disable(fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif regulator_disable(fbdev->vlcd); regulator_disable(fbdev->vcc_lcd); regulator_disable(fbdev->regulator); } #else s3cfb_display_off(fbdev); clk_disable(fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif regulator_disable(fbdev->vlcd); regulator_disable(fbdev->vcc_lcd); regulator_disable(fbdev->regulator); #endif return ; }
void s3cfb_early_suspend(struct early_suspend *h) { struct s3cfb_global *fbdev = container_of(h, struct s3cfb_global, early_suspend); pr_debug("s3cfb_early_suspend is called\n"); #ifdef CONFIG_FB_S3C_MDNIE writel(0,fbdev->regs + 0x27c); msleep(20); writel(0x2, S5P_MDNIE_SEL); s3c_mdnie_stop(); #endif s3cfb_display_off(fbdev); #ifdef CONFIG_FB_S3C_MDNIE s3c_mdnie_off(); #endif clk_disable(fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif regulator_disable(fbdev->vlcd); regulator_disable(fbdev->vcc_lcd); regulator_disable(fbdev->regulator); return ; }
void s3cfb_early_suspend(struct early_suspend *h) { struct s3cfb_global *fbdev = container_of(h, struct s3cfb_global, early_suspend); struct s3c_platform_fb *pdata = to_fb_plat(fbdev->dev); struct platform_device *pdev = to_platform_device(fbdev->dev); pr_debug("s3cfb_early_suspend is called\n"); // namko: Turn off the backlight; not the regulator. if (pdata->backlight_onoff) pdata->backlight_onoff(pdev, 0); s3cfb_display_off(fbdev); clk_disable(fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif #ifndef CONFIG_MACH_MID regulator_disable(fbdev->vlcd); regulator_disable(fbdev->vcc_lcd); #endif regulator_disable(fbdev->regulator); return ; }
void s3cfb_early_suspend(struct early_suspend *h) { struct s3cfb_global *fbdev = container_of(h, struct s3cfb_global, early_suspend); struct s3c_platform_fb *pdata = to_fb_plat(fbdev->dev); struct platform_device *pdev = to_platform_device(fbdev->dev); pr_debug("s3cfb_early_suspend is called\n"); if (pdata->backlight_off) pdata->backlight_off(pdev); else if (pdata->backlight_onoff) pdata->backlight_onoff(pdev, 0); s3cfb_display_off(fbdev); clk_disable(fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif regulator_disable(fbdev->regulator); if (pdata->lcd_off) pdata->lcd_off(pdev); if (pdata->cfg_gpio) s3cfb_earlysuspend_cfg_gpio(pdev); return ; }
void s3cfb_screen_disable(void) { s3cfb_display_off(screendimmer_fbdev); clk_disable(screendimmer_fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif regulator_disable(screendimmer_fbdev->vlcd); regulator_disable(screendimmer_fbdev->vcc_lcd); regulator_disable(screendimmer_fbdev->regulator); return ; }
void s3cfb_early_suspend(struct early_suspend *h) { struct s3cfb_global *fbdev = container_of(h, struct s3cfb_global, early_suspend); struct s3c_platform_fb *pdata = to_fb_plat(fbdev->dev); struct platform_device *pdev = to_platform_device(fbdev->dev); pr_debug("s3cfb_early_suspend is called\n"); #if 0 /*to be checked*/ /* backlight_onoff function is only used for backlight_off */ if (pdata->backlight_onoff) pdata->backlight_onoff(pdev, false); #else #if defined (CONFIG_FB_S3C_LTE480WV) if (pdata->backlight_off) pdata->backlight_off(pdev); #endif #endif s3cfb_display_off(fbdev); clk_disable(fbdev->clock); #if defined(CONFIG_FB_S3C_TL2796) lcd_cfg_gpio_early_suspend(); #endif regulator_disable(fbdev->regulator); #if defined (CONFIG_FB_S3C_LTE480WV) //=// //s3cfb_lcd_off(pdev); if(pdata->lcd_off) pdata->lcd_off(pdev); if (pdata->cfg_gpio) { s3cfb_earlysuspend_cfg_gpio(pdev); } #endif return ; }