12 Jul, 2020
5 commits
-
The first divisor for the sama5d2 is actually the gclk selector. Because
the currently remaining divisors are fitting the use case, currently ensure
it is skipped.Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/20200710230813.1005150-10-alexandre.belloni@bootlin.com -
The divider selection algorithm never allowed to get index 0. It was also
continuing to look for dividers, trying to find the slow clock selection.
This is not necessary anymore.Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/20200710230813.1005150-9-alexandre.belloni@bootlin.com -
Stop using the slow clock as the clock source for 32 bit counters because
even at 10MHz, they are able to handle delays up to two minutes. This
provides a way better resolution.Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/20200710230813.1005150-8-alexandre.belloni@bootlin.com -
Use the tcb_config and struct atmel_tcb_config to get the timer counter
width. This is necessary because atmel_tcb_config will be extended later
on.Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/20200710230813.1005150-7-alexandre.belloni@bootlin.com -
On all the supported SoCs, the slow clock is always ATMEL_TC_TIMER_CLOCK5,
avoid looking it up and pass it directly to setup_clkevents.Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
Link: https://lore.kernel.org/r/20200710230813.1005150-6-alexandre.belloni@bootlin.com
27 Aug, 2019
1 commit
-
Implement and register delay timer to allow get_cycles() to work properly.
Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano
03 May, 2019
2 commits
-
Statisticize tc_clksrc_suspend and tc_clksrc_resume.
Signed-off-by: kbuild test robot
Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano -
For the sake of consistency, let's rename the file to a name similar
to other file names in this directory.Signed-off-by: Alexandre Belloni
Signed-off-by: Daniel Lezcano