summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/ipod/backlight-mini1g_mini2g.c7
-rw-r--r--firmware/target/arm/ipod/backlight-target.h2
2 files changed, 8 insertions, 1 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
47bool 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}
diff --git a/firmware/target/arm/ipod/backlight-target.h b/firmware/target/arm/ipod/backlight-target.h
index 299a1cb6e7..133663d279 100644
--- a/firmware/target/arm/ipod/backlight-target.h
+++ b/firmware/target/arm/ipod/backlight-target.h
@@ -57,7 +57,7 @@ void backlight_hw_brightness(int val);
57 57
58#elif defined(IPOD_MINI) || defined(IPOD_MINI2G) 58#elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
59 59
60#define backlight_hw_init() true 60bool backlight_hw_init(void);
61void backlight_hw_on(void); 61void backlight_hw_on(void);
62void backlight_hw_off(void); 62void backlight_hw_off(void);
63 63