summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-03-29 12:43:50 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-03-29 12:43:50 +0000
commitcc1f6033de4ea103cfa5be7cc2ea268ed9c8343d (patch)
treeb1175d0e9e4563822b38f8c79c2c00969441a745 /firmware
parent60cfc1ddff64055d037db5388b4942b3de96f52d (diff)
downloadrockbox-cc1f6033de4ea103cfa5be7cc2ea268ed9c8343d.tar.gz
rockbox-cc1f6033de4ea103cfa5be7cc2ea268ed9c8343d.tar.bz2
rockbox-cc1f6033de4ea103cfa5be7cc2ea268ed9c8343d.zip
Clipv2/Clip+ : turn off backlight in 0x1b register
Rename clipv2 file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25378 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/SOURCES2
-rw-r--r--firmware/target/arm/as3525/sansa-clipplus/backlight-clip.c6
-rw-r--r--firmware/target/arm/as3525/sansa-clipv2/backlight-clipv2.c (renamed from firmware/target/arm/as3525/sansa-clipv2/backlight-clip.c)4
3 files changed, 7 insertions, 5 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 5ecad19bba..0d845f2b3c 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -1226,7 +1226,7 @@ target/arm/as3525/lcd-ssd1303.c
target/arm/as3525/sansa-clipv2/lcd-clipv2.c
target/arm/as3525/sansa-clip/lcd-as-clip.S /* TODO for clipv2 */
target/arm/as3525/sansa-clipv2/button-clip.c
-target/arm/as3525/sansa-clipv2/backlight-clip.c
+target/arm/as3525/sansa-clipv2/backlight-clipv2.c
#ifndef BOOTLOADER
target/arm/powermgmt-ascodec.c
target/arm/as3525/sansa-clip/powermgmt-clip.c
diff --git a/firmware/target/arm/as3525/sansa-clipplus/backlight-clip.c b/firmware/target/arm/as3525/sansa-clipplus/backlight-clip.c
index 26d562f829..5f5662f787 100644
--- a/firmware/target/arm/as3525/sansa-clipplus/backlight-clip.c
+++ b/firmware/target/arm/as3525/sansa-clipplus/backlight-clip.c
@@ -24,8 +24,6 @@
#include "as3525v2.h"
#include "ascodec-target.h"
-/* FIXME : this is clipv2 code, not sure if it works the same on clip+ */
-
void _backlight_on(void)
{
ascodec_write(0x25, ascodec_read(0x25) | 2); /* lcd power */
@@ -36,6 +34,8 @@ void _backlight_on(void)
void _backlight_off(void)
{
- ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
lcd_enable(false);
+ ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
+ ascodec_write(0x1c, 8|1);
+ ascodec_write(0x1b, 0x00);
}
diff --git a/firmware/target/arm/as3525/sansa-clipv2/backlight-clip.c b/firmware/target/arm/as3525/sansa-clipv2/backlight-clipv2.c
index dc36b5237f..fad9e6acff 100644
--- a/firmware/target/arm/as3525/sansa-clipv2/backlight-clip.c
+++ b/firmware/target/arm/as3525/sansa-clipv2/backlight-clipv2.c
@@ -34,8 +34,10 @@ void _backlight_on(void)
void _backlight_off(void)
{
- ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
lcd_enable(false);
+ ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
+ ascodec_write(0x1c, 8|1);
+ ascodec_write(0x1b, 0);
}
void _buttonlight_on(void)