File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 8
8
#include "fsl_clock.h"
9
9
#include <soc.h>
10
10
#include <fsl_glikey.h>
11
+ #if DT_NODE_HAS_STATUS (DT_NODELABEL (pmc_tmpsns ), okay )
12
+ #include "fsl_romapi_otp.h"
13
+ #endif
11
14
12
15
/*!< System oscillator settling time in us */
13
16
#define SYSOSC_SETTLING_US 220U
@@ -534,6 +537,12 @@ void board_early_init_hook(void)
534
537
CLOCK_EnableClock (kCLOCK_Acmp0 );
535
538
RESET_ClearPeripheralReset (kACMP0_RST_SHIFT_RSTn );
536
539
#endif
540
+
541
+ #if DT_NODE_HAS_STATUS (DT_NODELABEL (pmc_tmpsns ), okay )
542
+ POWER_DisablePD (kPDRUNCFG_PD_PMC_TEMPSNS );
543
+ POWER_ApplyPD ();
544
+ otp_init (SystemCoreClock );
545
+ #endif
537
546
}
538
547
539
548
static void GlikeyWriteEnable (GLIKEY_Type * base , uint8_t idx )
Original file line number Diff line number Diff line change 15
15
#include <zephyr/dt-bindings/misc/nxp_rtxxx_dsp_ctrl.h>
16
16
17
17
/ {
18
+ aliases {
19
+ die-temp0 = &pmc_tmpsns;
20
+ };
21
+
18
22
cpus {
19
23
#address-cells = <1>;
20
24
#size-cells = <0>;
1238
1242
1239
1243
status = "disabled";
1240
1244
};
1245
+
1246
+ pmc_tmpsns: pmc-tmpsns {
1247
+ compatible = "nxp,pmc-tmpsns";
1248
+ status = "disabled";
1249
+ };
1241
1250
};
1242
1251
1243
1252
&systick {
You can’t perform that action at this time.
0 commit comments