svn commit: r303728 - head/sys/arm/allwinner
Emmanuel Vadot
manu at FreeBSD.org
Wed Aug 3 18:45:57 UTC 2016
Author: manu
Date: Wed Aug 3 18:45:56 2016
New Revision: 303728
URL: https://svnweb.freebsd.org/changeset/base/303728
Log:
We need aw_nmi to be attached which needs GIC so attach a bit later.
Also the GPIOC doesn't need to be attach early
Reviewed by: andrew
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D7082
Modified:
head/sys/arm/allwinner/axp209.c
Modified: head/sys/arm/allwinner/axp209.c
==============================================================================
--- head/sys/arm/allwinner/axp209.c Wed Aug 3 18:04:08 2016 (r303727)
+++ head/sys/arm/allwinner/axp209.c Wed Aug 3 18:45:56 2016 (r303728)
@@ -707,10 +707,10 @@ extern devclass_t ofwgpiobus_devclass, g
extern driver_t ofw_gpiobus_driver, gpioc_driver;
EARLY_DRIVER_MODULE(axp209, iicbus, axp209_driver, axp209_devclass,
- 0, 0, BUS_PASS_RESOURCE + BUS_PASS_ORDER_MIDDLE);
+ 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
EARLY_DRIVER_MODULE(ofw_gpiobus, axp209_pmu, ofw_gpiobus_driver,
- ofwgpiobus_devclass, 0, 0, BUS_PASS_RESOURCE + BUS_PASS_ORDER_MIDDLE);
-EARLY_DRIVER_MODULE(gpioc, axp209_pmu, gpioc_driver, gpioc_devclass,
- 0, 0, BUS_PASS_RESOURCE + BUS_PASS_ORDER_MIDDLE);
+ ofwgpiobus_devclass, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
+DRIVER_MODULE(gpioc, axp209_pmu, gpioc_driver, gpioc_devclass,
+ 0, 0);
MODULE_VERSION(axp209, 1);
MODULE_DEPEND(axp209, iicbus, 1, 1, 1);
More information about the svn-src-head
mailing list