]> Pileus Git - ~andy/linux/commitdiff
fbdev: sh_mobile_lcdcfb: fixup LDHAJR :: HSYNPAJ needs mask
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 9 Nov 2011 04:33:29 +0000 (20:33 -0800)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 21 Nov 2011 23:43:20 +0000 (23:43 +0000)
LDHAJR register will be broken by hsync_pos without this patch

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/sh_mobile_lcdcfb.c

index facffc2549766e3ebefd5b8a13e78721523946eb..1f49ab48d0b5666b30c6dd8efbfaec73ace0a59d 100644 (file)
@@ -420,7 +420,7 @@ static void sh_mobile_lcdc_geometry(struct sh_mobile_lcdc_chan *ch)
        tmp = ((display_var->xres & 7) << 24) |
                ((display_h_total & 7) << 16) |
                ((display_var->hsync_len & 7) << 8) |
-               hsync_pos;
+               (hsync_pos & 7);
        lcdc_write_chan(ch, LDHAJR, tmp);
 }