Move the bcm2835 mailbox driver earlier in the boot

This will be needed before the firmware driver is loaded
This commit is contained in:
Andrew Turner 2020-07-28 10:40:00 +00:00
parent feecedb1c6
commit 4b24f9a0a8

View File

@ -293,7 +293,8 @@ static driver_t bcm_mbox_driver = {
static devclass_t bcm_mbox_devclass;
DRIVER_MODULE(mbox, simplebus, bcm_mbox_driver, bcm_mbox_devclass, 0, 0);
EARLY_DRIVER_MODULE(mbox, simplebus, bcm_mbox_driver, bcm_mbox_devclass, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
static void
bcm2835_mbox_dma_cb(void *arg, bus_dma_segment_t *segs, int nseg, int err)