diff options
author | Ondrej Jirman <megous@megous.com> | 2019-08-06 17:57:42 +0200 |
---|---|---|
committer | Maxime Ripard <mripard@kernel.org> | 2019-08-12 10:07:04 +0200 |
commit | 4c8b4c3855b0049f31be5bbfb19042005e98e822 (patch) | |
tree | b8f2928a25defce1b50565ae23a457c4ea5d803e /drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | |
parent | f6700060f53f0764fb970fa1cb716a7f671f0581 (diff) | |
download | lwn-4c8b4c3855b0049f31be5bbfb19042005e98e822.tar.gz lwn-4c8b4c3855b0049f31be5bbfb19042005e98e822.zip |
drm: sun4i: Add support for enabling DDC I2C bus to sun8i_dw_hdmi glue
Orange Pi 3 board requires enabling a voltage shifting circuit via GPIO
for the DDC bus to be usable.
Add support for hdmi-connector node's optional ddc-en-gpios property to
support this use case.
Signed-off-by: Ondrej Jirman <megous@megous.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190806155744.10263-4-megous@megous.com
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h index 720c5aa8adc1..d707c9171824 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h @@ -9,6 +9,7 @@ #include <drm/bridge/dw_hdmi.h> #include <drm/drm_encoder.h> #include <linux/clk.h> +#include <linux/gpio/consumer.h> #include <linux/regmap.h> #include <linux/regulator/consumer.h> #include <linux/reset.h> @@ -190,6 +191,7 @@ struct sun8i_dw_hdmi { struct regulator *regulator; const struct sun8i_dw_hdmi_quirks *quirks; struct reset_control *rst_ctrl; + struct gpio_desc *ddc_en; }; static inline struct sun8i_dw_hdmi * |