diff options
author | gonzo <gonzo@FreeBSD.org> | 2016-10-18 19:15:43 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2016-10-18 19:15:43 +0000 |
commit | d22dbc027acd8e1fb3a6cae3a949d867aa316cac (patch) | |
tree | ad5aa9489837faa3ba112340e078e7b0c35b9e8a /sys/dev/usb/controller/dwc_otg_fdt.c | |
parent | 409b6e99037bc3adddcd7fd011bc139e45a45d4e (diff) | |
download | FreeBSD-src-d22dbc027acd8e1fb3a6cae3a949d867aa316cac.zip FreeBSD-src-d22dbc027acd8e1fb3a6cae3a949d867aa316cac.tar.gz |
MFC r307067, r307068, r307087, r307088, r307089,
r307091, r307092, r307093, r307095, r307098,
r307115:
r307067:
Make intc driver compatible with upstream DTS
- Fix compatibility strings
- Properly decode upstream's two-cell interrupt specs. Our home-made dts
does not have two-cell interrupts so no need to preserve backward
compatibility
r307068:
Make Rapsberry Pi watchdog driver compatible with upstream DTS
- Fix compatibility strings
- Compensate the difference in base address for our custom DTS and
upstream one (for backward compatibility)
r307087:
Make sure intc is attached before interrupt consumers
If pass order is not specified devices are attached in the order they are
defined in dts. Some interrupt consumers may be defined before intc. Also
make sure intc interrupt-parent local_intc is attached before intc itself.
r307088:
Add compatible strings used in upstream dts files
r307089:
Make framebuffer driver compatible with upstream DT
- Add compatibility string
- Add simplebus as possible parent bus
r307091:
Add compatibility string from upstream DT
r307092:
Make BCM2835 GPIO driver compatible with upstream DT
- Add compatibility string
- Make reserverd and read-only properties optional
r307093:
Make BCM283x USB driver compatible with upstream DT
- Make resource allocation logic depend on compatibility string
to check what format of DTS node should be used - FreeBSD's or upstream
r307095:
Make VCHI driver compatible with upstream DT
- Add compatibility string
- Compensate difference in base address between our custom DTB and upstream one
r307098:
Make BCM28x USB driver compatible with upstream device tree
This should have been committed in r307093: resource allocation depends
on source of the device tree. upstream dts has extra interrupt that we can
ignore
r307115:
Fix typo in comment
Spotted by: loos
Diffstat (limited to 'sys/dev/usb/controller/dwc_otg_fdt.c')
-rw-r--r-- | sys/dev/usb/controller/dwc_otg_fdt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/dwc_otg_fdt.c b/sys/dev/usb/controller/dwc_otg_fdt.c index 73df72e..20ab0c5 100644 --- a/sys/dev/usb/controller/dwc_otg_fdt.c +++ b/sys/dev/usb/controller/dwc_otg_fdt.c @@ -121,7 +121,12 @@ dwc_otg_attach(device_t dev) sc->sc_otg.sc_io_hdl = rman_get_bushandle(sc->sc_otg.sc_io_res); sc->sc_otg.sc_io_size = rman_get_size(sc->sc_otg.sc_io_res); - rid = 0; + + /* + * brcm,bcm2708-usb FDT provides two interrupts, + * we need only second one (VC_USB) + */ + rid = ofw_bus_is_compatible(dev, "brcm,bcm2708-usb") ? 1 : 0; sc->sc_otg.sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); if (sc->sc_otg.sc_irq_res == NULL) |