[PATCH 6.18 290/312] drm/mgag200: Fix big-endian support