summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod/backlight-mini1g_mini2g.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/backlight-mini1g_mini2g.c')
-rw-r--r--firmware/target/arm/ipod/backlight-mini1g_mini2g.c7
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)
{
GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08);
}
+
+bool backlight_hw_init(void)
+{
+ GPIO_SET_BITWISE(GPIOB_ENABLE, 0x0c); /* B02 and B03 enable */
+ GPIO_SET_BITWISE(GPIOB_OUTPUT_VAL, 0x08); /* B03 = 1 */
+ return true;
+}