[RFC PATCH 1/2] drm/mediatek: extract common functions from the mtk hdmi driver