2 * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include <asm/arch/tegra.h>
20 #include <asm/arch-tegra/pmc.h>
21 #include "../tegra-common/cpu.h"
23 static void enable_cpu_power_rail(void)
25 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE;
28 reg = readl(&pmc->pmc_cntrl);
30 writel(reg, &pmc->pmc_cntrl);
33 * The TI PMU65861C needs a 3.75ms delay between enabling
34 * the power rail and enabling the CPU clock. This delay
35 * between SM1EN and SM1 is for switching time + the ramp
36 * up of the voltage to the CPU (VDD_CPU from PMU).
41 void start_cpu(u32 reset_vector)
44 enable_cpu_power_rail();
46 /* Hold the CPUs in reset */
49 /* Disable the CPU clock */
52 /* Enable CoreSight */
53 clock_enable_coresight(1);
56 * Set the entry point for CPU execution from reset,
57 * if it's a non-zero value.
60 writel(reset_vector, EXCEP_VECTOR_CPU_RESET_VECTOR);
62 /* Enable the CPU clock */
65 /* If the CPU doesn't already have power, power it up */
68 /* Take the CPU out of reset */