| // SPDX-License-Identifier: GPL-2.0+ |
| * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ |
| * Written by Jean-Jacques Hiblot <jjhiblot@ti.com> |
| #include <dm/device_compat.h> |
| static int nop_phy_init(struct phy *phy) |
| struct nop_phy_priv *priv = dev_get_priv(phy->dev); |
| if (CONFIG_IS_ENABLED(CLK)) |
| return clk_enable_bulk(&priv->bulk); |
| static int nop_phy_probe(struct udevice *dev) |
| struct nop_phy_priv *priv = dev_get_priv(dev); |
| if (CONFIG_IS_ENABLED(CLK)) { |
| ret = clk_get_bulk(dev, &priv->bulk); |
| dev_err(dev, "Failed to get clk: %d\n", ret); |
| static const struct udevice_id nop_phy_ids[] = { |
| { .compatible = "nop-phy" }, |
| { .compatible = "usb-nop-xceiv" }, |
| static struct phy_ops nop_phy_ops = { |
| U_BOOT_DRIVER(nop_phy) = { |
| .priv_auto = sizeof(struct nop_phy_priv), |