drivers: mbox: Add configurable init priority
Add configurable initialization priority. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
a4b658359c
commit
d13ab8b367
2 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ menuconfig MBOX
|
||||||
|
|
||||||
if MBOX
|
if MBOX
|
||||||
|
|
||||||
|
config MBOX_INIT_PRIORITY
|
||||||
|
int "MBOX init priority"
|
||||||
|
default KERNEL_INIT_PRIORITY_DEVICE
|
||||||
|
help
|
||||||
|
MBOX driver device initialization priority.
|
||||||
|
|
||||||
config MBOX_NRFX_IPC
|
config MBOX_NRFX_IPC
|
||||||
bool "MBOX NRF IPC driver"
|
bool "MBOX NRF IPC driver"
|
||||||
depends on HAS_HW_NRF_IPC
|
depends on HAS_HW_NRF_IPC
|
||||||
|
|
|
@ -202,5 +202,5 @@ static const struct mbox_driver_api mbox_nrf_driver_api = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, mbox_nrf_init, NULL, &nrfx_mbox_data, &nrfx_mbox_conf,
|
DEVICE_DT_INST_DEFINE(0, mbox_nrf_init, NULL, &nrfx_mbox_data, &nrfx_mbox_conf,
|
||||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
POST_KERNEL, CONFIG_MBOX_INIT_PRIORITY,
|
||||||
&mbox_nrf_driver_api);
|
&mbox_nrf_driver_api);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue