2 * Copyright (C) 2012-2014 Panasonic Corporation
3 * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/sc-regs.h>
11 #include <asm/arch/board.h>
13 void reset_cpu(unsigned long ignored)
17 uniphier_board_reset();
19 writel(5, SC_IRQTIMSET); /* default value */
21 tmp = readl(SC_SLFRSTSEL);
22 tmp &= ~0x3; /* mask [1:0] */
23 tmp |= 0x0; /* XRST reboot */
24 writel(tmp, SC_SLFRSTSEL);
26 tmp = readl(SC_SLFRSTCTL);
28 writel(tmp, SC_SLFRSTCTL);