mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
66 lines
2.0 KiB
Diff
66 lines
2.0 KiB
Diff
From 92669460ec6eb825092e949ddcdbaa73ba5774c7 Mon Sep 17 00:00:00 2001
|
|
From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
Date: Fri, 30 May 2025 00:56:48 +0300
|
|
Subject: [PATCH 083/113] FROMLIST(v4): phy: hdmi: Add HDMI 2.1 FRL
|
|
configuration options
|
|
|
|
The HDMI 2.1 specification introduced the Fixed Rate Link (FRL) mode,
|
|
aiming to replace the older Transition-Minimized Differential Signaling
|
|
(TMDS) mode used in previous HDMI versions to support much higher
|
|
bandwidths (up to 48 Gbps) for modern video and audio formats.
|
|
|
|
FRL has been designed to support ultra high resolution formats at high
|
|
refresh rates like 8K@60Hz or 4K@120Hz, and eliminates the need for
|
|
dynamic bandwidth adjustments, which reduces latency. It operates with
|
|
3 or 4 lanes at different link rates: 3Gbps, 6Gbps, 8Gbps, 10Gbps or
|
|
12Gbps.
|
|
|
|
Add support for configuring the FRL mode for HDMI PHYs.
|
|
|
|
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
---
|
|
include/linux/phy/phy-hdmi.h | 19 +++++++++++++++++--
|
|
1 file changed, 17 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/include/linux/phy/phy-hdmi.h b/include/linux/phy/phy-hdmi.h
|
|
index f0ec963c6e84..d4cf4430ee8f 100644
|
|
--- a/include/linux/phy/phy-hdmi.h
|
|
+++ b/include/linux/phy/phy-hdmi.h
|
|
@@ -6,16 +6,31 @@
|
|
#ifndef __PHY_HDMI_H_
|
|
#define __PHY_HDMI_H_
|
|
|
|
+#include <linux/types.h>
|
|
+
|
|
+enum phy_hdmi_mode {
|
|
+ PHY_HDMI_MODE_TMDS,
|
|
+ PHY_HDMI_MODE_FRL,
|
|
+};
|
|
+
|
|
/**
|
|
* struct phy_configure_opts_hdmi - HDMI configuration set
|
|
- * @tmds_char_rate: HDMI TMDS Character Rate in Hertz.
|
|
* @bpc: Bits per color channel.
|
|
+ * @tmds_char_rate: HDMI TMDS Character Rate in Hertz.
|
|
+ * @frl.rate_per_lane: HDMI FRL Rate per Lane in Gbps.
|
|
+ * @frl.lanes: HDMI FRL lanes count.
|
|
*
|
|
* This structure is used to represent the configuration state of a HDMI phy.
|
|
*/
|
|
struct phy_configure_opts_hdmi {
|
|
- unsigned long long tmds_char_rate;
|
|
unsigned int bpc;
|
|
+ union {
|
|
+ unsigned long long tmds_char_rate;
|
|
+ struct {
|
|
+ u8 rate_per_lane;
|
|
+ u8 lanes;
|
|
+ } frl;
|
|
+ };
|
|
};
|
|
|
|
#endif /* __PHY_HDMI_H_ */
|
|
--
|
|
2.34.1
|
|
|