aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-07-11 05:06:20 -0400
committerThierry Reding <treding@nvidia.com>2014-07-17 08:58:42 -0400
commitc090e111633cd82e4e0f72c7e964460676ad1250 (patch)
tree024d03408e6058f769680207462399ffc5997db8 /arch/arm/mach-tegra
parent05ccf19602cc16fc96401b4f2617d1b8e20e642d (diff)
ARM: tegra: Always lock the CPU reset vector
Currently the reset vector is not locked on Tegra20 because the hardware doesn't support it. However in order not to depend on the chip ID, which becomes available only later in the boot process, we set the bit anyway. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/reset.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/reset.c b/arch/arm/mach-tegra/reset.c
index 5377495d41b8..894c5c472184 100644
--- a/arch/arm/mach-tegra/reset.c
+++ b/arch/arm/mach-tegra/reset.c
@@ -54,12 +54,10 @@ static void __init tegra_cpu_reset_handler_set(const u32 reset_address)
54 * Prevent further modifications to the physical reset vector. 54 * Prevent further modifications to the physical reset vector.
55 * NOTE: Has no effect on chips prior to Tegra30. 55 * NOTE: Has no effect on chips prior to Tegra30.
56 */ 56 */
57 if (tegra_get_chip_id() != TEGRA20) { 57 reg = readl(sb_ctrl);
58 reg = readl(sb_ctrl); 58 reg |= 2;
59 reg |= 2; 59 writel(reg, sb_ctrl);
60 writel(reg, sb_ctrl); 60 wmb();
61 wmb();
62 }
63} 61}
64 62
65static void __init tegra_cpu_reset_handler_enable(void) 63static void __init tegra_cpu_reset_handler_enable(void)