]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/tcb_clksrc: Stop depending on atmel_tclib
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 26 Apr 2019 21:47:11 +0000 (23:47 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 2 May 2019 19:55:58 +0000 (21:55 +0200)
commit7cef27f6c89e6716ea491af247f4db7504b3a612
tree8971cb2c6ae581a8acb5640b8276ca1843a4175d
parent47a8f51d185eb9c482ac2ae04dd0dbfebf5a69c5
clocksource/drivers/tcb_clksrc: Stop depending on atmel_tclib

atmel_tclib is probed too late in the boot process to be able to use the
TCB as the boot clocksource. This is an issue for SoCs without the PIT
(sams70, samv70 and samv71 families) as they simply currently can't boot.

Get rid of the atmel_tclib dependency and probe everything on our own using
the correct device tree binding.

This also allows getting rid of ATMEL_TCB_CLKSRC_BLOCK and makes the driver
a bit more flexible as the TCB is not hardcoded in the kernel anymore.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/tcb_clksrc.c
drivers/misc/Kconfig