aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2020-07-28 10:43:52 +0000
committerAndrew Turner <andrew@FreeBSD.org>2020-07-28 10:43:52 +0000
commit0083fb5d491c5c539425e4196e573490659beedf (patch)
treef70883b01e2635bc9b3dbee892e42c86ddc127c8
parent73d0751a819e96c1eb8e780cb05541d2ed535a62 (diff)
downloadsrc-0083fb5d491c5c539425e4196e573490659beedf.tar.gz
src-0083fb5d491c5c539425e4196e573490659beedf.zip
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
Notes
Notes: svn path=/head/; revision=363642
-rw-r--r--sys/arm/broadcom/bcm2835/bcm2835_firmware.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_firmware.c b/sys/arm/broadcom/bcm2835/bcm2835_firmware.c
index dcc23fe1cd61..44201ec80f7d 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_firmware.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_firmware.c
@@ -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);