mips_m4k: add optional reset handler