summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sun4i/Makefile
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2017-07-02 10:27:10 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-07-17 09:21:39 +0300
commitf0a3dd33ba685bc50f78455aec832ebcc129a687 (patch)
treefaf350bde9ed1d8728981dd7f066f0631c1cfe2a /drivers/gpu/drm/sun4i/Makefile
parent934d1431929bb5ecde68fb38fe4b2a6f4ab0fba6 (diff)
downloadlinux-f0a3dd33ba685bc50f78455aec832ebcc129a687.tar.xz
drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus
The documentation for drm_do_get_edid in drivers/gpu/drm/drm_edid.c states: "As in the general case the DDC bus is accessible by the kernel at the I2C level, drivers must make all reasonable efforts to expose it as an I2C adapter and use drm_get_edid() instead of abusing this function." Exposing the DDC bus as an I2C adapter is more beneficial as it can be used for purposes other than reading the EDID such as modifying the EDID or using the HDMI DDC pins as an I2C bus through the I2C dev interface from userspace (e.g. i2c-tools). Implement this for A10s. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/gpu/drm/sun4i/Makefile')
-rw-r--r--drivers/gpu/drm/sun4i/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/Makefile b/drivers/gpu/drm/sun4i/Makefile
index e29fd3a2ba9c..43c753cafc88 100644
--- a/drivers/gpu/drm/sun4i/Makefile
+++ b/drivers/gpu/drm/sun4i/Makefile
@@ -2,6 +2,7 @@ sun4i-drm-y += sun4i_drv.o
sun4i-drm-y += sun4i_framebuffer.o
sun4i-drm-hdmi-y += sun4i_hdmi_enc.o
+sun4i-drm-hdmi-y += sun4i_hdmi_i2c.o
sun4i-drm-hdmi-y += sun4i_hdmi_ddc_clk.o
sun4i-drm-hdmi-y += sun4i_hdmi_tmds_clk.o