/* The EEPROM is missing and the default values are bogus. This forces USB in
* to EHCI mode */ staticvoid quirk_ppc_currituck_usb_fixup(struct pci_dev *dev)
{ if (of_machine_is_compatible("ibm,currituck")) {
pci_write_config_dword(dev, 0xe0, 0x0114231f);
pci_write_config_dword(dev, 0xe4, 0x00006c40);
}
}
DECLARE_PCI_FIXUP_HEADER(0x1033, 0x0035, quirk_ppc_currituck_usb_fixup);
/* Akebono has an AVR microcontroller attached to the I2C bus
* which is used to power off/reset the system. */
/* Flags for the power control I2C commands */ #define AVR_PWRCTL_PWROFF (0x01) #define AVR_PWRCTL_RESET (0x02)
staticstruct i2c_client *avr_i2c_client; staticvoid __noreturn avr_halt_system(int pwrctl_flags)
{ /* Request the AVR to reset the system */
i2c_smbus_write_byte_data(avr_i2c_client,
AVR_PWRCTL_CMD, pwrctl_flags);
/* Find top level interrupt controller */
for_each_node_with_property(np, "interrupt-controller") { if (!of_property_present(np, "interrupts")) break;
} if (np == NULL)
panic("Can't find top level interrupt controller");
/* Check type and do appropriate initialization */ if (of_device_is_compatible(np, "chrp,open-pic")) { /* The MPIC driver will get everything it needs from the * device-tree, just pass 0 to all arguments
*/ struct mpic *mpic =
mpic_alloc(np, 0, MPIC_NO_RESET, 0, 0, " MPIC ");
BUG_ON(mpic == NULL);
mpic_init(mpic);
ppc_md.get_irq = mpic_get_irq;
} else
panic("Unrecognized top level interrupt controller");
/* Assume spin table. We could test for the enable-method in * the device-tree but currently there's little point as it's * our only supported method
*/
spin_table_addr_prop =
of_get_property(cpunode, "cpu-release-addr", NULL);
/* Assume it's mapped as part of the linear mapping. This is a bit * fishy but will work fine for now * * XXX: Is there any reason to assume differently?
*/
spin_table = (u32 *)__va(*spin_table_addr_prop);
pr_debug("CPU%d: Spin table mapped at %p\n", cpu, spin_table);
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.