linux/drivers/phy/samsung/phy-gs101-ufs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * UFS PHY driver data for Google Tensor gs101 SoC
 *
 * Copyright (C) 2024 Linaro Ltd
 * Author: Peter Griffin <[email protected]>
 */

#include "phy-samsung-ufs.h"

#define TENSOR_GS101_PHY_CTRL
#define TENSOR_GS101_PHY_CTRL_MASK
#define TENSOR_GS101_PHY_CTRL_EN
#define PHY_GS101_LANE_OFFSET
#define TRSV_REG338
#define LN0_MON_RX_CAL_DONE
#define TRSV_REG339
#define LN0_MON_RX_CDR_FLD_CK_MODE_DONE
#define TRSV_REG222
#define LN0_OVRD_RX_CDR_EN
#define LN0_RX_CDR_EN

#define PHY_PMA_TRSV_ADDR(reg, lane)

#define PHY_TRSV_REG_CFG_GS101(o, v, d)

/* Calibration for phy initialization */
static const struct samsung_ufs_phy_cfg tensor_gs101_pre_init_cfg[] =;

static const struct samsung_ufs_phy_cfg tensor_gs101_pre_pwr_hs_config[] =;

/* Calibration for HS mode series A/B */
static const struct samsung_ufs_phy_cfg tensor_gs101_post_pwr_hs_config[] =;

static const struct samsung_ufs_phy_cfg *tensor_gs101_ufs_phy_cfgs[CFG_TAG_MAX] =;

static const char * const tensor_gs101_ufs_phy_clks[] =;

static int gs101_phy_wait_for_calibration(struct phy *phy, u8 lane)
{}

#define DELAY_IN_US
#define RETRY_CNT
static int gs101_phy_wait_for_cdr_lock(struct phy *phy, u8 lane)
{}

const struct samsung_ufs_phy_drvdata tensor_gs101_ufs_phy =;