tor-ap timer
I implemented this support for timer published at [4].
Thank you,
Claudiu Beznea
[1]
https://lore.kernel.org/lkml/34574b0f-7d09-eb92-ea62-4199c293b...@microchip.com/
[2]
https://lore.kernel.org/lkml/1ebaa306-8a7f-fd58-56e0-a61b76735...@linaro.org/
[3]
https://lore.kernel.org/
information in per CPU
timer_of objects was used instead (to->clkevt.irq).
Signed-off-by: Claudiu Beznea
---
drivers/clocksource/timer-mp-csky.c | 45 +++--
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/drivers/clocksource/timer-mp-csky.c
b/driv
Use BIT() macro for timer_of flags.
Signed-off-by: Claudiu Beznea
---
drivers/clocksource/timer-of.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-of.h b/drivers/clocksource/timer-of.h
index ee467bb16ca3..df861ea2ec42 100644
--- a/drivers
different DT bindings. Later on the
drivers will use the result of this parsing. Even at the moment only
few drivers are using this functionality there are other that could
be converted to use it.
Signed-off-by: Claudiu Beznea
---
arch/arm/kernel/smp_twd.c | 10 ++--
arch/arm/mach
clockevent/clocksource. Other were using different
compatibles (one for each functionality, although its about the
same hardware). Add DT bindings to be able to choose the
functionality of a timer.
Signed-off-by: Alexandre Belloni
Signed-off-by: Claudiu Beznea
---
Documentation/devicetree/bindings
adapt this information
for the other CPUs.
All the drivers were adapted to this mechanism using
TIMER_OF_TYPE_CE_AND_CS flag for backward compatibility.
[1]
https://lore.kernel.org/lkml/20171213185313.20017-3-alexandre.bell...@free-electrons.com/
Signed-off-by: Claudiu Beznea
---
drivers/clo
timer_of_init() declaration could be kept on one line (80 chars per
line rule is not broken).
Signed-off-by: Claudiu Beznea
---
drivers/clocksource/timer-of.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/clocksource/timer-of.h b/drivers/clocksource/timer-of.h
From: Alexandre Belloni
The driver currently uses aliases to know whether the timer is the
clocksource or the clockevent. Add the /chosen/linux,clocksource and
/chosen/linux,clockevent parsing while keeping backward compatibility.
Signed-off-by: Alexandre Belloni
Signed-off-by: Claudiu Beznea