diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-08-29 14:19:02 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-09-12 13:35:35 -0400 |
commit | 67c4231e34cd8147963a054c44a715f3413fb2e3 (patch) | |
tree | 4cf3ee2c90e6ad1cea9cdba1b1e76224eee2ac4d /firmware/target/arm/ipod/backlight-mini1g_mini2g.c | |
parent | 4ba3231457f269a12eef8d9de8bcce0e0626741a (diff) | |
download | rockbox-67c4231e34cd8147963a054c44a715f3413fb2e3.tar.gz rockbox-67c4231e34cd8147963a054c44a715f3413fb2e3.zip |
iPod mini backlight initialization
Fixes backlight not turning on after booting (tested on an iPod Mini 2G).
backlight_hw_init() copied from iPod 4G.
Change-Id: I9c32ca5ecd3dc74ea997e6cb843da79d303b0615
Diffstat (limited to 'firmware/target/arm/ipod/backlight-mini1g_mini2g.c')
-rw-r--r-- | firmware/target/arm/ipod/backlight-mini1g_mini2g.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/backlight-mini1g_mini2g.c b/firmware/target/arm/ipod/backlight-mini1g_mini2g.c index 8dd7ef87bd..143be32e91 100644 --- a/firmware/target/arm/ipod/backlight-mini1g_mini2g.c +++ b/firmware/target/arm/ipod/backlight-mini1g_mini2g.c | |||
@@ -43,3 +43,10 @@ void backlight_hw_off(void) | |||
43 | { | 43 | { |
44 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08); | 44 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08); |
45 | } | 45 | } |
46 | |||
47 | bool backlight_hw_init(void) | ||
48 | { | ||
49 | GPIO_SET_BITWISE(GPIOB_ENABLE, 0x0c); /* B02 and B03 enable */ | ||
50 | GPIO_SET_BITWISE(GPIOB_OUTPUT_VAL, 0x08); /* B03 = 1 */ | ||
51 | return true; | ||
52 | } | ||