summaryrefslogtreecommitdiffstats
path: root/include/dw_hdmi.h
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jramirez@baylibre.com>2018-11-08 16:51:01 +0100
committerNeil Armstrong <narmstrong@baylibre.com>2019-01-31 09:35:01 +0100
commitfd998418084a9ac0928b4032ce0bb8bee8c9323b (patch)
tree3e46b4ba5921f3928f8b5a5cc92da4622150974c /include/dw_hdmi.h
parent335d287327a1953f69da056cffc3276681b56b00 (diff)
downloadu-boot-fd998418084a9ac0928b4032ce0bb8bee8c9323b.tar.gz
u-boot-fd998418084a9ac0928b4032ce0bb8bee8c9323b.tar.xz
u-boot-fd998418084a9ac0928b4032ce0bb8bee8c9323b.zip
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 <jramirez@baylibre.com> [added commit description] Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/dw_hdmi.h')
-rw-r--r--include/dw_hdmi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h
index 23088ec768..35edc189c0 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);