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:
Andriy Gapon 2020-09-25 07:39:41 +00:00
parent b1dbb66d49
commit 108d235ae6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366138

View File

@ -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;