diff --git a/drivers/mbox/Kconfig b/drivers/mbox/Kconfig index 6451464dcc1..05874a41a53 100644 --- a/drivers/mbox/Kconfig +++ b/drivers/mbox/Kconfig @@ -9,6 +9,12 @@ menuconfig 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 bool "MBOX NRF IPC driver" depends on HAS_HW_NRF_IPC diff --git a/drivers/mbox/mbox_nrfx_ipc.c b/drivers/mbox/mbox_nrfx_ipc.c index 0d027889185..9a40196a1b4 100644 --- a/drivers/mbox/mbox_nrfx_ipc.c +++ b/drivers/mbox/mbox_nrfx_ipc.c @@ -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, - POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, + POST_KERNEL, CONFIG_MBOX_INIT_PRIORITY, &mbox_nrf_driver_api);