summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-06-08 09:44:17 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-06-08 09:44:17 +0000
commit12fa759aadf67ca63c366edf08d9e8901b41c9bb (patch)
tree9defd32118fba1f9475c84b6f90f10b98162ae86 /firmware/target/coldfire
parent0cc507214ab3d5c35512add1e6150c4042e0aa1c (diff)
downloadrockbox-12fa759aadf67ca63c366edf08d9e8901b41c9bb.tar.gz
rockbox-12fa759aadf67ca63c366edf08d9e8901b41c9bb.tar.bz2
rockbox-12fa759aadf67ca63c366edf08d9e8901b41c9bb.zip
HD200 - fix lcd power save command (not used currently)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26684 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r--firmware/target/coldfire/mpio/hd200/lcd-hd200.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/lcd-hd200.c b/firmware/target/coldfire/mpio/hd200/lcd-hd200.c
index 46509bc49a..8cb4449b57 100644
--- a/firmware/target/coldfire/mpio/hd200/lcd-hd200.c
+++ b/firmware/target/coldfire/mpio/hd200/lcd-hd200.c
@@ -63,11 +63,17 @@ int lcd_default_contrast(void)
void lcd_powersave(bool on)
{
-/* What is the point of having else construct here? */
if (on)
+ /* enter power saving mode
+ * this turns off lcd without controller reset
+ * probably ~1mA saving
+ */
lcd_write_command(LCD_SET_POWER_SAVE | 1);
else
- lcd_write_command(LCD_SET_POWER_SAVE | 1);
+ /* leave lcd power saving mode
+ * no need to reset and initialize controller
+ */
+ lcd_write_command(LCD_SET_POWER_SAVE | 0);
}
void lcd_set_contrast(int val)