linux/drivers/phy/phy-pistachio-usb.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * IMG Pistachio USB PHY driver
 *
 * Copyright (C) 2015 Google, Inc.
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#include <dt-bindings/phy/phy-pistachio-usb.h>

#define USB_PHY_CONTROL1
#define USB_PHY_CONTROL1_FSEL_SHIFT
#define USB_PHY_CONTROL1_FSEL_MASK

#define USB_PHY_STRAP_CONTROL
#define USB_PHY_STRAP_CONTROL_REFCLK_SHIFT
#define USB_PHY_STRAP_CONTROL_REFCLK_MASK

#define USB_PHY_STATUS
#define USB_PHY_STATUS_RX_PHY_CLK
#define USB_PHY_STATUS_RX_UTMI_CLK
#define USB_PHY_STATUS_VBUS_FAULT

struct pistachio_usb_phy {};

static const unsigned long fsel_rate_map[] =;

static int pistachio_usb_phy_power_on(struct phy *phy)
{}

static int pistachio_usb_phy_power_off(struct phy *phy)
{}

static const struct phy_ops pistachio_usb_phy_ops =;

static int pistachio_usb_phy_probe(struct platform_device *pdev)
{}

static const struct of_device_id pistachio_usb_phy_of_match[] =;
MODULE_DEVICE_TABLE(of, pistachio_usb_phy_of_match);

static struct platform_driver pistachio_usb_phy_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();