Skip to content

Commit

Permalink
ARM: EXYNOS: fix software reset logic for EXYNOS5440 SOC
Browse files Browse the repository at this point in the history
This patch fixes software reset logic. Software reset applies only to
powered-on domains in SOC because software reset to all domains causes
reboot failure.

Signed-off-by: Jungseok Lee <jays.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Jungseok Lee authored and Kukjin Kim committed May 24, 2013
1 parent 68a433f commit 1ba830c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/mach-exynos/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,16 @@ void exynos5_restart(char mode, const char *cmd)
val = 0x1;
addr = EXYNOS_SWRESET;
} else if (of_machine_is_compatible("samsung,exynos5440")) {
u32 status;
np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock");

addr = of_iomap(np, 0) + 0xbc;
status = __raw_readl(addr);

addr = of_iomap(np, 0) + 0xcc;
val = (0xfff << 20) | (0x1 << 16);
val = __raw_readl(addr);

val = (val & 0xffff0000) | (status & 0xffff);
} else {
pr_err("%s: cannot support non-DT\n", __func__);
return;
Expand Down

0 comments on commit 1ba830c

Please sign in to comment.