X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fusb%2Fmain.c;h=fac37805be7f555a90f5ef128e258932bf1fee5e;hb=3c80f40ba93f3f042dd12671d690e96877ef0eac;hp=57f75a44162f93635161182b7a8cc5013f3d1fdd;hpb=0eb34487ee8e70ecb8e4ee2ed5092b2788eb7f26;p=carl9170fw.git diff --git a/carlfw/usb/main.c b/carlfw/usb/main.c index 57f75a4..fac3780 100644 --- a/carlfw/usb/main.c +++ b/carlfw/usb/main.c @@ -272,12 +272,14 @@ static void turn_power_off(void) void __noreturn reboot(void) { + set(AR9170_MAC_REG_DMA_TRIGGER, 0); + /* write watchdog magic pattern for suspend */ andl(AR9170_PWR_REG_WATCH_DOG_MAGIC, 0xffff); orl(AR9170_PWR_REG_WATCH_DOG_MAGIC, 0x98760000); /* Disable watchdog */ - orl(AR9170_TIMER_REG_WATCH_DOG, 0xffff); + set(AR9170_TIMER_REG_WATCH_DOG, 0xffff); /* Turn off power */ turn_power_off();