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 88#include "fsl_clock.h"
99#include <soc.h>
1010#include <fsl_glikey.h>
11+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (pmc_tmpsns ))
12+ #include "fsl_romapi_otp.h"
13+ #endif
1114
1215/*!< System oscillator settling time in us */
1316#define SYSOSC_SETTLING_US 220U
@@ -544,6 +547,12 @@ void board_early_init_hook(void)
544547 CLOCK_EnableClock (kCLOCK_Acmp0 );
545548 RESET_ClearPeripheralReset (kACMP0_RST_SHIFT_RSTn );
546549#endif
550+
551+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (pmc_tmpsns ))
552+ POWER_DisablePD (kPDRUNCFG_PD_PMC_TEMPSNS );
553+ POWER_ApplyPD ();
554+ otp_init (SystemCoreClock );
555+ #endif
547556}
548557
549558static void GlikeyWriteEnable (GLIKEY_Type * base , uint8_t idx )
Original file line number Diff line number Diff line change 99#include <zephyr/dt-bindings/misc/nxp_rtxxx_dsp_ctrl.h>
1010
1111/ {
12+ aliases {
13+ die-temp0 = &pmc_tmpsns;
14+ };
15+
1216 cpus {
1317 #address-cells = <1>;
1418 #size-cells = <0>;
11051109 interrupts = <17 0>;
11061110 status = "disabled";
11071111 };
1112+
1113+ pmc_tmpsns: pmc-tmpsns {
1114+ compatible = "nxp,pmc-tmpsns";
1115+ status = "disabled";
1116+ };
11081117};
11091118
11101119&xspi0 {
You can’t perform that action at this time.
0 commit comments