aboutsummaryrefslogtreecommitdiff
path: root/src/sys/power.c
blob: 8c2f469d794ba20d6c3cb2d7cdead82e535c6481 (plain)
1
2
3
4
5
6
7
8
9
#include <symbols.h>
#include <sys/core.h>
#include <sys/power.h>

void reboot(void)
{
	store32(PM_WDOG, PM_PASSWORD | 1);
	store32(PM_RSTC, PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET);
}