Move the bcm2835 firmware driver earlier in the boot.

It will be needed by other eaarly drivers.

While here make the dependency of the mailbox formal with MODULE_DEPEND.

Reviewed by:	manu
Sponsored by:	Innovate UK
This commit is contained in:
Andrew Turner 2020-07-28 10:43:52 +00:00
parent 73d0751a81
commit 0083fb5d49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363642

View File

@ -177,5 +177,6 @@ static driver_t bcm2835_firmware_driver = {
sizeof(struct bcm2835_firmware_softc),
};
DRIVER_MODULE(bcm2835_firmware, simplebus, bcm2835_firmware_driver,
bcm2835_firmware_devclass, 0, 0);
EARLY_DRIVER_MODULE(bcm2835_firmware, simplebus, bcm2835_firmware_driver,
bcm2835_firmware_devclass, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
MODULE_DEPEND(bcm2835_firmware, mbox, 1, 1, 1);