Skip to content

Commit ed872ca

Browse files
gugulotmichalsimek
authored andcommitted
phy: xilinx-xhdmiphy: Get resolutions < 1920x1080@60 working
Fix the display of resolutions smaller than 1920x1080@60 by getting the correct sample rate from phy based on TMDS ref clock. Signed-off-by: Rajesh Gugulothu <rajesh.gugulothu@amd.com> Tested-by: Jaihind Biradar <jaihind.biradar@amd.com> Reviewed-by: Vishal Sagar <vishal.sagar@amd.com>
1 parent 869946c commit ed872ca

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

‎drivers/phy/xilinx/xhdmiphy.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ static int xhdmiphy_configure(struct phy *phy, union phy_configure_opts *opts)
180180
xhdmiphy_ibufds_en(phy_dev, XHDMIPHY_DIR_TX,
181181
cfg->ibufds_en);
182182
cfg->ibufds = 0;
183+
} else if (cfg->get_samplerate) {
184+
cfg->samplerate = phy_dev->tx_samplerate;
183185
} else if (cfg->clkout1_obuftds) {
184186
xhdmiphy_clkout1_obuftds_en(phy_dev, XHDMIPHY_DIR_TX,
185187
cfg->clkout1_obuftds_en);

‎include/linux/phy/phy-hdmi.h‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,22 @@ struct phy_configure_opts_hdmi {
206206
* Flag to reset the GT
207207
*/
208208
u8 reset_gt : 1;
209+
/**
210+
* @get_samplerate:
211+
*
212+
* Flag to get the samplerate value from the PHY driver
213+
*
214+
* Allowed values: 0, 1
215+
*/
216+
u8 get_samplerate : 1;
217+
/**
218+
* @samplerate:
219+
*
220+
* samplerate value.
221+
*
222+
* Allowed values: 1, 2, 3, 5
223+
*/
224+
u8 samplerate;
209225
};
210226

211227
#endif /* __PHY_HDMI_H_ */

0 commit comments

Comments
 (0)