drm: meson: vpp: use proper macros instead of magic constants
authorJulien Masson <jmasson@baylibre.com>
Mon, 24 Jun 2019 14:48:35 +0000 (16:48 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 9 Aug 2019 10:04:39 +0000 (12:04 +0200)
commit0ce266d018f4749c7049df76d7f670a675bfa9c6
tree396d4012b8cbd101d8959e1dffa97d3e86781d23
parentbfb86819829e5ed5eaba4b9449ecfe6db4f9f91e
drm: meson: vpp: use proper macros instead of magic constants

This patch add new macros which are used to set the following
registers:
- VPP_OSD_SCALE_COEF_IDX
- VPP_DOLBY_CTRL
- VPP_OFIFO_SIZE
- VPP_HOLD_LINES
- VPP_SC_MISC
- VPP_VADJ_CTRL

Signed-off-by: Julien Masson <jmasson@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
[narmstrong: put back 0x1020080 in VPP_DUMMY_DATA1 for GXM]
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/86tvcf82eu.fsf@baylibre.com
drivers/gpu/drm/meson/meson_registers.h
drivers/gpu/drm/meson/meson_vpp.c