Video/Framebuffer: add fuctional power management support to Blackfin BF54x LQ043 framebuffer driver
PATCH 1/1 Video/Framebuffer: add fuctional power management support to Blackfin BF54x LQ043 framebuffer driver
From: Michael Hennerich <[email protected]>
Fix bug: does nor properply resume after suspend mem
Fix for PM_SUSPEND_MEM: Save and restore peripheral base and DMA registers
--- drivers/video/bf54x-lq043fb.c | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-)
drivers/video/bf54x-lq043fb.c +12 -3
@@ -733,7 +733,6 @@ static int bfin_bf54x_remove(struct platform_device *pdev)static int bfin_bf54x_suspend (struct platform_device *pdev,pm_message_t state) {struct fb_info *fbinfo =platform_get_drvdata (pdev); -struct bfin_bf54xfb_info *info = fbinfo->par;bfin_write_EPPI0_CONTROL (bfin_read_EPPI0_CONTROL () & ~EPPI_EN );disable_dma (CH_EPPI0 );
@@ -747,8 +746,18 @@ static int bfin_bf54x_resume(struct platform_device *pdev)struct fb_info *fbinfo =platform_get_drvdata (pdev);struct bfin_bf54xfb_info *info = fbinfo->par; -enable_dma (CH_EPPI0 ); -bfin_write_EPPI0_CONTROL (bfin_read_EPPI0_CONTROL () |EPPI_EN ); +if (info->lq043_open_cnt) { + +bfin_write_EPPI0_CONTROL (0 ); +SSYNC (); + +config_dma (info); +config_ppi (info); + +/* start dma */ +enable_dma (CH_EPPI0 ); +bfin_write_EPPI0_CONTROL (bfin_read_EPPI0_CONTROL () |EPPI_EN ); + }return 0 ; }
Signature · 1 line
1.5.6
Quoted 11 lines · On Fri, 15 Aug 2008 17:07:08 +0800 Bryan Wu <[email protected]> wrote:
From: Michael Hennerich <[email protected]>
Fix bug: does nor properply resume after suspend mem
Fix forPM_SUSPEND_MEM: Save and restore peripheral base and DMA registersSigned-off-by Michael Hennerich <[email protected]>Signed-off-by Bryan Wu <[email protected]>--- drivers/video/bf54x-lq043fb.c | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
Igrzyska z nagrodami! Kliknij>>>> http://link.interia.pl/f1edb
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/