[PATCH 0/7] add support for clocksource/clockevent DT selection

2019-09-10 Thread Claudiu Beznea
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/

[PATCH 1/7] clocksource/drivers/c-sky: request timer_of_init only for probing CPU

2019-09-10 Thread Claudiu Beznea
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

[PATCH 3/7] clocksource/timer_of: use BIT() macro

2019-09-10 Thread Claudiu Beznea
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

[PATCH 2/7] clocksource: change timer registration macros

2019-09-10 Thread Claudiu Beznea
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

[PATCH 4/7] dt-bindings: chosen: Add clocksource and clockevent selection

2019-09-10 Thread Claudiu Beznea
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

[PATCH 5/7] clocksource/drivers/timer-of: add support support for timer's functionalities

2019-09-10 Thread Claudiu Beznea
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

[PATCH 6/7] drivers/clocksource/timer-of: keep declaration on one line

2019-09-10 Thread Claudiu Beznea
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

[PATCH 7/7] clocksource/drivers/integrator-ap: parse the chosen node

2019-09-10 Thread Claudiu Beznea
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