提交 c090e111 编写于 作者: T Thierry Reding

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: NThierry Reding <treding@nvidia.com>
上级 05ccf196
...@@ -54,12 +54,10 @@ static void __init tegra_cpu_reset_handler_set(const u32 reset_address) ...@@ -54,12 +54,10 @@ static void __init tegra_cpu_reset_handler_set(const u32 reset_address)
* Prevent further modifications to the physical reset vector. * Prevent further modifications to the physical reset vector.
* NOTE: Has no effect on chips prior to Tegra30. * NOTE: Has no effect on chips prior to Tegra30.
*/ */
if (tegra_get_chip_id() != TEGRA20) { reg = readl(sb_ctrl);
reg = readl(sb_ctrl); reg |= 2;
reg |= 2; writel(reg, sb_ctrl);
writel(reg, sb_ctrl); wmb();
wmb();
}
} }
static void __init tegra_cpu_reset_handler_enable(void) static void __init tegra_cpu_reset_handler_enable(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册