]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-uniphier/reset.c
2 * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <mach/sc-regs.h>
11 void reset_cpu(unsigned long ignored
)
15 writel(5, SC_IRQTIMSET
); /* default value */
17 tmp
= readl(SC_SLFRSTSEL
);
18 tmp
&= ~0x3; /* mask [1:0] */
19 tmp
|= 0x0; /* XRST reboot */
20 writel(tmp
, SC_SLFRSTSEL
);
22 tmp
= readl(SC_SLFRSTCTL
);
24 writel(tmp
, SC_SLFRSTCTL
);