File tree Expand file tree Collapse file tree 10 files changed +41
-1
lines changed Expand file tree Collapse file tree 10 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,10 @@ void board_early_init_hook(void)
173
173
CLOCK_AttachClk (kFRO12M_to_LPUART2 );
174
174
#endif
175
175
176
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (ostimer0 ))
177
+ CLOCK_AttachClk (kCLK_1M_to_OSTIMER );
178
+ #endif
179
+
176
180
#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (porta ))
177
181
RESET_ReleasePeripheralReset (kPORT0_RST_SHIFT_RSTn );
178
182
#endif
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ System Clock
55
55
56
56
The MCX-A153 SoC is configured to use FRO running at 96MHz as a source for
57
57
the system clock.
58
+ The MCX-A153 uses OS timer as the kernel timer.
58
59
59
60
Serial Port
60
61
===========
Original file line number Diff line number Diff line change 186
186
pinctrl-names = "default";
187
187
};
188
188
189
+ /*
190
+ * Uses OS timer as the kernel timer
191
+ */
192
+ &ostimer0 {
193
+ status = "okay";
194
+ };
195
+
189
196
zephyr_udc0: &usb {
190
197
status = "okay";
191
198
};
Original file line number Diff line number Diff line change @@ -235,6 +235,10 @@ void board_early_init_hook(void)
235
235
236
236
#endif
237
237
238
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (ostimer0 ))
239
+ CLOCK_AttachClk (kCLK_1M_to_OSTIMER );
240
+ #endif
241
+
238
242
#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (usb ))
239
243
RESET_PeripheralReset (kUSB0_RST_SHIFT_RSTn );
240
244
CLOCK_EnableUsbfsClock ();
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ System Clock
55
55
56
56
The MCX-A156 SoC is configured to use FRO running at 96MHz as a source for
57
57
the system clock.
58
+ The MCX-A156 uses OS timer as the kernel timer.
58
59
59
60
Serial Port
60
61
===========
Original file line number Diff line number Diff line change @@ -247,6 +247,13 @@ zephyr_mipi_dbi_parallel: &flexio0_lcd {
247
247
status = "okay";
248
248
};
249
249
250
+ /*
251
+ * Uses OS timer as the kernel timer
252
+ */
253
+ &ostimer0 {
254
+ status = "okay";
255
+ };
256
+
250
257
zephyr_udc0: &usb {
251
258
status = "okay";
252
259
num-bidir-endpoints = <8>;
Original file line number Diff line number Diff line change 303
303
dma-names = "rx", "tx";
304
304
};
305
305
306
+ ostimer0: timers@400ad000 {
307
+ compatible = "nxp,os-timer";
308
+ reg = <0x400ad000 0x1000>;
309
+ interrupts = <57 0>;
310
+ status = "disabled";
311
+ };
312
+
306
313
porta: pinmux@400bc000 {
307
314
compatible = "nxp,port-pinmux";
308
315
reg = <0x400bc000 0x1000>;
Original file line number Diff line number Diff line change 493
493
status = "disabled";
494
494
};
495
495
496
+ ostimer0: timers@400ad000 {
497
+ compatible = "nxp,os-timer";
498
+ reg = <0x400ad000 0x1000>;
499
+ interrupts = <57 0>;
500
+ status = "disabled";
501
+ };
502
+
496
503
temp0: temp0 {
497
504
compatible = "nxp,lpadc-temp40";
498
505
status = "disabled";
Original file line number Diff line number Diff line change @@ -14,13 +14,15 @@ config SOC_MCXA153
14
14
select CPU_CORTEX_M33
15
15
select HAS_MCUX_CACHE
16
16
select HAS_MCUX_MCX_CMC
17
+ select HAS_MCUX_OS_TIMER
17
18
18
19
config SOC_MCXA156
19
20
select CPU_CORTEX_M33
20
21
select CPU_HAS_FPU
21
22
select ARMV8_M_DSP
22
23
select HAS_MCUX_CACHE
23
24
select HAS_MCUX_MCX_CMC
25
+ select HAS_MCUX_OS_TIMER
24
26
25
27
config SOC_MCXA166
26
28
select CPU_CORTEX_M33
Original file line number Diff line number Diff line change 4
4
if SOC_FAMILY_MCXA
5
5
6
6
config CORTEX_M_SYSTICK
7
- default n if MCUX_LPTMR_TIMER
7
+ default n if ( MCUX_LPTMR_TIMER || MCUX_OS_TIMER)
8
8
9
9
config NUM_IRQS
10
10
default 88
You can’t perform that action at this time.
0 commit comments