linux/drivers/phy/microchip/lan966x_serdes_regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef _LAN966X_SERDES_REGS_H_
#define _LAN966X_SERDES_REGS_H_

#include <linux/bitfield.h>
#include <linux/types.h>
#include <linux/bug.h>

enum lan966x_target {};

#define __REG(...)

/*      HSIO:SD:SD_CFG */
#define HSIO_SD_CFG(g)

#define HSIO_SD_CFG_PHY_RESET
#define HSIO_SD_CFG_PHY_RESET_SET(x)
#define HSIO_SD_CFG_PHY_RESET_GET(x)

#define HSIO_SD_CFG_TX_RESET
#define HSIO_SD_CFG_TX_RESET_SET(x)
#define HSIO_SD_CFG_TX_RESET_GET(x)

#define HSIO_SD_CFG_TX_RATE
#define HSIO_SD_CFG_TX_RATE_SET(x)
#define HSIO_SD_CFG_TX_RATE_GET(x)

#define HSIO_SD_CFG_TX_INVERT
#define HSIO_SD_CFG_TX_INVERT_SET(x)
#define HSIO_SD_CFG_TX_INVERT_GET(x)

#define HSIO_SD_CFG_TX_EN
#define HSIO_SD_CFG_TX_EN_SET(x)
#define HSIO_SD_CFG_TX_EN_GET(x)

#define HSIO_SD_CFG_TX_DATA_EN
#define HSIO_SD_CFG_TX_DATA_EN_SET(x)
#define HSIO_SD_CFG_TX_DATA_EN_GET(x)

#define HSIO_SD_CFG_TX_CM_EN
#define HSIO_SD_CFG_TX_CM_EN_SET(x)
#define HSIO_SD_CFG_TX_CM_EN_GET(x)

#define HSIO_SD_CFG_LANE_10BIT_SEL
#define HSIO_SD_CFG_LANE_10BIT_SEL_SET(x)
#define HSIO_SD_CFG_LANE_10BIT_SEL_GET(x)

#define HSIO_SD_CFG_RX_TERM_EN
#define HSIO_SD_CFG_RX_TERM_EN_SET(x)
#define HSIO_SD_CFG_RX_TERM_EN_GET(x)

#define HSIO_SD_CFG_RX_RESET
#define HSIO_SD_CFG_RX_RESET_SET(x)
#define HSIO_SD_CFG_RX_RESET_GET(x)

#define HSIO_SD_CFG_RX_RATE
#define HSIO_SD_CFG_RX_RATE_SET(x)
#define HSIO_SD_CFG_RX_RATE_GET(x)

#define HSIO_SD_CFG_RX_PLL_EN
#define HSIO_SD_CFG_RX_PLL_EN_SET(x)
#define HSIO_SD_CFG_RX_PLL_EN_GET(x)

#define HSIO_SD_CFG_RX_INVERT
#define HSIO_SD_CFG_RX_INVERT_SET(x)
#define HSIO_SD_CFG_RX_INVERT_GET(x)

#define HSIO_SD_CFG_RX_DATA_EN
#define HSIO_SD_CFG_RX_DATA_EN_SET(x)
#define HSIO_SD_CFG_RX_DATA_EN_GET(x)

#define HSIO_SD_CFG_LANE_LOOPBK_EN
#define HSIO_SD_CFG_LANE_LOOPBK_EN_SET(x)
#define HSIO_SD_CFG_LANE_LOOPBK_EN_GET(x)

/*      HSIO:SD:MPLL_CFG */
#define HSIO_MPLL_CFG(g)

#define HSIO_MPLL_CFG_REF_SSP_EN
#define HSIO_MPLL_CFG_REF_SSP_EN_SET(x)
#define HSIO_MPLL_CFG_REF_SSP_EN_GET(x)

#define HSIO_MPLL_CFG_REF_CLKDIV2
#define HSIO_MPLL_CFG_REF_CLKDIV2_SET(x)
#define HSIO_MPLL_CFG_REF_CLKDIV2_GET(x)

#define HSIO_MPLL_CFG_MPLL_EN
#define HSIO_MPLL_CFG_MPLL_EN_SET(x)
#define HSIO_MPLL_CFG_MPLL_EN_GET(x)

#define HSIO_MPLL_CFG_MPLL_MULTIPLIER
#define HSIO_MPLL_CFG_MPLL_MULTIPLIER_SET(x)
#define HSIO_MPLL_CFG_MPLL_MULTIPLIER_GET(x)

/*      HSIO:SD:SD_STAT */
#define HSIO_SD_STAT(g)

#define HSIO_SD_STAT_MPLL_STATE
#define HSIO_SD_STAT_MPLL_STATE_SET(x)
#define HSIO_SD_STAT_MPLL_STATE_GET(x)

#define HSIO_SD_STAT_TX_STATE
#define HSIO_SD_STAT_TX_STATE_SET(x)
#define HSIO_SD_STAT_TX_STATE_GET(x)

#define HSIO_SD_STAT_TX_CM_STATE
#define HSIO_SD_STAT_TX_CM_STATE_SET(x)
#define HSIO_SD_STAT_TX_CM_STATE_GET(x)

#define HSIO_SD_STAT_RX_PLL_STATE
#define HSIO_SD_STAT_RX_PLL_STATE_SET(x)
#define HSIO_SD_STAT_RX_PLL_STATE_GET(x)

/*      HSIO:HW_CFGSTAT:HW_CFG */
#define HSIO_HW_CFG

#define HSIO_HW_CFG_RGMII_1_CFG
#define HSIO_HW_CFG_RGMII_1_CFG_SET(x)
#define HSIO_HW_CFG_RGMII_1_CFG_GET(x)

#define HSIO_HW_CFG_RGMII_0_CFG
#define HSIO_HW_CFG_RGMII_0_CFG_SET(x)
#define HSIO_HW_CFG_RGMII_0_CFG_GET(x)

#define HSIO_HW_CFG_RGMII_ENA
#define HSIO_HW_CFG_RGMII_ENA_SET(x)
#define HSIO_HW_CFG_RGMII_ENA_GET(x)

#define HSIO_HW_CFG_SD6G_0_CFG
#define HSIO_HW_CFG_SD6G_0_CFG_SET(x)
#define HSIO_HW_CFG_SD6G_0_CFG_GET(x)

#define HSIO_HW_CFG_SD6G_1_CFG
#define HSIO_HW_CFG_SD6G_1_CFG_SET(x)
#define HSIO_HW_CFG_SD6G_1_CFG_GET(x)

#define HSIO_HW_CFG_GMII_ENA
#define HSIO_HW_CFG_GMII_ENA_SET(x)
#define HSIO_HW_CFG_GMII_ENA_GET(x)

#define HSIO_HW_CFG_QSGMII_ENA
#define HSIO_HW_CFG_QSGMII_ENA_SET(x)
#define HSIO_HW_CFG_QSGMII_ENA_GET(x)

/*      HSIO:HW_CFGSTAT:RGMII_CFG */
#define HSIO_RGMII_CFG(r)

#define HSIO_RGMII_CFG_TX_CLK_CFG
#define HSIO_RGMII_CFG_TX_CLK_CFG_SET(x)
#define HSIO_RGMII_CFG_TX_CLK_CFG_GET(x)

#define HSIO_RGMII_CFG_RGMII_TX_RST
#define HSIO_RGMII_CFG_RGMII_TX_RST_SET(x)
#define HSIO_RGMII_CFG_RGMII_TX_RST_GET(x)

#define HSIO_RGMII_CFG_RGMII_RX_RST
#define HSIO_RGMII_CFG_RGMII_RX_RST_SET(x)
#define HSIO_RGMII_CFG_RGMII_RX_RST_GET(x)

/*      HSIO:HW_CFGSTAT:DLL_CFG */
#define HSIO_DLL_CFG(r)

#define HSIO_DLL_CFG_DELAY_ENA
#define HSIO_DLL_CFG_DELAY_ENA_SET(x)
#define HSIO_DLL_CFG_DELAY_ENA_GET(x)

#define HSIO_DLL_CFG_DLL_ENA
#define HSIO_DLL_CFG_DLL_ENA_SET(x)
#define HSIO_DLL_CFG_DLL_ENA_GET(x)

#define HSIO_DLL_CFG_DLL_RST
#define HSIO_DLL_CFG_DLL_RST_SET(x)
#define HSIO_DLL_CFG_DLL_RST_GET(x)

#endif /* _LAN966X_HSIO_REGS_H_ */