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
@@ -532,6 +535,12 @@ void board_early_init_hook(void)
532
535
CLOCK_EnableClock (kCLOCK_Acmp0 );
533
536
RESET_ClearPeripheralReset (kACMP0_RST_SHIFT_RSTn );
534
537
#endif
538
+
539
+ #if DT_NODE_HAS_STATUS (DT_NODELABEL (pmc_tmpsns ), okay )
540
+ POWER_DisablePD (kPDRUNCFG_PD_PMC_TEMPSNS );
541
+ POWER_ApplyPD ();
542
+ otp_init (SystemCoreClock );
543
+ #endif
535
544
}
536
545
537
546
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>;
1240
1244
1241
1245
status = "disabled";
1242
1246
};
1247
+
1248
+ pmc_tmpsns: pmc-tmpsns {
1249
+ compatible = "nxp,pmc-tmpsns";
1250
+ status = "disabled";
1251
+ };
1243
1252
};
1244
1253
1245
1254
&systick {
You can’t perform that action at this time.
0 commit comments