diff options
author | Damian <dhobsong@igel.co.jp> | 2011-05-18 07:10:08 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-23 03:06:26 -0400 |
commit | 3fedd2ac7662a10ab2973d3b6f11cdce87b7171a (patch) | |
tree | 07640424b8ed5b4342376886023beb8907fedfea /drivers/video/sh_mobile_lcdcfb.c | |
parent | 7caa4342ca5b37d2d178b464c16badd4228b3b7b (diff) |
sh_mobile_meram: Add support for NV24 framebuffers
Since the NV24 framebuffer has a CbCr plane that is twice as wide
as the Y plane, it needs to be handled as a special case.
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 3a2cbd18f91b..1c652da348ea 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -627,10 +627,14 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv) | |||
627 | 627 | ||
628 | ch->meram_enabled = 0; | 628 | ch->meram_enabled = 0; |
629 | 629 | ||
630 | if (ch->info->var.nonstd) | 630 | if (ch->info->var.nonstd) { |
631 | pf = SH_MOBILE_MERAM_PF_NV; | 631 | if (ch->info->var.bits_per_pixel == 24) |
632 | else | 632 | pf = SH_MOBILE_MERAM_PF_NV24; |
633 | else | ||
634 | pf = SH_MOBILE_MERAM_PF_NV; | ||
635 | } else { | ||
633 | pf = SH_MOBILE_MERAM_PF_RGB; | 636 | pf = SH_MOBILE_MERAM_PF_RGB; |
637 | } | ||
634 | 638 | ||
635 | ret = mdev->ops->meram_register(mdev, cfg, pitch, | 639 | ret = mdev->ops->meram_register(mdev, cfg, pitch, |
636 | ch->info->var.yres, | 640 | ch->info->var.yres, |