#include <sys/systm.h>
#include <sys/device.h>
#include <sys/kernel.h>
+#include <sys/rwlock.h>
+
+#include <machine/intr.h>
#include <dev/ofw/openfirm.h>
#include <dev/ofw/fdt.h>
-
#include <machine/fdt.h>
+#include <dev/usb/usb.h>
+#include <dev/usb/usbdi.h>
+#include <dev/usb/usbdivar.h>
+#include <dev/usb/usb_mem.h>
+#include <dev/usb/ehcireg.h>
+#include <dev/usb/ehcivar.h>
+
#include <armv7/omap/prcmvar.h>
#include <armv7/omap/sitara_cm.h>
&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