Skip to content

Commit 9506720

Browse files
Flavio Ceolinnashif
authored andcommitted
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 <[email protected]>
1 parent e7875de commit 9506720

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

drivers/power_domain/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,14 @@ config POWER_DOMAIN_GPIO_MONITOR
4141
depends on GPIO
4242
select DEVICE_DEPS
4343

44+
if POWER_DOMAIN_GPIO_MONITOR
45+
46+
config POWER_DOMAIN_GPIO_MONITOR_INIT_PRIORITY
47+
int "GPIO monitor power domain init priority"
48+
default POWER_DOMAIN_INIT_PRIORITY
49+
help
50+
GPIO monitor power domain initialization priority.
51+
52+
endif #POWER_DOMAIN_GPIO_MONITOR
53+
4454
endif

drivers/power_domain/power_domain_gpio_monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ static int pd_gpio_monitor_init(const struct device *dev)
145145
DEVICE_DT_INST_DEFINE(inst, pd_gpio_monitor_init, \
146146
PM_DEVICE_DT_INST_GET(inst), &pd_gpio_monitor_data_##inst, \
147147
&pd_gpio_monitor_config_##inst, POST_KERNEL, \
148-
CONFIG_POWER_DOMAIN_INIT_PRIORITY, NULL);
148+
CONFIG_POWER_DOMAIN_GPIO_MONITOR_INIT_PRIORITY, NULL);
149149

150150
DT_INST_FOREACH_STATUS_OKAY(POWER_DOMAIN_DEVICE)

0 commit comments

Comments
 (0)