summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKaustabh Chakraborty <kauschluss@disroot.org>2025-07-06 21:25:40 +0300
committerInki Dae <inki.dae@samsung.com>2025-09-15 13:54:59 +0300
commitd6dbefb2fed7d7f333c4241965296d84c202b6bf (patch)
treeaad00b671e978e9dbf1ad93a820fa2eba53b6332 /include
parent4d244122dd90c72f6c3f10eb7a53678d78d3b857 (diff)
downloadlinux-d6dbefb2fed7d7f333c4241965296d84c202b6bf.tar.xz
drm/bridge: samsung-dsim: allow configuring the VIDEO_MODE bit
The VIDEO_MODE bit of DSIM_CONFIG is hardcoded to BIT(25), but Exynos7870's DSIM has it in BIT(18) as per downstream kernel sources. In order to support both, move this bit value to the driver data struct and define it for every driver compatible. Reference the value from there instead, in functions wherever required. Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/bridge/samsung-dsim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/bridge/samsung-dsim.h b/include/drm/bridge/samsung-dsim.h
index 7f6d353f34af..9d11c3e39fe5 100644
--- a/include/drm/bridge/samsung-dsim.h
+++ b/include/drm/bridge/samsung-dsim.h
@@ -64,6 +64,7 @@ struct samsung_dsim_driver_data {
unsigned int wait_for_hdr_fifo;
unsigned int wait_for_reset;
unsigned int num_bits_resol;
+ unsigned int video_mode_bit;
unsigned int esc_clken_bit;
unsigned int byte_clken_bit;
unsigned int tx_req_hsclk_bit;