android_kernel_motorola_sm6225/drivers/phy
Andrzej Pietrasiewicz 36914111e6 drivers: phy: add calibrate method
Some quirky UDCs (like dwc3 on Exynos) need to have their phys calibrated e.g.
for using super speed. This patch adds a new phy_calibrate() method.
When the calibration should be used is dependent on actual chip.

In case of dwc3 on Exynos the calibration must happen after usb_add_hcd()
(while in host mode), because certain phy parameters like Tx LOS levels
and boost levels need to be calibrated further post initialization of xHCI
controller, to get SuperSpeed operations working. But an hcd must be
prepared first in order to pass it to usb_add_hcd(), so, in particular, dwc3
registers must be available first, and in order for the latter to happen
the phys must be initialized. This poses a chicken and egg problem if
the calibration were to be performed in phy_init(). To break the circular
dependency a separate method is added which can be called at a desired
moment after phy intialization.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2017-10-23 11:19:28 +05:30
..
allwinner phy: sun4i-usb: enable PHY0 dual route for V3s SoC 2017-10-23 11:19:25 +05:30
amlogic phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs 2017-06-06 14:50:14 +05:30
broadcom phy: brcm-sata: Allow RX equalizer tuning 2017-10-23 11:19:26 +05:30
hisilicon phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
lantiq phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module 2017-09-04 21:19:02 +02:00
marvell phy: mvebu-cp110-comphy: remove unused member in private struct 2017-10-23 11:19:25 +05:30
mediatek phy: phy-mtk-tphy: add set_mode callback 2017-10-23 11:19:25 +05:30
motorola phy: cpcap-usb: remove a stray tab 2017-08-22 10:11:26 +05:30
qualcomm ufs/phy: qcom: Refactor to use phy_init call 2017-10-23 11:19:27 +05:30
ralink phy: ralink: fix 64-bit build warning 2017-08-24 17:26:50 -07:00
renesas phy: rcar-gen3-usb2: add SoC-specific parameter for dedicated pins 2017-10-23 11:19:26 +05:30
rockchip phy: rockchip-typec: Do the calibration more correctly 2017-10-23 11:19:25 +05:30
samsung phy: samsung: use of_device_get_match_data() 2017-08-20 13:59:52 +05:30
st phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
tegra phy: tegra: Handle return value of kasprintf 2017-09-26 17:02:48 +05:30
ti phy: ti-pipe3: Update pcie phy settings 2017-10-23 11:19:27 +05:30
Kconfig Merge branch '4.14-features' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2017-09-15 20:43:33 -07:00
Makefile Merge branch '4.14-features' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2017-09-15 20:43:33 -07:00
phy-core.c drivers: phy: add calibrate method 2017-10-23 11:19:28 +05:30
phy-lpc18xx-usb-otg.c phy: lpc18xx-usb-otg: fix clock order in phy init 2015-08-10 20:11:58 +05:30
phy-pistachio-usb.c PHY: Add driver for Pistachio USB2.0 PHY 2015-06-21 21:53:38 +02:00
phy-xgene.c phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode" 2016-07-04 17:19:21 +05:30