diff --git a/fpga_io.cpp b/fpga_io.cpp index a4ee7bc..c0c2c86 100644 --- a/fpga_io.cpp +++ b/fpga_io.cpp @@ -602,6 +602,8 @@ void reboot(int cold) sync(); fpga_core_reset(1); + usleep(500000); + writel(cold ? 0 : 0x1, &reset_regs->tstscratch); writel(2, &reset_regs->ctrl); while (1);