From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damian Hobson-Garcia Date: Wed, 23 Feb 2011 10:16:49 +0000 Subject: [PATCH 1/2] fbdev: sh_mobile_lcdc: Add YUV input support Message-Id: <1298456210-26519-2-git-send-email-dhobsong@igel.co.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org Supports YCbCr420sp, YCbCr422sp, and YCbCr44sp, formats (bpp = 12, 16, and 24) respectively. Set .nonstd = SH_FB_YUV to enable YUV mode, and use bpp to distiguish between the 3 modes. Due to the encoding of YUV data, the framebuffer will clear to green instead of black. Signed-off-by: Damian Hobson-Garcia --- drivers/video/sh_mobile_lcdcfb.c | 142 ++++++++++++++++++++++++++++++-------- drivers/video/sh_mobile_lcdcfb.h | 2 +- include/linux/sh_mobile_fb.h | 14 ++++ include/video/sh_mobile_lcdc.h | 1 + 4 files changed, 130 insertions(+), 29 deletions(-) create mode 100644 include/linux/sh_mobile_fb.h diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index bf12e53..f2814ea 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -24,6 +24,7 @@ #include