[PATCH v2] drm/ast: Add detect function support