linux/drivers/phy/sunplus/phy-sunplus-usb2.c

// SPDX-License-Identifier: GPL-2.0

/*
 * Sunplus SP7021 USB 2.0 phy driver
 *
 * Copyright (C) 2022 Sunplus Technology Inc., All rights reserved.
 *
 * Note 1 : non-posted write command for the registers accesses of
 * Sunplus SP7021.
 *
 */

#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/nvmem-consumer.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/reset.h>

#define HIGH_MASK_BITS
#define LOW_MASK_BITS
#define OTP_DISC_LEVEL_DEFAULT

/* GROUP UPHY */
#define CONFIG1
#define J_HS_TX_PWRSAV
#define CONFIG3
#define J_FORCE_DISC_ON
#define J_DEBUG_CTRL_ADDR_MACRO
#define CONFIG7
#define J_DISC
#define CONFIG9
#define J_ECO_PATH
#define CONFIG16
#define J_TBCWAIT_MASK
#define J_TBCWAIT_1P1_MS
#define J_TVDM_SRC_DIS_MASK
#define J_TVDM_SRC_DIS_8P2_MS
#define J_TVDM_SRC_EN_MASK
#define J_TVDM_SRC_EN_1P6_MS
#define J_BC_EN
#define CONFIG17
#define IBG_TRIM0_MASK
#define IBG_TRIM0_SSLVHT
#define J_VDATREE_TRIM_MASK
#define J_VDATREE_TRIM_DEFAULT
#define CONFIG23
#define PROB_MASK
#define PROB

/* GROUP MOON4 */
#define UPHY_CONTROL0
#define UPHY_CONTROL1
#define UPHY_CONTROL2
#define MO1_UPHY_RX_CLK_SEL
#define MASK_MO1_UPHY_RX_CLK_SEL
#define UPHY_CONTROL3
#define MO1_UPHY_PLL_POWER_OFF_SEL
#define MASK_MO1_UPHY_PLL_POWER_OFF_SEL
#define MO1_UPHY_PLL_POWER_OFF
#define MASK_UPHY_PLL_POWER_OFF

struct sp_usbphy {};

static int update_disc_vol(struct sp_usbphy *usbphy)
{}

static int sp_uphy_init(struct phy *phy)
{}

static int sp_uphy_power_on(struct phy *phy)
{}

static int sp_uphy_power_off(struct phy *phy)
{}

static int sp_uphy_exit(struct phy *phy)
{}

static const struct phy_ops sp_uphy_ops =;

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

static int sp_usb_phy_probe(struct platform_device *pdev)
{}

static struct platform_driver sunplus_usb_phy_driver =;
module_platform_driver();

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