Skip to content

Commit f7a1a1d

Browse files
committed
Merge tag 'socfpga_update_for_v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into arm/fixes
SoCFPGA updates for v5.5 - Issue COLD reboot by default for SoCFPGA platforms * tag 'socfpga_update_for_v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: arm: socfpga: execute cold reboot by default Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Olof Johansson <[email protected]>
2 parents e89d108 + 7168645 commit f7a1a1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/arm/mach-socfpga/socfpga.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
7373

7474
temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
7575

76-
if (mode == REBOOT_HARD)
77-
temp |= RSTMGR_CTRL_SWCOLDRSTREQ;
78-
else
76+
if (mode == REBOOT_WARM)
7977
temp |= RSTMGR_CTRL_SWWARMRSTREQ;
78+
else
79+
temp |= RSTMGR_CTRL_SWCOLDRSTREQ;
8080
writel(temp, rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
8181
}
8282

@@ -86,10 +86,10 @@ static void socfpga_arria10_restart(enum reboot_mode mode, const char *cmd)
8686

8787
temp = readl(rst_manager_base_addr + SOCFPGA_A10_RSTMGR_CTRL);
8888

89-
if (mode == REBOOT_HARD)
90-
temp |= RSTMGR_CTRL_SWCOLDRSTREQ;
91-
else
89+
if (mode == REBOOT_WARM)
9290
temp |= RSTMGR_CTRL_SWWARMRSTREQ;
91+
else
92+
temp |= RSTMGR_CTRL_SWCOLDRSTREQ;
9393
writel(temp, rst_manager_base_addr + SOCFPGA_A10_RSTMGR_CTRL);
9494
}
9595

0 commit comments

Comments
 (0)