mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
phy: cadence-torrent: Set Torrent PHY attributes
Set Torrent PHY attributes bus_width, max_link_rate and mode for DisplayPort. Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Link: https://lore.kernel.org/r/1599805114-22063-3-git-send-email-sjakhade@cadence.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
a25536e8d5
commit
0ffcc3787e
1 changed files with 4 additions and 0 deletions
|
@ -1852,6 +1852,10 @@ static int cdns_torrent_phy_probe(struct platform_device *pdev)
|
||||||
cdns_phy->phys[node].num_lanes,
|
cdns_phy->phys[node].num_lanes,
|
||||||
cdns_phy->max_bit_rate / 1000,
|
cdns_phy->max_bit_rate / 1000,
|
||||||
cdns_phy->max_bit_rate % 1000);
|
cdns_phy->max_bit_rate % 1000);
|
||||||
|
|
||||||
|
gphy->attrs.bus_width = cdns_phy->phys[node].num_lanes;
|
||||||
|
gphy->attrs.max_link_rate = cdns_phy->max_bit_rate;
|
||||||
|
gphy->attrs.mode = PHY_MODE_DP;
|
||||||
} else {
|
} else {
|
||||||
dev_err(dev, "Driver supports only PHY_TYPE_DP\n");
|
dev_err(dev, "Driver supports only PHY_TYPE_DP\n");
|
||||||
ret = -ENOTSUPP;
|
ret = -ENOTSUPP;
|
||||||
|
|
Loading…
Reference in a new issue