From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] sh: 18-bit SYS panel fix for SuperH Mobile LCDC
Date: Thu, 06 Aug 2009 14:34:38 +0000 [thread overview]
Message-ID: <20090806143438.4005.17251.sendpatchset@rx1.opensource.se> (raw)
From: Magnus Damm <damm@igel.co.jp>
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>
---
Tested on Migo-R and kfr2r09. Applies on top of the wait bit fix.
drivers/video/sh_mobile_lcdcfb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 0003/drivers/video/sh_mobile_lcdcfb.c
+++ work/drivers/video/sh_mobile_lcdcfb.c 2009-08-06 21:44:44.000000000 +0900
@@ -177,7 +177,7 @@ static unsigned long lcdc_sys_read_data(
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 = {
next prev reply other threads:[~2009-08-06 14:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-06 15:16 [PATCH] sh: clean up Migo-R header file Magnus Damm
2009-08-06 15:12 ` [PATCH] sh: fix romImage mach dir usage Magnus Damm
2009-08-06 15:03 ` [PATCH] sh: LED9, LED10 and LED11 support for Solution Engine 7724 Magnus Damm
2009-08-06 14:58 ` [PATCH] sh: kfr2r09 board support - NAND flash Magnus Damm
2009-08-06 14:51 ` [PATCH] sh: kfr2r09 board support - LCDC panel Magnus Damm
2009-08-06 14:34 ` Magnus Damm [this message]
2009-08-06 14:28 ` [PATCH] sh: LCDC SYS bus access wait fix Magnus Damm
2009-08-13 3:03 ` Paul Mundt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090806143438.4005.17251.sendpatchset@rx1.opensource.se \
--to=magnus.damm@gmail.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox