summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-01-03 16:28:15 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-01-03 16:28:15 +0000
commitd3bbe51629212e770b30c701bef1b583b8deae88 (patch)
tree9d60cfcf0dd822882be024ceeec559b3c73bdf85 /firmware/target/mips/ingenic_jz47xx/onda_vx747
parent4fdf4ad728ac93336c850c7da8966e8d00bddbf8 (diff)
downloadrockbox-d3bbe51629212e770b30c701bef1b583b8deae88.tar.gz
rockbox-d3bbe51629212e770b30c701bef1b583b8deae88.tar.bz2
rockbox-d3bbe51629212e770b30c701bef1b583b8deae88.zip
Onda VX747/VX777: centralise LCD clock en-/disabling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24168 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
index b2ed9bc439..12c1f3eb09 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c
@@ -197,6 +197,8 @@ static void _set_lcd_clock(void)
void lcd_init_controller(void)
{
+ lcd_clock_enable();
+
#ifdef USB_BOOT
_display_pin_init();
#endif
@@ -204,6 +206,8 @@ void lcd_init_controller(void)
_set_lcd_clock();
SLEEP(1000);
_display_init();
+
+ lcd_clock_disable();
}
void lcd_set_target(int x, int y, int width, int height)
@@ -254,12 +258,20 @@ void lcd_set_flip(bool yesno)
void lcd_on(void)
{
+ lcd_clock_enable();
+
_display_on();
+
+ lcd_clock_disable();
}
void lcd_off(void)
{
+ lcd_clock_enable();
+
_display_off();
+
+ lcd_clock_disable();
}
void lcd_set_contrast(int val)