aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_hdmi.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-10-10 11:20:01 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-10-11 09:53:06 +0200
commit4b1c924b1fc15e68251ad0186b5004858d0f147b (patch)
treec138f600d70cd682afcc73fb76bd7fb92a4a4fe7 /drivers/gpu/drm/sun4i/sun4i_hdmi.h
parentdrm/sun4i: hdmi: Disable clks in bind function error path and unbind function (diff)
downloadlinux-dev-4b1c924b1fc15e68251ad0186b5004858d0f147b.tar.xz
linux-dev-4b1c924b1fc15e68251ad0186b5004858d0f147b.zip
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
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_hdmi.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_hdmi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi.h b/drivers/gpu/drm/sun4i/sun4i_hdmi.h
index a1f8cba251a2..aef157d3b659 100644
--- a/drivers/gpu/drm/sun4i/sun4i_hdmi.h
+++ b/drivers/gpu/drm/sun4i/sun4i_hdmi.h
@@ -163,6 +163,7 @@ struct sun4i_hdmi {
struct device *dev;
void __iomem *base;
+ struct regmap *regmap;
/* Parent clocks */
struct clk *bus_clk;