drivers: power_domain/gpio_monitor: Init priority option
Add a Kconfig option to customize initialization priority of gpio monitor power domain. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
e7875de3f9
commit
9506720bd8
2 changed files with 11 additions and 1 deletions
|
@ -41,4 +41,14 @@ config POWER_DOMAIN_GPIO_MONITOR
|
|||
depends on GPIO
|
||||
select DEVICE_DEPS
|
||||
|
||||
if POWER_DOMAIN_GPIO_MONITOR
|
||||
|
||||
config POWER_DOMAIN_GPIO_MONITOR_INIT_PRIORITY
|
||||
int "GPIO monitor power domain init priority"
|
||||
default POWER_DOMAIN_INIT_PRIORITY
|
||||
help
|
||||
GPIO monitor power domain initialization priority.
|
||||
|
||||
endif #POWER_DOMAIN_GPIO_MONITOR
|
||||
|
||||
endif
|
||||
|
|
|
@ -145,6 +145,6 @@ unconfigure_pin:
|
|||
DEVICE_DT_INST_DEFINE(inst, pd_gpio_monitor_init, \
|
||||
PM_DEVICE_DT_INST_GET(inst), &pd_gpio_monitor_data_##inst, \
|
||||
&pd_gpio_monitor_config_##inst, POST_KERNEL, \
|
||||
CONFIG_POWER_DOMAIN_INIT_PRIORITY, NULL);
|
||||
CONFIG_POWER_DOMAIN_GPIO_MONITOR_INIT_PRIORITY, NULL);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(POWER_DOMAIN_DEVICE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue