update config, add cheats to amusbss, bind to intr in ammusb
[bbb-usb.git] / src / sys / arch / armv7 / omap / amusbss.c
index 67fade6ee6d8dc064a1cca2fb70416f2e32ac64b..53b16c2cfbe41d269510a62a3891af946c119105 100644 (file)
@@ -86,6 +86,7 @@ int amusbss_debug = 20;
 
 struct amusbss_softc {
        struct device           sc_dev;
+//     struct simplebus_softc  sc_sbus;
        bus_space_tag_t         sc_iot;
        void                    *sc_ih;
        bus_dma_tag_t           sc_dmat;
@@ -99,6 +100,9 @@ struct amusbss_softc {
        bus_size_t              sc_ios_queue;
 };
 
+/* XXX figure out what to do instead of this XXX */
+extern void simplebus_attach_node(struct device *, int);
+
 /* core decl */
 int  amusbss_match(struct device *, void *, void *);
 void amusbss_attach(struct device *, struct device *, void *);
@@ -160,6 +164,9 @@ amusbss_attach(struct device *parent, struct device *self, void *args)
        rev = HREAD4(sc, USBSS_REVREG);
        printf(": rev %d.%d\n", rev >> 4 &0xf, rev & 0xf);
 
+       //faa->fa_node = node;
+       //simplebus_attach(parent, &sc->sc_sbus.sc_dev, faa);
+
        /* Walk FDT child nodes to attach ammusb devices, map DMA controllers */
        for (node = OF_child(faa->fa_node); node > 0; node = OF_peer(node)) {
            if (OF_is_compatible(node, "ti,am3359-cppi41")) {