aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynq/common.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-03-20 06:42:15 -0400
committerMichal Simek <michal.simek@xilinx.com>2013-04-04 03:22:29 -0400
commit96790f0a283976bc59f68657237293fe97b02334 (patch)
tree9d15142ec7d3c6b7acecabcd2a686051cf733af0 /arch/arm/mach-zynq/common.c
parent64b889b39e9958fdcfe5e9b7aa1ac0ffca3fc9a2 (diff)
arm: zynq: Add support for system reset
Do system reset via slcr registers. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq/common.c')
-rw-r--r--arch/arm/mach-zynq/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c
index cd3968c28904..f0a8533af1f9 100644
--- a/arch/arm/mach-zynq/common.c
+++ b/arch/arm/mach-zynq/common.c
@@ -92,6 +92,11 @@ static void __init xilinx_map_io(void)
92 zynq_scu_map_io(); 92 zynq_scu_map_io();
93} 93}
94 94
95static void zynq_system_reset(char mode, const char *cmd)
96{
97 zynq_slcr_system_reset();
98}
99
95static const char *xilinx_dt_match[] = { 100static const char *xilinx_dt_match[] = {
96 "xlnx,zynq-zc702", 101 "xlnx,zynq-zc702",
97 "xlnx,zynq-7000", 102 "xlnx,zynq-7000",
@@ -104,4 +109,5 @@ MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform")
104 .init_machine = xilinx_init_machine, 109 .init_machine = xilinx_init_machine,
105 .init_time = xilinx_zynq_timer_init, 110 .init_time = xilinx_zynq_timer_init,
106 .dt_compat = xilinx_dt_match, 111 .dt_compat = xilinx_dt_match,
112 .restart = zynq_system_reset,
107MACHINE_END 113MACHINE_END