soc: arm: nxp: kinetis: ke1xf: determine hw clock cycles/sec from dts
Determine the default CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC from devicetree when using the Arm SysTick hardware timer. When the NXP KE1xF SoC series is using the Arm SysTick as hardware timer, the cycles/second will always be equal to the CPU core clock frequency. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
b563f383df
commit
5fcb13aea3
3 changed files with 8 additions and 2 deletions
|
@ -122,6 +122,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <120000000>;
|
||||
};
|
||||
|
||||
&sim {
|
||||
clkout-source = <1>;
|
||||
clkout-divider = <0>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue