// SPDX-License-Identifier: GPL-2.0-only /* * CPU idle Marvell Kirkwood SoCs * * The cpu idle uses wait-for-interrupt and DDR self refresh in order * to implement two idle states - * #1 wait-for-interrupt * #2 wait-for-interrupt and DDR self refresh * * Maintainer: Jason Cooper <jason@lakedaemon.net> * Maintainer: Andrew Lunn <andrew@lunn.ch>
*/
/* Actual code that puts the SoC in different idle states */ staticint kirkwood_enter_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index)
{
writel(0x7, ddr_operation_base);
cpu_do_idle();
/* Initialize CPU idle by registering the idle states */ staticint kirkwood_cpuidle_probe(struct platform_device *pdev)
{
ddr_operation_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ddr_operation_base)) return PTR_ERR(ddr_operation_base);
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.