]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1230223e2c4043cdc1cbf885266d1eb16f33917c
treeac9009955b703ca253eed6ec790b4acf36896416
parent966c29848d1c9771624db34084235dc5c32395cb
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