提交 eff4e7c7 编写于 作者: C Chander Kashyap 提交者: Kukjin Kim

ARM: EXYNOS: extend soft-reset support for EXYNOS5420

Extend the soft reset support for EXYNOS5420 SoC.
Signed-off-by: NChander Kashyap <chander.kashyap@linaro.org>
Reviewed-by: NTomasz Figa <t.figa@samsung.com>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 1580be3d
...@@ -329,10 +329,10 @@ void exynos5_restart(char mode, const char *cmd) ...@@ -329,10 +329,10 @@ void exynos5_restart(char mode, const char *cmd)
u32 val; u32 val;
void __iomem *addr; void __iomem *addr;
if (of_machine_is_compatible("samsung,exynos5250")) { val = 0x1;
val = 0x1; addr = EXYNOS_SWRESET;
addr = EXYNOS_SWRESET;
} else if (of_machine_is_compatible("samsung,exynos5440")) { if (of_machine_is_compatible("samsung,exynos5440")) {
u32 status; u32 status;
np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock");
...@@ -343,9 +343,6 @@ void exynos5_restart(char mode, const char *cmd) ...@@ -343,9 +343,6 @@ void exynos5_restart(char mode, const char *cmd)
val = __raw_readl(addr); val = __raw_readl(addr);
val = (val & 0xffff0000) | (status & 0xffff); val = (val & 0xffff0000) | (status & 0xffff);
} else {
pr_err("%s: cannot support non-DT\n", __func__);
return;
} }
__raw_writel(val, addr); __raw_writel(val, addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册