diff options
author | Peter Chen <peter.chen@nxp.com> | 2019-09-30 08:56:26 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-08-23 06:40:08 +0300 |
commit | 58a3cefb3840b17f0eba357d8e82536135a1257b (patch) | |
tree | 9edec4765ef90593970582eef55f54a5002febec /drivers/usb/chipidea/ci_hdrc_imx.c | |
parent | 8977c947b321858ad878106e6c1dbfb719f23db6 (diff) | |
download | linux-58a3cefb3840b17f0eba357d8e82536135a1257b.tar.xz |
usb: chipidea: imx: add two samsung picophy parameters tuning implementation
These two parameters are used to improve USB signal for board level,
in this commit, we read it from the dtb, and write to related register
during the initialization.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_imx.c')
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index c39e2b615ac6..d6085f46772f 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -165,6 +165,11 @@ static struct imx_usbmisc_data *usbmisc_get_init_data(struct device *dev) if (of_usb_get_phy_mode(np) == USBPHY_INTERFACE_MODE_ULPI) data->ulpi = 1; + of_property_read_u32(np, "samsung,picophy-pre-emp-curr-control", + &data->emp_curr_control); + of_property_read_u32(np, "samsung,picophy-dc-vol-level-adjust", + &data->dc_vol_level_adjust); + return data; } |