]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
drm/sun4i: hdmi: create a regmap for later use
authorChen-Yu Tsai <wens@csie.org>
Tue, 10 Oct 2017 03:20:01 +0000 (11:20 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 11 Oct 2017 07:53:06 +0000 (09:53 +0200)
commit4b1c924b1fc15e68251ad0186b5004858d0f147b
treec138f600d70cd682afcc73fb76bd7fb92a4a4fe7
parent544c5048bcdc5d5c395d99d61ab7a52964a1420b
drm/sun4i: hdmi: create a regmap for later use

The HDMI driver is written with readl/writel I/O to the registers.
However, to support the A31 variant, which has a different layout
for the DDC registers, it was recommended to use regfields to have
a cleaner implementation. To use regfields, we need to create an
underlying regmap.

This patch only adds the regmap. It does not convert the existing
driver accesses to use regmap.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171010032008.682-5-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_hdmi.h
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c