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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2017 John Crispin <[email protected]>
 *
 * Based on code from
 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
 */

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

#define RT_SYSC_REG_SYSCFG1
#define RT_SYSC_REG_CLKCFG1
#define RT_SYSC_REG_USB_PHY_CFG

#define OFS_U2_PHY_AC0
#define OFS_U2_PHY_AC1
#define OFS_U2_PHY_AC2
#define OFS_U2_PHY_ACR0
#define OFS_U2_PHY_ACR1
#define OFS_U2_PHY_ACR2
#define OFS_U2_PHY_ACR3
#define OFS_U2_PHY_ACR4
#define OFS_U2_PHY_AMON0
#define OFS_U2_PHY_DCR0
#define OFS_U2_PHY_DCR1
#define OFS_U2_PHY_DTM0
#define OFS_U2_PHY_DTM1

#define RT_RSTCTRL_UDEV
#define RT_RSTCTRL_UHST
#define RT_SYSCFG1_USB0_HOST_MODE

#define MT7620_CLKCFG1_UPHY0_CLK_EN
#define MT7620_CLKCFG1_UPHY1_CLK_EN
#define RT_CLKCFG1_UPHY1_CLK_EN
#define RT_CLKCFG1_UPHY0_CLK_EN

#define USB_PHY_UTMI_8B60M
#define UDEV_WAKEUP

struct ralink_usb_phy {};

static void u2_phy_w32(struct ralink_usb_phy *phy, u32 val, u32 reg)
{}

static u32 u2_phy_r32(struct ralink_usb_phy *phy, u32 reg)
{}

static void ralink_usb_phy_init(struct ralink_usb_phy *phy)
{}

static int ralink_usb_phy_power_on(struct phy *_phy)
{}

static int ralink_usb_phy_power_off(struct phy *_phy)
{}

static const struct phy_ops ralink_usb_phy_ops =;

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

static int ralink_usb_phy_probe(struct platform_device *pdev)
{}

static struct platform_driver ralink_usb_phy_driver =;
module_platform_driver();

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