04-15-2016, 12:24 AM
(04-14-2016, 10:49 PM)patrickhwood Wrote: Looks like it's not set up. Only used to reboot the CPU in arch/arm64/kernel/cpu_ops_sunxi.c:
static void sunxi_sys_reset(char str, const char *cmd)
{
writel(0x0, sun50i_watchdog_base + 0xA0);
writel(1, sun50i_watchdog_base + 0xB4);
writel((0x3 << 4), sun50i_watchdog_base + 0xB8);
writel(0x01, sun50i_watchdog_base + 0xB8);
while (1)
;
}
See the reference manual: https://github.com/OLIMEX/OLINUXINO/raw/...20v1.0.pdf section 3.6 for the dirty details.
Thank you for pointing me in the right direction!