[PATCH 22/25] drm/armada: extract register generation from armada_drm_primary_set()