From: kremlin Date: Sun, 12 Feb 2017 04:32:28 +0000 (-0600) Subject: bind to IRQ & pull in lots of ehci/usb sources X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=007cf0f6055355fcb2780a7bcb0de352f9839585;p=bbb-usb.git bind to IRQ & pull in lots of ehci/usb sources --- diff --git a/src/sys/arch/armv7/omap/ammusb.c b/src/sys/arch/armv7/omap/ammusb.c index eedb979..727312b 100644 --- a/src/sys/arch/armv7/omap/ammusb.c +++ b/src/sys/arch/armv7/omap/ammusb.c @@ -28,12 +28,21 @@ #include #include #include +#include + +#include #include #include - #include +#include +#include +#include +#include +#include +#include + #include #include @@ -138,8 +147,14 @@ ammusb_attach(struct device *parent, struct device *self, void *args) &sc->sc_ioh_ctl)) panic("%s: bus_space_map failed!", __func__); + /* not the right revision number XXX */ rev = HREAD4(sc, sc->sc_ioh_ctl, 0x0); printf(": rev %d.%d\n", rev >> 4 &0xf, rev & 0xf); + + sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_USB, ehci_intr, + &sc->sc_dev, DEVNAME(sc)); + + /* XXX set OTG state here */ } int