From: kremlin Date: Sun, 12 Feb 2017 02:21:11 +0000 (-0600) Subject: ammusb.c: remove match/attachment + etc cruft X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb1742325cdd18c961d80a8990ee105ec9d703b1;p=bbb-usb.git ammusb.c: remove match/attachment + etc cruft --- diff --git a/src/sys/arch/armv7/omap/ammusb.c b/src/sys/arch/armv7/omap/ammusb.c index 455b2fb..3ce16cd 100644 --- a/src/sys/arch/armv7/omap/ammusb.c +++ b/src/sys/arch/armv7/omap/ammusb.c @@ -90,16 +90,6 @@ int ammusb_match(struct device *parent, void *v, void *aux) { struct fdt_attach_args *faa = aux; -/* int node; - char name[32]; - - if (OF_is_compatible(faa->fa_node, "ti,am33xx-usb")) { - printf("!!HIT!!\n"); - for (node = OF_child(faa->fa_node); node; node = OF_peer(node)) { - - } - }*/ - printf("MAYBE: %d\n", faa->fa_node); return OF_is_compatible(faa->fa_node, "ti,musb-am33xx"); } @@ -117,9 +107,9 @@ ammusb_attach(struct device *parent, struct device *self, void *args) panic("%s: bus_space_map failed!", __func__); rev = HREAD4(sc, 0x0); - printf(" rev 0x%08x\n", rev); - printf("%s: phys: 0x%08llx, size: %08llx\n", DEVNAME(sc), faa->fa_reg[0].addr, - faa->fa_reg[0].size); + printf(": rev %d.%d\n", rev >> 4 &0xf, rev & 0xf); +// printf("%s: phys: 0x%08llx, size: %08llx\n", DEVNAME(sc), faa->fa_reg[0].addr, +// faa->fa_reg[0].size); } int