1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #include <zephyr/sys/poweroff.h>
7 #include <zephyr/toolchain.h>
8 
9 #include <fsl_power.h>
10 
11 static const uint32_t exclude_from_pd[] = {0, 0, 0, 0};
12 
z_sys_poweroff(void)13 void z_sys_poweroff(void)
14 {
15 	/* Disable ISP Pin pull-ups and input buffers to avoid current leakage */
16 	IOPCTL->PIO[1][15] = 0;
17 	IOPCTL->PIO[3][28] = 0;
18 	IOPCTL->PIO[3][29] = 0;
19 
20 	POWER_EnterDeepPowerDown(exclude_from_pd);
21 
22 	CODE_UNREACHABLE;
23 }
24