[PATCH v3 5/6] riscv: starfive: avoid including common.h