video: sh_mobile_lcdcfb suspend/resume support
authorMagnus Damm <damm@igel.co.jp>
Fri, 13 Mar 2009 15:36:55 +0000 (15:36 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 16 Mar 2009 10:54:17 +0000 (19:54 +0900)
commit2feb075a33905c2f6ef6be484c75ba6a35f6d12d
treeef297298600e8fcbc10d30126bfd583264b721c4
parent93356d07474b1f16f25e79e81597c2a6b8c2a783
video: sh_mobile_lcdcfb suspend/resume support

This patch adds suspend/resume support to the LCDC
driver for SuperH Mobile - sh_mobile_lcdcfb.

We simply stop hardware on suspend and start it again
on resume. For RGB panels this is trivial, but for SYS
panels in deferred io mode this becomes a bit more
difficult - we need to wait for a frame end interrupt
to make sure the clocks are balanced before stopping
the actual hardware.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_lcdcfb.c