Skip to content

Commit

Permalink
ARM: tegra: Always lock the CPU reset vector
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thierryreding committed Jul 17, 2014
1 parent 05ccf19 commit c090e11
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions arch/arm/mach-tegra/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ static void __init tegra_cpu_reset_handler_set(const u32 reset_address)
* Prevent further modifications to the physical reset vector.
* NOTE: Has no effect on chips prior to Tegra30.
*/
if (tegra_get_chip_id() != TEGRA20) {
reg = readl(sb_ctrl);
reg |= 2;
writel(reg, sb_ctrl);
wmb();
}
reg = readl(sb_ctrl);
reg |= 2;
writel(reg, sb_ctrl);
wmb();
}

static void __init tegra_cpu_reset_handler_enable(void)
Expand Down

0 comments on commit c090e11

Please sign in to comment.