/* * xMon may have enabled part of L2 as SRAM, so we need to set it * up for all cache mode just to be safe.
*/
printk(KERN_INFO "xes_mpc85xx: Enabling L2 as cache\n");
ctl = MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2I; if (of_machine_is_compatible("MPC8540") ||
of_machine_is_compatible("MPC8560")) /* * Assume L2 SRAM is used fully for cache, so set * L2BLKSZ (bits 4:5) to match L2SIZ (bits 2:3).
*/
ctl |= (tmp & MPC85xx_L2CTL_L2SIZ_MASK) >> 2;
staticvoid __init xes_mpc85xx_fixups(void)
{ struct device_node *np; int err;
/* * Legacy xMon firmware on some X-ES boards does not enable L2 * as cache. We must ensure that they get enabled here.
*/
for_each_node_by_name(np, "l2-cache-controller") { struct resource r[2]; void __iomem *l2_base;
/* Only MPC8548, MPC8540, and MPC8560 boards are affected */ if (!of_device_is_compatible(np, "fsl,mpc8548-l2-cache-controller") &&
!of_device_is_compatible(np, "fsl,mpc8540-l2-cache-controller") &&
!of_device_is_compatible(np, "fsl,mpc8560-l2-cache-controller")) continue;
err = of_address_to_resource(np, 0, &r[0]); if (err) {
printk(KERN_WARNING "xes_mpc85xx: Could not get " "resource for device tree node '%pOF'",
np); continue;
}
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.