[PATCH 6/7] riscv: add CONFIG_API support