summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-02 14:44:26 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-02 14:44:26 +0000
commit30f333108ca11d5d27525d4ced545079175f97f9 (patch)
treec3d8c7613490c3e61e27f3ecd1723963e37b0b15
parentcb0a8cb71d9e05930739a1e3fa38291b36b47241 (diff)
downloadrockbox-30f333108ca11d5d27525d4ced545079175f97f9.tar.gz
rockbox-30f333108ca11d5d27525d4ced545079175f97f9.zip
fuze+: set backlight brightness to default only when there is not backlight infrastructure
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30636 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
index 0638e30aeb..92f63aebfe 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
@@ -42,9 +42,9 @@ bool _backlight_init(void)
42 imx233_set_pin_function(1, 28, PINCTRL_FUNCTION_GPIO); 42 imx233_set_pin_function(1, 28, PINCTRL_FUNCTION_GPIO);
43 imx233_set_pin_drive_strength(1, 28, PINCTRL_DRIVE_8mA); 43 imx233_set_pin_drive_strength(1, 28, PINCTRL_DRIVE_8mA);
44 imx233_enable_gpio_output(1, 28, true); 44 imx233_enable_gpio_output(1, 28, true);
45 imx233_set_gpio_output(1, 29, true); 45 #ifndef HAVE_BACKLIGHT_BRIGHTNESS
46 udelay(600); 46 _backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
47 _backlight_set_brightness(100); 47 #endif
48 return true; 48 return true;
49} 49}
50 50