diff options
author | Magnus Damm <damm@opensource.se> | 2009-12-07 14:26:05 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-09 12:40:45 +0900 |
commit | 657bf0bd068b2dc5244d553be66daac0a9e745d1 (patch) | |
tree | e0d6358a7b5e1421fad4644335f9ba34195d9071 /arch/sh/boards | |
parent | ef61aae4ddf1dbd0e9b6ad21e2e57632a8fe76f6 (diff) | |
download | kernel-crypto-657bf0bd068b2dc5244d553be66daac0a9e745d1.tar.gz kernel-crypto-657bf0bd068b2dc5244d553be66daac0a9e745d1.tar.xz kernel-crypto-657bf0bd068b2dc5244d553be66daac0a9e745d1.zip |
sh: LCDC start_transfer() for the KFR2R09 board
This patch adds a ->start_transfer() callback to the
KFR2R09 lcd handling code. The callback is used to
notify the lcd controller that a new frame of data
is about to be transferred. The callback is only used
in combination with deferred io, but the code has
been tested both with and without deferred io enabled.
Without this patch the display data on the KFR2R09
lcd panel becomes corrupted over time.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/lcd_wqvga.c | 6 | ||||
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c b/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c index 8ccb1cc8b58..e9b970846c4 100644 --- a/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c +++ b/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c @@ -273,6 +273,12 @@ int kfr2r09_lcd_setup(void *board_data, void *sohandle, return 0; } +void kfr2r09_lcd_start(void *board_data, void *sohandle, + struct sh_mobile_lcdc_sys_bus_ops *so) +{ + write_memory_start(sohandle, so); +} + #define CTRL_CKSW 0x10 #define CTRL_C10 0x20 #define CTRL_CPSW 0x80 diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 87438d6603d..5cf7a6e8aea 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c @@ -149,6 +149,7 @@ static struct sh_mobile_lcdc_info kfr2r09_sh_lcdc_info = { }, .board_cfg = { .setup_sys = kfr2r09_lcd_setup, + .start_transfer = kfr2r09_lcd_start, .display_on = kfr2r09_lcd_on, .display_off = kfr2r09_lcd_off, }, |