diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-22 22:57:54 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-22 23:01:03 +0200 |
commit | aa119b55f5d989e26e251c69169d5b6f3a1a68a6 (patch) | |
tree | d80c72452800c9289a5c4e3b7708935f61878882 /firmware/target | |
parent | 29cfd29a6cafea88a36212292e7019ab88aa7ed2 (diff) | |
download | rockbox-aa119b55f5d989e26e251c69169d5b6f3a1a68a6.tar.gz rockbox-aa119b55f5d989e26e251c69169d5b6f3a1a68a6.zip |
imx233: have pwm code acquire configured pins
Change-Id: I534cc10fbcaf1bb0e950fe2f60271008209b1122
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/imx233/pwm-imx233.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/pwm-imx233.c b/firmware/target/arm/imx233/pwm-imx233.c index 1c5e4657de..1ebfe02a1c 100644 --- a/firmware/target/arm/imx233/pwm-imx233.c +++ b/firmware/target/arm/imx233/pwm-imx233.c | |||
@@ -49,6 +49,8 @@ void imx233_pwm_setup_channel(int channel, int period, int cdiv, int active, | |||
49 | if(enable) | 49 | if(enable) |
50 | imx233_pwm_enable_channel(channel, false); | 50 | imx233_pwm_enable_channel(channel, false); |
51 | /* setup pin */ | 51 | /* setup pin */ |
52 | imx233_pinctrl_acquire_pin(IMX233_PWM_PIN_BANK(channel), | ||
53 | IMX233_PWM_PIN(channel), "pwm"); | ||
52 | imx233_set_pin_function(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel), | 54 | imx233_set_pin_function(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel), |
53 | PINCTRL_FUNCTION_MAIN); | 55 | PINCTRL_FUNCTION_MAIN); |
54 | imx233_set_pin_drive_strength(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel), | 56 | imx233_set_pin_drive_strength(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel), |