Instead of using 'clock-frequency' device tree property for global/twd
mpcore timers of Armada 38x SoCs, set it in platform_late_init stage
with arm_tmr_change_frequency() function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Is there clock framework in the FreeBSD, so that it can obtain clock from device tree phandle: (clocks = <&coreclk 2>;) and later to clk_get() and clk_prepare_enable()? Later it is done in Linux by clk_get_rate() callback.
Comment Actions
Look at sys/dev/extres/clk.
But I guess this will be hard to convert the Marvell port to it.
Comment Actions
@manu thanks for pointing the code does any platform/driver use it?
About the change itself - I found an easy way to avoid timer node fixup: I called arm_tmr_change_frequency() from platform_late_init and it works fine. I'll submit updated patchset.