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