staticint __init ppc460ex_canyonlands_fixup(void)
{
u8 __iomem *bcsr ; void __iomem *vaddr; struct device_node *np; int ret = 0;
np = of_find_compatible_node(NULL, NULL, "amcc,ppc460ex-bcsr"); if (!np) {
printk(KERN_ERR "failed did not find amcc, ppc460ex bcsr node\n"); return -ENODEV;
}
bcsr = of_iomap(np, 0);
of_node_put(np);
if (!bcsr) {
printk(KERN_CRIT "Could not remap bcsr\n");
ret = -ENODEV; goto err_bcsr;
}
np = of_find_compatible_node(NULL, NULL, "ibm,ppc4xx-gpio"); if (!np) {
printk(KERN_ERR "failed did not find ibm,ppc4xx-gpio node\n"); return -ENODEV;
}
vaddr = of_iomap(np, 0);
of_node_put(np);
if (!vaddr) {
printk(KERN_CRIT "Could not get gpio node address\n");
ret = -ENODEV; goto err_gpio;
} /* Disable USB, through the BCSR7 bits */
setbits8(&bcsr[7], BCSR_USB_EN);
/* Wait for a while after reset */
msleep(100);
/* Enable USB here */
clrbits8(&bcsr[7], BCSR_USB_EN);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.