]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: atmel: Add support for controllers with 32 bit counters
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 25 Feb 2019 16:44:37 +0000 (16:44 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 4 Mar 2019 10:56:08 +0000 (11:56 +0100)
commit0285827d546d9087aadce6d3728dd824e32e3777
tree3a6f13df3e9fe0ec8901de9402321afde26efc79
parent53784159f6f513dcb5a8f61503312c9c2f57eeb6
pwm: atmel: Add support for controllers with 32 bit counters

SAM9X60's PWM controller uses 32 bits counters thus it could generate
signals with higher period and duty cycles than the old ones. Prepare
the current driver to be able to work with old controllers (that uses
16 bits counters) and with the new SAM9X60's controller, by providing
counters information based on compatible string.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel.c