Extend the current pm_policy_state_lock_*() functions to support substates. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Add a new test to verify the policy API behavior. Test also checks that custom policies can be implemented. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>