aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga/socfpga.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-socfpga/socfpga.c')
-rw-r--r--arch/arm/mach-socfpga/socfpga.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c
index 8ea11b472b91..bfce9641e32f 100644
--- a/arch/arm/mach-socfpga/socfpga.c
+++ b/arch/arm/mach-socfpga/socfpga.c
@@ -19,6 +19,7 @@
19#include <linux/of_address.h> 19#include <linux/of_address.h>
20#include <linux/of_irq.h> 20#include <linux/of_irq.h>
21#include <linux/of_platform.h> 21#include <linux/of_platform.h>
22#include <linux/reboot.h>
22 23
23#include <asm/hardware/cache-l2x0.h> 24#include <asm/hardware/cache-l2x0.h>
24#include <asm/mach/arch.h> 25#include <asm/mach/arch.h>
@@ -89,13 +90,13 @@ static void __init socfpga_init_irq(void)
89 socfpga_sysmgr_init(); 90 socfpga_sysmgr_init();
90} 91}
91 92
92static void socfpga_cyclone5_restart(char mode, const char *cmd) 93static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
93{ 94{
94 u32 temp; 95 u32 temp;
95 96
96 temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL); 97 temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
97 98
98 if (mode == 'h') 99 if (mode == REBOOT_HARD)
99 temp |= RSTMGR_CTRL_SWCOLDRSTREQ; 100 temp |= RSTMGR_CTRL_SWCOLDRSTREQ;
100 else 101 else
101 temp |= RSTMGR_CTRL_SWWARMRSTREQ; 102 temp |= RSTMGR_CTRL_SWWARMRSTREQ;