drivers: mfd: npm1300: Add separate initialization priority
Enables setting the initialization priority of the nPM1300 independently from other MFDs. Signed-off-by: Bernt Johan Damslora <Bernt.Damslora@nordicsemi.no>
This commit is contained in:
parent
950e25578a
commit
5fc7304878
|
@ -8,3 +8,10 @@ config MFD_NPM1300
|
||||||
select I2C
|
select I2C
|
||||||
help
|
help
|
||||||
Enable the Nordic nPM1300 PMIC multi-function device driver
|
Enable the Nordic nPM1300 PMIC multi-function device driver
|
||||||
|
|
||||||
|
config MFD_NPM1300_INIT_PRIORITY
|
||||||
|
int "nPM1300 MFD initialization priority"
|
||||||
|
default MFD_INIT_PRIORITY
|
||||||
|
depends on MFD_NPM1300
|
||||||
|
help
|
||||||
|
Multi-function device initialization priority for nPM1300.
|
||||||
|
|
|
@ -9,12 +9,9 @@ config MFD_NPM6001
|
||||||
help
|
help
|
||||||
Enable the Nordic nPM6001 PMIC multi-function device driver
|
Enable the Nordic nPM6001 PMIC multi-function device driver
|
||||||
|
|
||||||
if MFD_NPM6001
|
|
||||||
|
|
||||||
config MFD_NPM6001_INIT_PRIORITY
|
config MFD_NPM6001_INIT_PRIORITY
|
||||||
int "nPM6001 MFD initialization priority"
|
int "nPM6001 MFD initialization priority"
|
||||||
default MFD_INIT_PRIORITY
|
default MFD_INIT_PRIORITY
|
||||||
|
depends on MFD_NPM6001
|
||||||
help
|
help
|
||||||
Multi-function device initialization priority for nPM6001.
|
Multi-function device initialization priority for nPM6001.
|
||||||
|
|
||||||
endif # MFD_NPM6001
|
|
||||||
|
|
|
@ -297,6 +297,6 @@ int mfd_npm1300_remove_callback(const struct device *dev, struct gpio_callback *
|
||||||
}; \
|
}; \
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(inst, mfd_npm1300_init, NULL, &data_##inst, &config##inst, \
|
DEVICE_DT_INST_DEFINE(inst, mfd_npm1300_init, NULL, &data_##inst, &config##inst, \
|
||||||
POST_KERNEL, CONFIG_MFD_INIT_PRIORITY, NULL);
|
POST_KERNEL, CONFIG_MFD_NPM1300_INIT_PRIORITY, NULL);
|
||||||
|
|
||||||
DT_INST_FOREACH_STATUS_OKAY(MFD_NPM1300_DEFINE)
|
DT_INST_FOREACH_STATUS_OKAY(MFD_NPM1300_DEFINE)
|
||||||
|
|
Loading…
Reference in a new issue