aw_pwm: remove the busy bit check
The bit seems to always be set on my hardware, H3. However, programming the hardware seems to work just fine. MFC after: 3 weeks
This commit is contained in:
parent
b1dbb66d49
commit
108d235ae6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366138
@ -286,10 +286,6 @@ aw_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
reg = AW_PWM_READ(sc, AW_PWM_CTRL);
|
reg = AW_PWM_READ(sc, AW_PWM_CTRL);
|
||||||
if (reg & AW_PWM_CTRL_PERIOD_BUSY) {
|
|
||||||
device_printf(sc->dev, "pwm busy\n");
|
|
||||||
return (EBUSY);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Write the prescalar */
|
/* Write the prescalar */
|
||||||
reg &= ~AW_PWM_CTRL_PRESCALE_MASK;
|
reg &= ~AW_PWM_CTRL_PRESCALE_MASK;
|
||||||
|
Loading…
Reference in New Issue
Block a user