X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=bbb-usb.git;a=blobdiff_plain;f=src%2Fsys%2Farch%2Farmv7%2Fomap%2Famusbss.c;h=53b16c2cfbe41d269510a62a3891af946c119105;hp=67fade6ee6d8dc064a1cca2fb70416f2e32ac64b;hb=HEAD;hpb=8d587cd8de9c1379c0e888ec21bdd4faaacea1e3 diff --git a/src/sys/arch/armv7/omap/amusbss.c b/src/sys/arch/armv7/omap/amusbss.c index 67fade6..53b16c2 100644 --- a/src/sys/arch/armv7/omap/amusbss.c +++ b/src/sys/arch/armv7/omap/amusbss.c @@ -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")) {