Messages in this thread | | | Subject | Re: [PATCH] clockevents: Add a clkevt-of mechanism like clksrc-of | From | Alexander Kochetkov <> | Date | Mon, 30 Jan 2017 14:04:42 +0300 |
| |
> 25 янв. 2017 г., в 15:21, Daniel Lezcano <daniel.lezcano@linaro.org> написал(а): > > Hopefully, that can help to do some housework in the directory, perhaps > split the drivers in to entities, for example: > - clksrc-rockchip.c > - clkevt-rockchip.c > > Also, it gives the possibility to declare clocksources separately in the > DT and then use a clocksource from IP block while while clockevents are > used from another IP block.
Hello, Daniel!
There is no way to do declare clocksources and clockevents in the DT now. As I understood, it is incorrect to add properties like ‘clocksource’ or ‘clockevent’ to timer entries because this sounds like linux specific configuration. While device tree must contain only hardware description. Thus many timer drivers has implicit assumption: first DT timer became clocksource, second clockevent.
If we can find the way to describe timer role in the DT, than many timer drivers could be rewritten such a way.
Also, there is timers what use single IP to provide clocksource and clockevent at the same time. So splitting them into two files result into more complex code.
Regards, Alexander.
| |