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:
Henrik Brix Andersen 2021-07-05 20:43:48 +02:00 committed by Anas Nashif
commit 5fcb13aea3
3 changed files with 8 additions and 2 deletions

View file

@ -122,6 +122,10 @@
};
};
&cpu0 {
clock-frequency = <120000000>;
};
&sim {
clkout-source = <1>;
clkout-divider = <0>;