From fd998418084a9ac0928b4032ce0bb8bee8c9323b Mon Sep 17 00:00:00 2001 From: Jorge Ramirez-Ortiz Date: Thu, 8 Nov 2018 16:51:01 +0100 Subject: video: dw_hdmi: support SoC specific read/write ops Some IPs like the meson VPU have a specific way to write to dw_hdmi registers. Make it configurable. Signed-off-by: Jorge Ramirez-Ortiz [added commit description] Signed-off-by: Maxime Jourdan Signed-off-by: Neil Armstrong Reviewed-by: Anatolij Gustschin --- include/dw_hdmi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h index 23088ec7687..35edc189c0e 100644 --- a/include/dw_hdmi.h +++ b/include/dw_hdmi.h @@ -472,6 +472,8 @@ struct dw_hdmi { u8 reg_io_width; int (*phy_set)(struct dw_hdmi *hdmi, uint mpixelclock); + void (*write_reg)(struct dw_hdmi *hdmi, u8 val, int offset); + u8 (*read_reg)(struct dw_hdmi *hdmi, int offset); }; int dw_hdmi_phy_cfg(struct dw_hdmi *hdmi, uint mpixelclock); -- cgit v1.3.1