Skip to content

Commit

Permalink
sh: 18-bit SYS panel fix for SuperH Mobile LCDC
Browse files Browse the repository at this point in the history
Fix the SuperH Mobile LCDC driver to make use of the full
18-bit DRD field in the LDDRDR register. Without this patch
only 16-bit register access is possible. Needed by 18-bit
SYS panels such as the one used on kfr2r09.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Aug 6, 2009
1 parent 909f10d commit ec56b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/sh_mobile_lcdcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static unsigned long lcdc_sys_read_data(void *handle)
udelay(1);
lcdc_wait_bit(ch->lcdc, _LDSR, 2, 0);

return lcdc_read(ch->lcdc, _LDDRDR) & 0xffff;
return lcdc_read(ch->lcdc, _LDDRDR) & 0x3ffff;
}

struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = {
Expand Down

0 comments on commit ec56b66

Please sign in to comment.