2 * Copyright (C) 2013 Altera Corporation <www.altera.com>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/reset_manager.h>
12 DECLARE_GLOBAL_DATA_PTR;
14 static const struct socfpga_reset_manager *reset_manager_base =
15 (void *)SOCFPGA_RSTMGR_ADDRESS;
18 * Write the reset manager register to cause reset
20 void reset_cpu(ulong addr)
22 /* request a warm reset */
23 writel(1 << RSTMGR_CTRL_SWWARMRSTREQ_LSB,
24 &reset_manager_base->ctrl);
26 * infinite loop here as watchdog will trigger and reset