Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

davinci: fb: add framebuffer blank operation

Implement frame buffer blank operation feature for DA8xx/OMAP-L1xx driver.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Chaithrika U S and committed by
Linus Torvalds
312d9715 1d3c6c7b

+30
+30
drivers/video/da8xx-fb.c
··· 702 702 return 0; 703 703 } 704 704 705 + static int cfb_blank(int blank, struct fb_info *info) 706 + { 707 + struct da8xx_fb_par *par = info->par; 708 + int ret = 0; 709 + 710 + if (par->blank == blank) 711 + return 0; 712 + 713 + par->blank = blank; 714 + switch (blank) { 715 + case FB_BLANK_UNBLANK: 716 + if (par->panel_power_ctrl) 717 + par->panel_power_ctrl(1); 718 + 719 + lcd_enable_raster(); 720 + break; 721 + case FB_BLANK_POWERDOWN: 722 + if (par->panel_power_ctrl) 723 + par->panel_power_ctrl(0); 724 + 725 + lcd_disable_raster(); 726 + break; 727 + default: 728 + ret = -EINVAL; 729 + } 730 + 731 + return ret; 732 + } 733 + 705 734 static struct fb_ops da8xx_fb_ops = { 706 735 .owner = THIS_MODULE, 707 736 .fb_check_var = fb_check_var, ··· 739 710 .fb_fillrect = cfb_fillrect, 740 711 .fb_copyarea = cfb_copyarea, 741 712 .fb_imageblit = cfb_imageblit, 713 + .fb_blank = cfb_blank, 742 714 }; 743 715 744 716 static int __init fb_probe(struct platform_device *device)