// SPDX-License-Identifier: GPL-2.0-only /* * OMAP4 SMP cpu-hotplug support * * Copyright (C) 2010 Texas Instruments, Inc. * Author: * Santosh Shilimkar <santosh.shilimkar@ti.com> * * Platform file needed for the OMAP4 SMP. This file is based on arm * realview smp platform. * Copyright (c) 2002 ARM Limited.
*/
/* * platform-specific code to shutdown a CPU * Called with IRQs disabled
*/ void omap4_cpu_die(unsignedint cpu)
{ unsignedint boot_cpu = 0; void __iomem *base = omap_get_wakeupgen_base();
/* * we're ready for shutdown now, so do it
*/ if (omap_secure_apis_support()) { if (omap_modify_auxcoreboot0(0x0, 0x200) != 0x0)
pr_err("Secure clear status failed\n");
} else {
writel_relaxed(0, base + OMAP_AUX_CORE_BOOT_0);
}
for (;;) { /* * Enter into low power state
*/
omap4_hotplug_cpu(cpu, PWRDM_POWER_OFF);
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.