]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Implement a register layout abstraction
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Sep 2020 08:01:23 +0000 (10:01 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Sep 2020 16:05:52 +0000 (18:05 +0200)
commit4a942fcd77b57458fe3ac665bb4a6b863f75f9f3
treedb9e9302096d8c4ad3c88d51e3e57d77ffcc048a
parent8a9b077cb91e6344c598ad8da4f5586c7d8eefa5
drm/vc4: hdmi: Implement a register layout abstraction

The HDMI controllers found in the BCM2711 have most of the registers
reorganized in multiple registers areas and at different offsets than
previously found.

The logic however remains pretty much the same, so it doesn't really make
sense to create a whole new driver and we should share the code as much as
possible.

Let's implement some indirection to wrap around a register and depending on
the variant will lookup the associated register on that particular variant.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/3070236daff920e7edd11c5a72ac31fd0f6a656b.1599120059.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h
drivers/gpu/drm/vc4/vc4_hdmi_regs.h [new file with mode: 0644]
drivers/gpu/drm/vc4/vc4_regs.h