/drivers/usb/common/ |
D | ulpi.c | 23 int ulpi_read(struct ulpi *ulpi, u8 addr) in ulpi_read() argument 25 return ulpi->ops->read(ulpi->dev.parent, addr); in ulpi_read() 29 int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val) in ulpi_write() argument 31 return ulpi->ops->write(ulpi->dev.parent, addr, val); in ulpi_write() 40 struct ulpi *ulpi = to_ulpi_dev(dev); in ulpi_match() local 47 if (ulpi->id.vendor == 0 || !drv->id_table) in ulpi_match() 51 if (id->vendor == ulpi->id.vendor && in ulpi_match() 52 id->product == ulpi->id.product) in ulpi_match() 60 struct ulpi *ulpi = to_ulpi_dev(dev); in ulpi_uevent() local 68 ulpi->id.vendor, ulpi->id.product)) in ulpi_uevent() [all …]
|
D | Makefile | 13 obj-$(CONFIG_USB_ULPI_BUS) += ulpi.o
|
D | Kconfig | 36 be called ulpi.
|
/drivers/phy/qualcomm/ |
D | phy-qcom-usb-hsic.c | 18 struct ulpi *ulpi; member 29 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hsic_phy_power_on() local 46 ret = ulpi_write(ulpi, ULPI_HSIC_IO_CAL, 0xff); in qcom_usb_hsic_phy_power_on() 51 ret = ulpi_write(ulpi, ULPI_HSIC_CFG, 0xa8); in qcom_usb_hsic_phy_power_on() 67 ret = ulpi_write(ulpi, ULPI_SET(ULPI_HSIC_CFG), 0x01); in qcom_usb_hsic_phy_power_on() 72 ret = ulpi_write(ulpi, ULPI_CLR(ULPI_IFC_CTRL), in qcom_usb_hsic_phy_power_on() 104 static int qcom_usb_hsic_phy_probe(struct ulpi *ulpi) in qcom_usb_hsic_phy_probe() argument 110 uphy = devm_kzalloc(&ulpi->dev, sizeof(*uphy), GFP_KERNEL); in qcom_usb_hsic_phy_probe() 113 ulpi_set_drvdata(ulpi, uphy); in qcom_usb_hsic_phy_probe() 115 uphy->ulpi = ulpi; in qcom_usb_hsic_phy_probe() [all …]
|
D | phy-qcom-usb-hs.c | 30 struct ulpi *ulpi; member 64 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_RISE, val); in qcom_usb_hs_phy_set_mode() 67 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_FALL, val); in qcom_usb_hs_phy_set_mode() 81 ret = ulpi_write(uphy->ulpi, ULPI_SET(ULPI_PWR_CLK_MNG_REG), in qcom_usb_hs_phy_set_mode() 85 ret = ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXTSEL); in qcom_usb_hs_phy_set_mode() 105 return ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXT); in qcom_usb_hs_phy_vbus_notifier() 111 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hs_phy_power_on() local 145 ret = ulpi_write(ulpi, ULPI_EXT_VENDOR_SPECIFIC + seq->addr, in qcom_usb_hs_phy_power_on() 202 static int qcom_usb_hs_phy_probe(struct ulpi *ulpi) in qcom_usb_hs_phy_probe() argument 212 uphy = devm_kzalloc(&ulpi->dev, sizeof(*uphy), GFP_KERNEL); in qcom_usb_hs_phy_probe() [all …]
|
/drivers/phy/ti/ |
D | phy-tusb1210.c | 54 struct ulpi *ulpi; member 75 ret = ulpi_write(tusb->ulpi, reg, val); in tusb1210_ulpi_write() 77 dev_err(&tusb->ulpi->dev, "error %d writing val 0x%02x to reg 0x%02x\n", in tusb1210_ulpi_write() 87 ret = ulpi_read(tusb->ulpi, reg); in tusb1210_ulpi_read() 92 dev_err(&tusb->ulpi->dev, "error %d reading reg 0x%02x\n", ret, reg); in tusb1210_ulpi_read() 180 dev_dbg(&tusb->ulpi->dev, "charger type: %d\n", type); in tusb1210_chg_det_set_type() 191 dev_dbg(&tusb->ulpi->dev, "chg_det new state %s in %d ms\n", in tusb1210_chg_det_set_state() 255 dev_dbg(&tusb->ulpi->dev, "chg_det state %s vbus_present %d\n", in tusb1210_chg_det_work() 263 ret = pm_runtime_resume_and_get(tusb->ulpi->dev.parent); in tusb1210_chg_det_work() 265 dev_err(&tusb->ulpi->dev, "error %d runtime-resuming\n", ret); in tusb1210_chg_det_work() [all …]
|
/drivers/usb/dwc3/ |
D | ulpi.c | 89 dwc->ulpi = ulpi_register_interface(dwc->dev, &dwc3_ulpi_ops); in dwc3_ulpi_init() 90 if (IS_ERR(dwc->ulpi)) { in dwc3_ulpi_init() 92 return PTR_ERR(dwc->ulpi); in dwc3_ulpi_init() 100 if (dwc->ulpi) { in dwc3_ulpi_exit() 101 ulpi_unregister_interface(dwc->ulpi); in dwc3_ulpi_exit() 102 dwc->ulpi = NULL; in dwc3_ulpi_exit()
|
D | Makefile | 26 dwc3-y += ulpi.o
|
D | core.h | 1186 struct ulpi *ulpi; member
|
/drivers/usb/chipidea/ |
D | ulpi.c | 79 ci->ulpi = ulpi_register_interface(ci->dev, &ci->ulpi_ops); in ci_ulpi_init() 80 if (IS_ERR(ci->ulpi)) in ci_ulpi_init() 83 return PTR_ERR_OR_ZERO(ci->ulpi); in ci_ulpi_init() 88 if (ci->ulpi) { in ci_ulpi_exit() 89 ulpi_unregister_interface(ci->ulpi); in ci_ulpi_exit() 90 ci->ulpi = NULL; in ci_ulpi_exit()
|
D | ci_hdrc_imx.h | 23 unsigned int ulpi:1; /* connected to an ULPI phy */ member
|
D | Makefile | 7 ci_hdrc-y := core.o otg.o debug.o ulpi.o
|
D | ci.h | 247 struct ulpi *ulpi; member
|
D | usbmisc_imx.c | 306 if (data->ulpi) { in usbmisc_imx53_init() 336 if (data->ulpi) { in usbmisc_imx53_init()
|
D | ci_hdrc_imx.c | 178 data->ulpi = 1; in usbmisc_get_init_data()
|
/drivers/phy/tegra/ |
D | xusb.c | 289 padctl->ulpi = pad; in tegra_xusb_pad_create() 820 static int tegra_xusb_ulpi_port_parse_dt(struct tegra_xusb_ulpi_port *ulpi) in tegra_xusb_ulpi_port_parse_dt() argument 822 struct tegra_xusb_port *port = &ulpi->base; in tegra_xusb_ulpi_port_parse_dt() 825 ulpi->internal = of_property_read_bool(np, "nvidia,internal"); in tegra_xusb_ulpi_port_parse_dt() 833 struct tegra_xusb_ulpi_port *ulpi; in tegra_xusb_add_ulpi_port() local 841 ulpi = kzalloc(sizeof(*ulpi), GFP_KERNEL); in tegra_xusb_add_ulpi_port() 842 if (!ulpi) { in tegra_xusb_add_ulpi_port() 847 err = tegra_xusb_port_init(&ulpi->base, padctl, np, "ulpi", index); in tegra_xusb_add_ulpi_port() 851 ulpi->base.ops = padctl->soc->ports.ulpi.ops; in tegra_xusb_add_ulpi_port() 853 ulpi->base.lane = ulpi->base.ops->map(&ulpi->base); in tegra_xusb_add_ulpi_port() [all …]
|
D | xusb-tegra124.c | 672 TEGRA124_LANE("ulpi-0", 0x004, 12, 0x1, ulpi), 679 struct tegra_xusb_ulpi_lane *ulpi; in tegra124_ulpi_lane_probe() local 682 ulpi = kzalloc(sizeof(*ulpi), GFP_KERNEL); in tegra124_ulpi_lane_probe() 683 if (!ulpi) in tegra124_ulpi_lane_probe() 686 INIT_LIST_HEAD(&ulpi->base.list); in tegra124_ulpi_lane_probe() 687 ulpi->base.soc = &pad->soc->lanes[index]; in tegra124_ulpi_lane_probe() 688 ulpi->base.index = index; in tegra124_ulpi_lane_probe() 689 ulpi->base.pad = pad; in tegra124_ulpi_lane_probe() 690 ulpi->base.np = np; in tegra124_ulpi_lane_probe() 692 err = tegra_xusb_lane_parse_dt(&ulpi->base, np); in tegra124_ulpi_lane_probe() [all …]
|
D | xusb.h | 427 } usb2, ulpi, hsic, usb3; member 448 struct tegra_xusb_pad *ulpi; member
|
/drivers/usb/phy/ |
D | Makefile | 24 obj-$(CONFIG_USB_ULPI) += phy-ulpi.o 25 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
|
D | phy-tegra-usb.c | 811 err = usb_phy_io_write(phy->ulpi, 0x40, 0x08); in ulpi_phy_power_on() 817 err = usb_phy_io_write(phy->ulpi, 0x80, 0x0B); in ulpi_phy_power_on() 1468 tegra_phy->ulpi = phy; in tegra_usb_phy_probe() 1469 tegra_phy->ulpi->io_priv = tegra_phy->regs + ULPI_VIEWPORT; in tegra_usb_phy_probe()
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra20.c | 1959 FUNCTION(ulpi),
|
D | pinctrl-tegra114.c | 1528 FUNCTION(ulpi),
|
D | pinctrl-tegra124.c | 1693 FUNCTION(ulpi),
|
D | pinctrl-tegra30.c | 2089 FUNCTION(ulpi),
|
/drivers/usb/host/ |
D | xhci-tegra.c | 204 } usb2, ulpi, hsic, usb3; member
|