From 67c4231e34cd8147963a054c44a715f3413fb2e3 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sun, 29 Aug 2021 14:19:02 +0200 Subject: 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 --- firmware/target/arm/ipod/backlight-mini1g_mini2g.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/target/arm/ipod/backlight-mini1g_mini2g.c') 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; +} -- cgit v1.2.3