* [PATCH] drm/omap: dss: Support all VOUT ports
@ 2024-06-06 8:28 Primoz Fiser
0 siblings, 0 replies; only message in thread
From: Primoz Fiser @ 2024-06-06 8:28 UTC (permalink / raw)
To: Tomi Valkeinen, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Daniel Vetter, Laurent Pinchart,
Uwe Kleine-König, Andrew Jeffery, Douglas Anderson,
Rob Herring, Primoz Fiser, dri-devel, linux-kernel
Cc: upstream
Allow function dss_dpi_select_source_dra7xx() to set the channel in the
dra7xx DSS_CONTROL register for any VOUT port, not just VOUT1 (port 0).
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 988888e164d7..f5a484ef0f48 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -796,7 +796,9 @@ static int dss_dpi_select_source_dra7xx(struct dss_device *dss, int port,
{
switch (port) {
case 0:
- return dss_dpi_select_source_omap5(dss, port, channel);
+ if (channel != OMAP_DSS_CHANNEL_LCD)
+ return -EINVAL;
+ break;
case 1:
if (channel != OMAP_DSS_CHANNEL_LCD2)
return -EINVAL;
@@ -809,7 +811,7 @@ static int dss_dpi_select_source_dra7xx(struct dss_device *dss, int port,
return -EINVAL;
}
- return 0;
+ return dss_dpi_select_source_omap5(dss, port, channel);
}
int dss_dpi_select_source(struct dss_device *dss, int port,
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-06 8:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-06 8:28 [PATCH] drm/omap: dss: Support all VOUT ports Primoz Fiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®