Re: [PATCH 11/14] pwm: meson: read the full hardware state in meson_pwm_get_state()

2019-05-27 Thread Neil Armstrong
On 25/05/2019 20:11, Martin Blumenstingl wrote: > Update the meson_pwm_get_state() implementation to take care of all > information in the registers instead of only reading the "enabled" > state. > > The PWM output is only enabled if two conditions are met: > 1. the per-channel clock is enabled >

[PATCH 11/14] pwm: meson: read the full hardware state in meson_pwm_get_state()

2019-05-25 Thread Martin Blumenstingl
Update the meson_pwm_get_state() implementation to take care of all information in the registers instead of only reading the "enabled" state. The PWM output is only enabled if two conditions are met: 1. the per-channel clock is enabled 2. the PWM output is enabled Calculate the PWM period and