[U-Boot] [PATCH v3 17/17] riscv: Move do_reset() to a common place