[PATCH v4 1/8] riscv: Rework riscv timer driver to only support S-mode