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
This commit is contained in:
parent
4ba3231457
commit
67c4231e34
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ void backlight_hw_brightness(int val);
|
|||
|
||||
#elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
|
||||
|
||||
#define backlight_hw_init() true
|
||||
bool backlight_hw_init(void);
|
||||
void backlight_hw_on(void);
|
||||
void backlight_hw_off(void);
|
||||
|
||||
|
|
Loading…
Reference in a new issue