summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv/mv_localbus.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-11-05 13:48:34 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-11-05 13:48:34 +0000
commitb72e9af55a32a9886ca2d4aaba3d75cd71cbc358 (patch)
treeaea45e5f4cb06933bb48db2b452a0c14ebc5e400 /sys/arm/mv/mv_localbus.c
parente6d38ec2e5221ea27c247a2709c8e21cc706205c (diff)
downloadFreeBSD-src-b72e9af55a32a9886ca2d4aaba3d75cd71cbc358.zip
FreeBSD-src-b72e9af55a32a9886ca2d4aaba3d75cd71cbc358.tar.gz
Teach nexus(4) about Open Firmware (e.g. FDT) on ARM and MIPS, retiring
fdtbus in most cases. This brings ARM and MIPS more in line with existing Open Firmware platforms like sparc64 and powerpc, as well as preventing double-enumeration of the OF tree on embedded PowerPC (first through nexus, then through fdtbus). This change is also designed to simplify resource management on FDT platforms by letting there exist a platform-defined root bus resource_activate() call instead of replying on fdtbus to do the right thing through fdt_bs_tag. The OFW_BUS_MAP_INTR() and OFW_BUS_CONFIG_INTR() kobj methods are also available to implement for similar purposes. Discussed on: -arm, -mips Tested by: zbb, brooks, imp, and others MFC after: 6 weeks
Diffstat (limited to 'sys/arm/mv/mv_localbus.c')
-rw-r--r--sys/arm/mv/mv_localbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/mv_localbus.c b/sys/arm/mv/mv_localbus.c
index 5258b0a..7172096 100644
--- a/sys/arm/mv/mv_localbus.c
+++ b/sys/arm/mv/mv_localbus.c
@@ -156,7 +156,7 @@ static struct localbus_bank localbus_banks[MV_LOCALBUS_MAX_BANKS];
devclass_t localbus_devclass;
-DRIVER_MODULE(localbus, fdtbus, localbus_driver, localbus_devclass, 0, 0);
+DRIVER_MODULE(localbus, nexus, localbus_driver, localbus_devclass, 0, 0);
static int
fdt_localbus_reg_decode(phandle_t node, struct localbus_softc *sc,
OpenPOWER on IntegriCloud