power_domain: gpio: use on-off and startup time

Respect the configured values for how long the domain takes to turn on,
and how long the domain needs to be off for before it can be repowered.

As these actions can block, guard the transition function with
pm_device_action_can_block. To avoid system PM being able to turn the
domain off but not back on again, guard the entire implementation.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2022-03-12 15:40:35 +10:00 committed by Carles Cufí
commit d1ab0f6b6e
2 changed files with 20 additions and 1 deletions

View file

@ -11,5 +11,6 @@ if POWER_DOMAIN
config POWER_DOMAIN_GPIO
bool "GPIO controlled power domain"
depends on GPIO
depends on TIMEOUT_64BIT
endif