Lines Matching +full:power +full:- +full:up

1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #define MESON_SMP_SRAM_CPU_CTRL_ADDR_REG(c) (0x04 + ((c - 1) << 2))
31 #define MESON_CPU_PWR_A9_MEM_PD0_M(c) (0x0f << (32 - (c * 4)))
106 meson_smp_prepare_cpus("arm,cortex-a5-scu", "amlogic,meson8b-pmu", in meson8b_smp_prepare_cpus()
107 "amlogic,meson8b-smp-sram"); in meson8b_smp_prepare_cpus()
112 meson_smp_prepare_cpus("arm,cortex-a9-scu", "amlogic,meson8-pmu", in meson8_smp_prepare_cpus()
113 "amlogic,meson8-smp-sram"); in meson8_smp_prepare_cpus()
121 * system without power-cycling, or when taking the CPU offline and in meson_smp_begin_secondary_boot()
128 * SCU Power on CPU (needs to be done before starting the CPU, in meson_smp_begin_secondary_boot()
143 return -ETIMEDOUT; in meson_smp_finalize_secondary_boot()
176 /* CPU power ON */ in meson8_smp_boot_secondary()
180 pr_err("Couldn't wake up CPU%d\n", cpu); in meson8_smp_boot_secondary()
197 pr_err("Failed to de-assert CPU%d reset\n", cpu); in meson8_smp_boot_secondary()
226 /* CPU power UP */ in meson8b_smp_boot_secondary()
230 pr_err("Couldn't power up CPU%d\n", cpu); in meson8b_smp_boot_secondary()
243 /* Memory power UP */ in meson8b_smp_boot_secondary()
247 pr_err("Couldn't power up the memory for CPU%d\n", cpu); in meson8b_smp_boot_secondary()
251 /* Wake up CPU */ in meson8b_smp_boot_secondary()
255 pr_err("Couldn't wake up CPU%d\n", cpu); in meson8b_smp_boot_secondary()
280 pr_err("Failed to de-assert CPU%d reset\n", cpu); in meson8b_smp_boot_secondary()
326 pr_err("Error while waiting for SCU power-off on CPU%d\n", in meson8_smp_cpu_kill()
328 return -ETIMEDOUT; in meson8_smp_cpu_kill()
343 /* CPU power OFF */ in meson8_smp_cpu_kill()
368 pr_err("Error while waiting for SCU power-off on CPU%d\n", in meson8b_smp_cpu_kill()
370 return -ETIMEDOUT; in meson8b_smp_cpu_kill()
375 /* CPU power DOWN */ in meson8b_smp_cpu_kill()
379 pr_err("Couldn't power down CPU%d\n", cpu); in meson8b_smp_cpu_kill()
401 /* Memory power DOWN */ in meson8b_smp_cpu_kill()
405 pr_err("Couldn't power down the memory of CPU%d\n", cpu); in meson8b_smp_cpu_kill()
431 CPU_METHOD_OF_DECLARE(meson8_smp, "amlogic,meson8-smp", &meson8_smp_ops);
432 CPU_METHOD_OF_DECLARE(meson8b_smp, "amlogic,meson8b-smp", &meson8b_smp_ops);