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
@ -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);
|
||||
if (reg & AW_PWM_CTRL_PERIOD_BUSY) {
|
||||
device_printf(sc->dev, "pwm busy\n");
|
||||
return (EBUSY);
|
||||
}
|
||||
|
||||
/* Write the prescalar */
|
||||
reg &= ~AW_PWM_CTRL_PRESCALE_MASK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user