mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
video: rockchip: dp: remove dp phy select operation in dp driver.
Previous code select dp phy by dp->port->id, but this id can't indicate the phy id, and it will introduce a phy power on bug if we only use typec1 as dp output, so we move these code to typec phy driver. Change-Id: If809efe9138b186b060e6c7467473f2d3192bc7e Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
This commit is contained in:
parent
bfcf8ff1b4
commit
8b339fd608
|
|
@ -679,11 +679,6 @@ static int cdn_dp_start_work(struct cdn_dp_device *dp,
|
|||
if (dp->fw_loaded)
|
||||
cdn_dp_set_firmware_active(dp, true);
|
||||
|
||||
ret = cdn_dp_grf_write(dp, GRF_SOC_CON26,
|
||||
(port->id << UPHY_SEL_BIT) | UPHY_SEL_MASK);
|
||||
if (ret)
|
||||
goto err_phy;
|
||||
|
||||
ret = phy_power_on(port->phy);
|
||||
if (ret) {
|
||||
dev_err(dp->dev, "phy power on failed: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -5,9 +5,6 @@
|
|||
#define GRF_SOC_CON9 0x6224
|
||||
#define GRF_SOC_CON26 0x6268
|
||||
|
||||
#define UPHY_SEL_BIT 3
|
||||
#define UPHY_SEL_MASK BIT(19)
|
||||
|
||||
#define DPTX_HPD_SEL (3 << 12)
|
||||
#define DPTX_HPD_DEL (2 << 12)
|
||||
#define DPTX_HPD_SEL_MASK (3 << 28)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user