2 * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
12 void reset_cpu(unsigned long ignored)
16 writel(5, SC_IRQTIMSET); /* default value */
18 tmp = readl(SC_SLFRSTSEL);
19 tmp &= ~0x3; /* mask [1:0] */
20 tmp |= 0x0; /* XRST reboot */
21 writel(tmp, SC_SLFRSTSEL);
23 tmp = readl(SC_SLFRSTCTL);
25 writel(tmp, SC_SLFRSTCTL);