pwm: atmel-tcb: Add sama5d2 support
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 30 Oct 2020 18:36:57 +0000 (19:36 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:55 +0000 (14:18 +0100)
commit34cbcd72588f40e58d7db5aa8c125068dd735765
treeac9009955b703ca253eed6ec790b4acf36896416
parent061f8572a31c0da6621aacfc70ed16e1a6d1d33b
pwm: atmel-tcb: Add sama5d2 support

Add sama5d2 support. The sama5d2 has a new clock input, its gclk. Index 0
of the clock selector is the gclk instead of the peripheral clock divided
by 2.

For now, the gclk is not used because the peripheral clock divided by 8
already gives a 9.6ns resolution which is enough for most use cases.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-tcb.c