diff options
author | Swapnil Jakhade <sjakhade@cadence.com> | 2022-01-28 13:41:42 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-02-08 11:00:03 -0500 |
commit | b6541d496f6aa080aa321d587e2e6e4cdc63d14e (patch) | |
tree | 57cc6867678dda24664ac95b72cd4c69d63d8abf /drivers/phy | |
parent | f74415a1ff0b90155067a714417e59827229aaf5 (diff) | |
download | u-boot-b6541d496f6aa080aa321d587e2e6e4cdc63d14e.tar.gz u-boot-b6541d496f6aa080aa321d587e2e6e4cdc63d14e.tar.bz2 u-boot-b6541d496f6aa080aa321d587e2e6e4cdc63d14e.zip |
phy: cadence: Sierra: Add support to get SSC type from device tree.
Add support to get SSC type from DT.
Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/cadence/phy-cadence-sierra.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 745c34088a..e2f631e330 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -234,6 +234,7 @@ struct cdns_sierra_inst { u32 num_lanes; u32 mlane; struct reset_ctl_bulk *lnk_rst; + enum cdns_sierra_ssc_mode ssc_mode; }; struct cdns_reg_pairs { @@ -318,7 +319,7 @@ static int cdns_sierra_phy_init(struct phy *gphy) struct cdns_sierra_data *init_data = phy->init_data; struct cdns_sierra_vals *pma_cmn_vals, *pma_ln_vals; enum cdns_sierra_phy_type phy_type = ins->phy_type; - enum cdns_sierra_ssc_mode ssc = EXTERNAL_SSC; + enum cdns_sierra_ssc_mode ssc = ins->ssc_mode; const struct cdns_reg_pairs *reg_pairs; struct regmap *regmap = phy->regmap; u32 num_regs; @@ -546,6 +547,9 @@ static int cdns_sierra_get_optional(struct cdns_sierra_inst *inst, return -EINVAL; } + inst->ssc_mode = EXTERNAL_SSC; + ofnode_read_u32(child, "cdns,ssc-mode", &inst->ssc_mode); + return 0; } |