diff options
| author | Lino Sanfilippo <[email protected]> | 2020-12-09 20:48:25 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2020-12-17 13:19:01 +0000 |
| commit | 2f81b51d0d02074502ad27424c228ca760823668 (patch) | |
| tree | 5639cebb9ceb430ff61425211ca88f61d6ab62cc /drivers/pwm/pwm-imx27.c | |
| parent | pwm: keembay: Fix build failure with -Os (diff) | |
| download | kernel-2f81b51d0d02074502ad27424c228ca760823668.tar.gz kernel-2f81b51d0d02074502ad27424c228ca760823668.zip | |
pwm: bcm2835: Support apply function for atomic configuration
Use the newer .apply function of pwm_ops instead of .config, .enable,
.disable and .set_polarity. This guarantees atomic changes of the pwm
controller configuration. It also reduces the size of the driver.
Since now period is a 64 bit value, add an extra check to reject periods
that exceed the possible max value for the 32 bit register.
This has been tested on a Raspberry PI 4.
Signed-off-by: Lino Sanfilippo <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-imx27.c')
0 files changed, 0 insertions, 0 deletions
