summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zenxfi3
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 17:19:20 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 18:21:48 +0200
commit3e8c2dc46d843575096e92bd82886c7d6d44855d (patch)
tree9857f96bf2fbcf0300b8269aecc55e3ced6176bd /firmware/target/arm/imx233/creative-zenxfi3
parent7c5b65b9d234f819447195e3f852d9b59a225813 (diff)
downloadrockbox-3e8c2dc46d843575096e92bd82886c7d6d44855d.tar.gz
rockbox-3e8c2dc46d843575096e92bd82886c7d6d44855d.tar.bz2
rockbox-3e8c2dc46d843575096e92bd82886c7d6d44855d.zip
imx233: rewrite pwm using new registers
Change-Id: Ie222f0b25f4b8af9ccf21aecd82a7f4eba40aa3c
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi3')
-rw-r--r--firmware/target/arm/imx233/creative-zenxfi3/backlight-zenxfi3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi3/backlight-zenxfi3.c b/firmware/target/arm/imx233/creative-zenxfi3/backlight-zenxfi3.c
index 59c3c133aa..7b9327b695 100644
--- a/firmware/target/arm/imx233/creative-zenxfi3/backlight-zenxfi3.c
+++ b/firmware/target/arm/imx233/creative-zenxfi3/backlight-zenxfi3.c
@@ -29,9 +29,9 @@
void _backlight_set_brightness(int brightness)
{
- imx233_pwm_setup_channel(2, 1024, HW_PWM_PERIODx__CDIV__DIV_1,
- 0, HW_PWM_PERIODx__STATE__HIGH,
- (brightness * 1024) / 100, HW_PWM_PERIODx__STATE__LOW);
+ imx233_pwm_setup_channel(2, 1024, BV_PWM_PERIODn_CDIV__DIV_1,
+ 0, BV_PWM_PERIODn_ACTIVE_STATE__1,
+ (brightness * 1024) / 100, BV_PWM_PERIODn_INACTIVE_STATE__0);
imx233_pwm_enable_channel(2, true);
}