File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2024 NXP
2
+ * Copyright 2024-2025 NXP
3
3
* SPDX-License-Identifier: Apache-2.0
4
4
*/
5
5
#include <zephyr/init.h>
@@ -442,6 +442,12 @@ void board_early_init_hook(void)
442
442
CLOCK_EnableClock (kCLOCK_Sai1 );
443
443
#endif
444
444
445
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (ewm0 ))
446
+ CLOCK_SetupOsc32KClocking (kCLOCK_Osc32kToWake );
447
+ CLOCK_AttachClk (kXTAL32K2_to_EWM0 );
448
+ CLOCK_EnableClock (kCLOCK_Ewm0 );
449
+ #endif
450
+
445
451
/* Set SystemCoreClock variable. */
446
452
SystemCoreClock = CLOCK_INIT_CORE_CLOCK ;
447
453
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2024 NXP
2
+ * Copyright 2024-2025 NXP
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
152
152
#io-channel-cells = <1>;
153
153
};
154
154
155
+ ewm0: ewm@40061000 {
156
+ compatible = "nxp,ewm";
157
+ reg = <0x40061000 0x6>;
158
+ status = "disabled";
159
+ interrupts = <28 0>;
160
+ clk-divider = <0x0>;
161
+ };
162
+
155
163
lpuart0: uart@4006a000 {
156
164
compatible = "nxp,lpuart";
157
165
reg = <0x4006a000 0x1000>;
Original file line number Diff line number Diff line change 681
681
clk-divider = <1>;
682
682
};
683
683
684
+ ewm0: ewm@c0000 {
685
+ compatible = "nxp,ewm";
686
+ reg = <0xc0000 0x6>;
687
+ interrupts = <100 0>;
688
+ status = "disabled";
689
+ clk-divider = <0x0>;
690
+ };
691
+
684
692
flexpwm0: flexpwm@ce000 {
685
693
compatible = "nxp,flexpwm";
686
694
reg = <0xce000 0x1000>;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2024 NXP
2
+ * Copyright 2024-2025 NXP
3
3
* Copyright (c) 2019-2021 Vestas Wind Systems A/S
4
4
*
5
5
* Based on NXP k6x soc.c, which is:
@@ -142,6 +142,9 @@ __weak void clk_init(void)
142
142
CLOCK_SetIpSrc (kCLOCK_Adc0 ,
143
143
DT_CLOCKS_CELL (DT_NODELABEL (adc0 ), ip_source ));
144
144
#endif
145
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (ewm0 ))
146
+ CLOCK_EnableClock (kCLOCK_Ewm0 );
147
+ #endif
145
148
}
146
149
147
150
void soc_early_init_hook (void )
You can’t perform that action at this time.
0 commit comments