// SPDX-License-Identifier: GPL-2.0-only /* * Device Tree support for Armada 370 and XP platforms. * * Copyright (C) 2012 Marvell * * Lior Amsalem <alior@marvell.com> * Gregory CLEMENT <gregory.clement@free-electrons.com> * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*/
/* * Enables the SCU when available. Obviously, this is only useful on * Cortex-A based SOCs, not on PJ4B based ones.
*/ staticvoid __init mvebu_scu_enable(void)
{ struct device_node *np =
of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); if (np) {
scu_base = of_iomap(np, 0);
scu_enable(scu_base);
of_node_put(np);
}
}
/* * When returning from suspend, the platform goes through the * bootloader, which executes its DDR3 training code. This code has * the unfortunate idea of using the first 10 KB of each DRAM bank to * exercise the RAM and calculate the optimal timings. Therefore, this * area of RAM is overwritten, and shouldn't be used by the kernel if * suspend/resume is supported.
*/
/* * Only revisons more recent than A0 support the offload * mechanism. We can exit only if we are sure that we can * get the SoC revision and it is more recent than A0.
*/ if (mvebu_get_soc_id(&dev, &rev) == 0 && rev > MV78XX0_A0_REV) return;
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.