1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright 2022,2024 NXP 4 */ 5 6 #ifndef __PHY_HDMI_H_ 7 #define __PHY_HDMI_H_ 8 9 #include <linux/types.h> 10 11 enum phy_hdmi_mode { 12 PHY_HDMI_MODE_TMDS, 13 PHY_HDMI_MODE_FRL, 14 }; 15 16 /** 17 * struct phy_configure_opts_hdmi - HDMI configuration set 18 * @bpc: Bits per color channel. 19 * @tmds_char_rate: HDMI TMDS Character Rate in Hertz. 20 * @frl.rate_per_lane: HDMI FRL Rate per Lane in Gbps. 21 * @frl.lanes: HDMI FRL lanes count. 22 * 23 * This structure is used to represent the configuration state of a HDMI phy. 24 */ 25 struct phy_configure_opts_hdmi { 26 unsigned int bpc; 27 union { 28 unsigned long long tmds_char_rate; 29 struct { 30 u8 rate_per_lane; 31 u8 lanes; 32 } frl; 33 }; 34 }; 35 36 #endif /* __PHY_HDMI_H_ */ 37