linux/drivers/phy/intel/phy-intel-keembay-usb.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Intel Keem Bay USB PHY driver
 * Copyright (C) 2020 Intel Corporation
 */

#include <linux/bitfield.h>
#include <linux/bits.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

/* USS (USB Subsystem) clock control registers */
#define USS_CPR_CLK_EN
#define USS_CPR_CLK_SET
#define USS_CPR_CLK_CLR
#define USS_CPR_RST_EN
#define USS_CPR_RST_SET
#define USS_CPR_RST_CLR

/* USS clock/reset bit fields */
#define USS_CPR_PHY_TST
#define USS_CPR_LOW_JIT
#define USS_CPR_CORE
#define USS_CPR_SUSPEND
#define USS_CPR_ALT_REF
#define USS_CPR_REF
#define USS_CPR_SYS
#define USS_CPR_MASK

/* USS APB slave registers */
#define USS_USB_CTRL_CFG0
#define VCC_RESET_N_MASK

#define USS_USB_PHY_CFG0
#define POR_MASK
#define PHY_RESET_MASK
#define PHY_REF_USE_PAD_MASK

#define USS_USB_PHY_CFG6
#define PHY0_SRAM_EXT_LD_DONE_MASK

#define USS_USB_PARALLEL_IF_CTRL
#define USB_PHY_CR_PARA_SEL_MASK

#define USS_USB_TSET_SIGNALS_AND_GLOB
#define USB_PHY_CR_PARA_CLK_EN_MASK

#define USS_USB_STATUS_REG
#define PHY0_SRAM_INIT_DONE_MASK

#define USS_USB_TIEOFFS_CONSTANTS_REG1
#define IDDQ_ENABLE_MASK

struct keembay_usb_phy {};

static const struct regmap_config keembay_regmap_config =;

static int keembay_usb_clocks_on(struct keembay_usb_phy *priv)
{}

static int keembay_usb_core_off(struct keembay_usb_phy *priv)
{}

static int keembay_usb_core_on(struct keembay_usb_phy *priv)
{}

static int keembay_usb_phys_on(struct keembay_usb_phy *priv)
{}

static int keembay_usb_phy_init(struct phy *phy)
{}

static const struct phy_ops ops =;

static int keembay_usb_phy_probe(struct platform_device *pdev)
{}

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

static struct platform_driver keembay_usb_phy_driver =;
module_platform_driver();

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