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");
}
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