linux/drivers/phy/renesas/phy-rcar-gen3-usb3.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Renesas R-Car Gen3 for USB3.0 PHY driver
 *
 * Copyright (C) 2017 Renesas Electronics Corporation
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>

#define USB30_CLKSET0
#define USB30_CLKSET1
#define USB30_SSC_SET
#define USB30_PHY_ENABLE
#define USB30_VBUS_EN

/* USB30_CLKSET0 */
#define CLKSET0_PRIVATE
#define CLKSET0_USB30_FSEL_USB_EXTAL

/* USB30_CLKSET1 */
#define CLKSET1_USB30_PLL_MULTI_SHIFT
#define CLKSET1_USB30_PLL_MULTI_USB_EXTAL
#define CLKSET1_PHYRESET
#define CLKSET1_REF_CLKDIV
#define CLKSET1_PRIVATE_2_1
#define CLKSET1_REF_CLK_SEL

/* USB30_SSC_SET */
#define SSC_SET_SSC_EN
#define SSC_SET_RANGE_SHIFT
#define SSC_SET_RANGE_4980
#define SSC_SET_RANGE_4492
#define SSC_SET_RANGE_4003

/* USB30_PHY_ENABLE */
#define PHY_ENABLE_RESET_EN

/* USB30_VBUS_EN */
#define VBUS_EN_VBUS_EN

struct rcar_gen3_usb3 {};

static void write_clkset1_for_usb_extal(struct rcar_gen3_usb3 *r, bool reset)
{}

static void rcar_gen3_phy_usb3_enable_ssc(struct rcar_gen3_usb3 *r)
{}

static void rcar_gen3_phy_usb3_select_usb_extal(struct rcar_gen3_usb3 *r)
{}

static int rcar_gen3_phy_usb3_init(struct phy *p)
{}

static const struct phy_ops rcar_gen3_phy_usb3_ops =;

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

static int rcar_gen3_phy_usb3_probe(struct platform_device *pdev)
{}

static void rcar_gen3_phy_usb3_remove(struct platform_device *pdev)
{
	pm_runtime_disable(&pdev->dev);
};

static struct platform_driver rcar_gen3_phy_usb3_driver =;
module_platform_driver();

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