Skip to content

Commit b7ff3e1

Browse files
peterwangszkartben
authored andcommitted
boards: frdm_mcxa: get SYS_CLOCK_HW_CYCLES_PER_SEC in soc dts
1. get SYS_CLOCK_HW_CYCLES_PER_SEC in soc dts Signed-off-by: Peter Wang <[email protected]>
1 parent 87e6bff commit b7ff3e1

File tree

7 files changed

+17
-3
lines changed

7 files changed

+17
-3
lines changed

boards/nxp/frdm_mcxa153/frdm_mcxa153.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
};
7373
};
7474

75+
&cpu0 {
76+
clock-frequency = <96000000>;
77+
};
78+
7579
&ctimer0 {
7680
status = "okay";
7781
};

boards/nxp/frdm_mcxa156/frdm_mcxa156.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
};
119119
};
120120

121+
&cpu0 {
122+
clock-frequency = <96000000>;
123+
};
124+
121125
&gpio0 {
122126
status = "okay";
123127
};

boards/nxp/frdm_mcxa266/frdm_mcxa266.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
status = "okay";
123123
};
124124

125+
&cpu0 {
126+
clock-frequency = <180000000>;
127+
};
128+
125129
&i3c0 {
126130
status = "okay";
127131
pinctrl-0 = <&pinmux_i3c0>;

boards/nxp/frdm_mcxa266/frdm_mcxa266_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ CONFIG_SERIAL=y
1010
CONFIG_UART_INTERRUPT_DRIVEN=y
1111
CONFIG_GPIO=y
1212
CONFIG_LPADC_DO_OFFSET_CALIBRATION=y
13-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=180000000

boards/nxp/frdm_mcxa346/frdm_mcxa346.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@
202202
pinctrl-names = "default";
203203
};
204204

205+
&cpu0 {
206+
clock-frequency = <180000000>;
207+
};
208+
205209
&opamp0 {
206210
pinctrl-0 = <&pinmux_opamp0>;
207211
pinctrl-names = "default";

boards/nxp/frdm_mcxa346/frdm_mcxa346_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ CONFIG_SERIAL=y
1010
CONFIG_UART_INTERRUPT_DRIVEN=y
1111
CONFIG_GPIO=y
1212
CONFIG_LPADC_DO_OFFSET_CALIBRATION=y
13-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=180000000

soc/nxp/mcx/mcxa/Kconfig.defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ config NUM_IRQS
1212
config SYS_CLOCK_HW_CYCLES_PER_SEC
1313
default 1000000 if MCUX_OS_TIMER
1414
default 16000 if MCUX_LPTMR_TIMER
15-
default 96000000 if CORTEX_M_SYSTICK
15+
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
1616

1717
# Set to the minimal size of data which can be written.
1818
config FLASH_FILL_BUFFER_SIZE

0 commit comments

Comments
 (0)