soc: nxp: s32k1: obtain system clock freq from dt
In S32K1 devices, Arm Systick clock frequency is equal to the CPU core clock frequency, and its value can be obtained from devicetree. Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
parent
28b2051bda
commit
a8ebb05506
4 changed files with 6 additions and 5 deletions
|
@ -98,6 +98,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <80000000>;
|
||||
};
|
||||
|
||||
&gpioa {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
|
||||
CONFIG_BUILD_OUTPUT_HEX=y
|
||||
|
||||
# Use Systick as system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
|
||||
|
||||
# Run from internal program flash
|
||||
CONFIG_XIP=y
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue