linux/drivers/phy/allwinner/phy-sun9i-usb.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Allwinner sun9i USB phy driver
 *
 * Copyright (C) 2014-2015 Chen-Yu Tsai <[email protected]>
 *
 * Based on phy-sun4i-usb.c from
 * Hans de Goede <[email protected]>
 *
 * and code from
 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
 */

#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/phy/phy.h>
#include <linux/usb/of.h>
#include <linux/platform_device.h>
#include <linux/reset.h>

#define SUNXI_AHB_INCR16_BURST_EN
#define SUNXI_AHB_INCR8_BURST_EN
#define SUNXI_AHB_INCR4_BURST_EN
#define SUNXI_AHB_INCRX_ALIGN_EN
#define SUNXI_ULPI_BYPASS_EN

/* usb1 HSIC specific bits */
#define SUNXI_EHCI_HS_FORCE
#define SUNXI_HSIC_CONNECT_DET
#define SUNXI_HSIC_CONNECT_INT
#define SUNXI_HSIC

struct sun9i_usb_phy {};

static void sun9i_usb_phy_passby(struct sun9i_usb_phy *phy, int enable)
{}

static int sun9i_usb_phy_init(struct phy *_phy)
{}

static int sun9i_usb_phy_exit(struct phy *_phy)
{}

static const struct phy_ops sun9i_usb_phy_ops =;

static int sun9i_usb_phy_probe(struct platform_device *pdev)
{}

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

static struct platform_driver sun9i_usb_phy_driver =;
module_platform_driver();

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