forked from len0rd/rockbox
imx233: normalise pinctrl names
The current pinctrl functions were a mess. Normalise the functions names to make them shorter and clearer. Change-Id: Iac6ff84625ef2b7610268e3a5802dc0088de3167
This commit is contained in:
parent
abb7d1dcfe
commit
918a06a12a
18 changed files with 281 additions and 281 deletions
|
@ -49,11 +49,11 @@ 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_pinctrl_acquire(IMX233_PWM_PIN_BANK(channel),
|
||||
IMX233_PWM_PIN(channel), "pwm");
|
||||
imx233_set_pin_function(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel),
|
||||
imx233_pinctrl_set_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),
|
||||
imx233_pinctrl_set_drive(IMX233_PWM_PIN_BANK(channel), IMX233_PWM_PIN(channel),
|
||||
PINCTRL_DRIVE_4mA);
|
||||
/* watch the order ! active THEN period */
|
||||
HW_PWM_ACTIVEn(channel) = BF_OR2(PWM_ACTIVEn, ACTIVE(active), INACTIVE(inactive));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue