Skip to content

Commit e80ea1e

Browse files
Flavio Ceolinnashif
authored andcommitted
drivers: power_domain/gpio: Init priority option
Add a Kconfig option to customize initialization priority of gpio power domain. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 9506720 commit e80ea1e

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
@@ -26,6 +26,16 @@ config POWER_DOMAIN_GPIO
2626
depends on TIMEOUT_64BIT
2727
select DEVICE_DEPS
2828

29+
if POWER_DOMAIN_GPIO
30+
31+
config POWER_DOMAIN_GPIO_INIT_PRIORITY
32+
int "GPIO power domain init priority"
33+
default POWER_DOMAIN_INIT_PRIORITY
34+
help
35+
GPIO power domain initialization priority.
36+
37+
endif #POWER_DOMAIN_GPIO_MONITOR
38+
2939
config POWER_DOMAIN_INTEL_ADSP
3040
bool "Use Intel ADSP power gating mechanisms"
3141
default y

drivers/power_domain/power_domain_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static int pd_gpio_init(const struct device *dev)
135135
PM_DEVICE_DT_INST_DEFINE(id, pd_gpio_pm_action); \
136136
DEVICE_DT_INST_DEFINE(id, pd_gpio_init, PM_DEVICE_DT_INST_GET(id), \
137137
&pd_gpio_##id##_data, &pd_gpio_##id##_cfg, \
138-
POST_KERNEL, CONFIG_POWER_DOMAIN_INIT_PRIORITY, \
138+
POST_KERNEL, CONFIG_POWER_DOMAIN_GPIO_INIT_PRIORITY, \
139139
NULL);
140140

141141
DT_INST_FOREACH_STATUS_OKAY(POWER_DOMAIN_DEVICE)

0 commit comments

Comments
 (0)