forked from len0rd/rockbox
imx233: have pwm code acquire configured pins
Change-Id: I534cc10fbcaf1bb0e950fe2f60271008209b1122
This commit is contained in:
parent
29cfd29a6c
commit
aa119b55f5
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ void imx233_pwm_setup_channel(int channel, int period, int cdiv, int active,
|
|||
if(enable)
|
||||
imx233_pwm_enable_channel(channel, false);
|
||||
/* setup pin */
|
||||
imx233_pinctrl_acquire_pin(IMX233_PWM_PIN_BANK(channel),
|
||||
IMX233_PWM_PIN(channel), "pwm");
|
||||
imx233_set_pin_function(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel),
|
||||
PINCTRL_FUNCTION_MAIN);
|
||||
imx233_set_pin_drive_strength(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue