forked from len0rd/rockbox
Fix red in GBS bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19238 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
495115b84a
commit
89c9dbe21c
1 changed files with 6 additions and 0 deletions
|
|
@ -85,9 +85,15 @@ bool _backlight_init(void)
|
||||||
/* Set default LED register value */
|
/* Set default LED register value */
|
||||||
mc13783_write(MC13783_LED_CONTROL0, MC13783_LED_CONTROL0_BITS);
|
mc13783_write(MC13783_LED_CONTROL0, MC13783_LED_CONTROL0_BITS);
|
||||||
|
|
||||||
|
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
||||||
/* Our PWM and I-Level is different than retailos (but same apparent
|
/* Our PWM and I-Level is different than retailos (but same apparent
|
||||||
* brightness), so init to our default. */
|
* brightness), so init to our default. */
|
||||||
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||||
|
#else
|
||||||
|
/* Use default PWM */
|
||||||
|
backlight_pwm_bits = mc13783_read(MC13783_LED_CONTROL2) & MC13783_LEDMDDC;
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue