aboutsummaryrefslogtreecommitdiff
path: root/src/sys/power.c
blob: 4abee01fed02dfc64ed4ea3e9de846bcacacec9b (plain)
1
2
3
4
5
6
7
#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);
}