diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-11-05 13:48:34 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-11-05 13:48:34 +0000 |
commit | b72e9af55a32a9886ca2d4aaba3d75cd71cbc358 (patch) | |
tree | aea45e5f4cb06933bb48db2b452a0c14ebc5e400 /sys/arm/mv | |
parent | e6d38ec2e5221ea27c247a2709c8e21cc706205c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/arm/mv/mv_localbus.c | 2 | ||||
-rw-r--r-- | sys/arm/mv/mv_pci.c | 2 |
2 files changed, 2 insertions, 2 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, diff --git a/sys/arm/mv/mv_pci.c b/sys/arm/mv/mv_pci.c index 8a96389..b0aa974 100644 --- a/sys/arm/mv/mv_pci.c +++ b/sys/arm/mv/mv_pci.c @@ -230,7 +230,7 @@ static driver_t mv_pcib_driver = { devclass_t pcib_devclass; -DRIVER_MODULE(pcib, fdtbus, mv_pcib_driver, pcib_devclass, 0, 0); +DRIVER_MODULE(pcib, nexus, mv_pcib_driver, pcib_devclass, 0, 0); static struct mtx pcicfg_mtx; |