/* Called from pm_system_suspend(int32_t ticks) in subsys/power.c For deep sleep pm_system_suspend has executed all the driver power management call backs.  */
void pm_state_set(enum pm_state state, uint8_t substate_id)
/* Called from pm_system_suspend(int32_t ticks) in subsys/power.c For deep sleep pm_system_suspend has executed all the driver power management call backs.  */
void pm_state_set(enum pm_state state, uint8_t substate_id)
{
	ARG_UNUSED(substate_id);
	switch (state) {
	case PM_STATE_SUSPEND_TO_IDLE:
		z_power_soc_sleep();
		break;
	case PM_STATE_SUSPEND_TO_RAM:
		z_power_soc_deep_sleep();
		break;
	default:
		break;
	}
}