aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_lcdcfb.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-08-06 10:34:38 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-06 14:55:08 -0400
commitec56b66fed526e3b7dd58dba8945c405448f48d1 (patch)
tree8cd6375eed7f386aa94f71429491a39b608984e1 /drivers/video/sh_mobile_lcdcfb.c
parent909f10de5de81668e4d0a401f3cb5ca6b8a3d20d (diff)
sh: 18-bit SYS panel fix for SuperH Mobile LCDC
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>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index d1eb9656ca55..cff406de3d15 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -177,7 +177,7 @@ static unsigned long lcdc_sys_read_data(void *handle)
177 udelay(1); 177 udelay(1);
178 lcdc_wait_bit(ch->lcdc, _LDSR, 2, 0); 178 lcdc_wait_bit(ch->lcdc, _LDSR, 2, 0);
179 179
180 return lcdc_read(ch->lcdc, _LDDRDR) & 0xffff; 180 return lcdc_read(ch->lcdc, _LDDRDR) & 0x3ffff;
181} 181}
182 182
183struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = { 183struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = {