kernel: mtk_bmt: add abstraction for supporting other formats