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
@@ -544,6 +547,12 @@ void board_early_init_hook(void)
544
547
CLOCK_EnableClock (kCLOCK_Acmp0 );
545
548
RESET_ClearPeripheralReset (kACMP0_RST_SHIFT_RSTn );
546
549
#endif
550
+
551
+ #if DT_NODE_HAS_STATUS (DT_NODELABEL (pmc_tmpsns ), okay )
552
+ POWER_DisablePD (kPDRUNCFG_PD_PMC_TEMPSNS );
553
+ POWER_ApplyPD ();
554
+ otp_init (SystemCoreClock );
555
+ #endif
547
556
}
548
557
549
558
static void GlikeyWriteEnable (GLIKEY_Type * base , uint8_t idx )
Original file line number Diff line number Diff line change 9
9
#include <zephyr/dt-bindings/misc/nxp_rtxxx_dsp_ctrl.h>
10
10
11
11
/ {
12
+ aliases {
13
+ die-temp0 = &pmc_tmpsns;
14
+ };
15
+
12
16
cpus {
13
17
#address-cells = <1>;
14
18
#size-cells = <0>;
1105
1109
interrupts = <17 0>;
1106
1110
status = "disabled";
1107
1111
};
1112
+
1113
+ pmc_tmpsns: pmc-tmpsns {
1114
+ compatible = "nxp,pmc-tmpsns";
1115
+ status = "disabled";
1116
+ };
1108
1117
};
1109
1118
1110
1119
&xspi0 {
You can’t perform that action at this time.
0 commit comments