/* Config all pins to the right pull state based on pmap_func table before soc sleep.  */
CONFIG_FW_CRITICAL_CODE_SECTION void pinmap_sleep(void)
/* Config all pins to the right pull state based on pmap_func table before soc sleep.  */
CONFIG_FW_CRITICAL_CODE_SECTION void pinmap_sleep(void)
{
	int i = 0;
	int PinName = 0;
	for (;;) {
		if (pmap_func_sleep[i].PinName == _PNC) {
			break;
		}
		if (pmap_func_sleep[i].SleepPuPd == GPIO_PuPd_KEEP)
			goto next;
		PinName = pmap_func_sleep[i].PinName;
		if (pmap_func_sleep[i].SleepPuPd == GPIO_PuPd_SHUTDOWN) {
			PAD_CMD(PinName, DISABLE);
		} else {
			PAD_CMD(PinName, ENABLE);
			PAD_PullCtrl(PinName, pmap_func_sleep[i].SleepPuPd);
		}
next:		i++;
	}
}