projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae4235f
)
drm/tegra: dsi: Calculate packet parameters for video mode
author
Svyatoslav Ryhel
<clamor95@gmail.com>
Tue, 9 Sep 2025 07:33:35 +0000
(10:33 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Fri, 14 Nov 2025 17:51:28 +0000
(18:51 +0100)
Calculate packet parameters for video mode same way it is done for
command mode, by halving timings plugged into equations.
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link:
https://patch.msgid.link/20250909073335.91531-3-clamor95@gmail.com
drivers/gpu/drm/tegra/dsi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/dsi.c
b/drivers/gpu/drm/tegra/dsi.c
index
368a3be
..
ae13b7a
100644
(file)
--- a/
drivers/gpu/drm/tegra/dsi.c
+++ b/
drivers/gpu/drm/tegra/dsi.c
@@
-546,12
+546,19
@@
static void tegra_dsi_configure(struct tegra_dsi *dsi, unsigned int pipe,
/* horizontal back porch */
hbp = (mode->htotal - mode->hsync_end) * mul / div;
- if ((dsi->flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) == 0)
- hbp += hsw;
-
/* horizontal front porch */
hfp = (mode->hsync_start - mode->hdisplay) * mul / div;
+ if (dsi->master || dsi->slave) {
+ hact /= 2;
+ hsw /= 2;
+ hbp /= 2;
+ hfp /= 2;
+ }
+
+ if ((dsi->flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) == 0)
+ hbp += hsw;
+
/* subtract packet overhead */
hsw -= 10;
hbp -= 14;