From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Courbot Date: Thu, 10 Feb 2011 15:22:45 +0000 Subject: [PATCH 1/2] fbdev: sh_mobile_lcdcfb: add backlight support Message-Id: <1297351366-7374-2-git-send-email-gnurou@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org Support for LCD backlight devices controlled through a GPIO to the LCDC driver. Backlights can be defined per-channel and follow fbdev directives to switch off as the LCD blanks. Signed-off-by: Alexandre Courbot --- drivers/video/Kconfig | 1 + drivers/video/sh_mobile_lcdcfb.c | 73 ++++++++++++++++++++++++++++++++++++++ drivers/video/sh_mobile_lcdcfb.h | 2 + include/video/sh_mobile_lcdc.h | 7 ++++ 4 files changed, 83 insertions(+), 0 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 6bafb51b..a222d65 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2005,6 +2005,7 @@ config FB_SH_MOBILE_LCDC select FB_SYS_IMAGEBLIT select FB_SYS_FOPS select FB_DEFERRED_IO + select FB_BACKLIGHT select SH_MIPI_DSI if SH_LCD_MIPI_DSI ---help--- Frame buffer driver for the on-chip SH-Mobile LCD controller. diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index bf12e53..5240406 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -21,8 +21,10 @@ #include #include #include +#include #include