summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c
index 9fde68dd8a..925db3a34d 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c
@@ -29,13 +29,16 @@
bool backlight_hw_init()
{
+ /* GPIO B1 controls backlight */
+ GPIOB_DIR |= (1 << 1);
+ ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
+ GPIOB_PIN(1) = (1 << 1);
+
return true;
}
void backlight_hw_on(void)
{
- /* GPIO B1 controls backlight */
- GPIOB_DIR |= (1 << 1);
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
GPIOB_PIN(1) = (1 << 1);
#ifdef HAVE_LCD_ENABLE
@@ -56,4 +59,3 @@ void backlight_hw_brightness(int brightness)
{
oled_brightness(brightness);
}
-