Commit 2e7aea3d authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra: PMC: check if a CPU is already online



This patch checks if the target CPU is already online before
proceeding with it's power ON sequence.
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
parent 03cd23a1
......@@ -51,6 +51,13 @@ void tegra_pmc_cpu_on(int cpu)
{
uint32_t val;
/*
* Check if CPU is already power ungated
*/
val = tegra_pmc_read_32(PMC_PWRGATE_STATUS);
if (val & (1 << pmc_cpu_powergate_id[cpu]))
return;
/*
* The PMC deasserts the START bit when it starts the power
* ungate process. Loop till no power toggle is in progress.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment