]> Gentwo Git Trees - linux/.git/commit
drm/bridge: samsung-dsim: allow configuring PLL_M and PLL_S offsets
authorKaustabh Chakraborty <kauschluss@disroot.org>
Sun, 6 Jul 2025 18:25:41 +0000 (23:55 +0530)
committerInki Dae <inki.dae@samsung.com>
Mon, 15 Sep 2025 10:55:01 +0000 (19:55 +0900)
commit9aa49c21aac071383353315036520ba753484c93
tree3d997e9b0ce5c1ba5cef41ec53a8505f8381568f
parentd6dbefb2fed7d7f333c4241965296d84c202b6bf
drm/bridge: samsung-dsim: allow configuring PLL_M and PLL_S offsets

Currently, PLL_P offset of DSIM_PLLCTRL is configurable in the driver
data, while PLL_M and PLL_S offsets are hardcoded as 4-bit and 1-bit
offsets respectively, but Exynos7870's DSIM have them at 3-bit and 0-bit
offsets as per downstream kernel sources.

In order to support both, move both offset values to the driver data
struct and define it for every driver compatible. Reference the values
from there instead, in functions wherever required.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/bridge/samsung-dsim.c
include/drm/bridge/samsung-dsim.h