brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · 0a37987 Raw
54 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/* Copyright (c) 2020, Intel Corporation3 * DWMAC Intel header file4 */5 6#ifndef __DWMAC_INTEL_H__7#define __DWMAC_INTEL_H__8 9#define POLL_DELAY_US 810 11/* SERDES Register */12#define SERDES_GCR	0x0	/* Global Conguration */13#define SERDES_GSR0	0x5	/* Global Status Reg0 */14#define SERDES_GCR0	0xb	/* Global Configuration Reg0 */15 16/* SERDES defines */17#define SERDES_PLL_CLK		BIT(0)		/* PLL clk valid signal */18#define SERDES_PHY_RX_CLK	BIT(1)		/* PSE SGMII PHY rx clk */19#define SERDES_RST		BIT(2)		/* Serdes Reset */20#define SERDES_PWR_ST_MASK	GENMASK(6, 4)	/* Serdes Power state*/21#define SERDES_RATE_MASK	GENMASK(9, 8)22#define SERDES_PCLK_MASK	GENMASK(14, 12)	/* PCLK rate to PHY */23#define SERDES_LINK_MODE_MASK	GENMASK(2, 1)24#define SERDES_LINK_MODE_SHIFT	125#define SERDES_PWR_ST_SHIFT	426#define SERDES_PWR_ST_P0	0x027#define SERDES_PWR_ST_P3	0x328#define SERDES_LINK_MODE_2G5	0x329#define SERSED_LINK_MODE_1G	0x230#define SERDES_PCLK_37p5MHZ	0x031#define SERDES_PCLK_70MHZ	0x132#define SERDES_RATE_PCIE_GEN1	0x033#define SERDES_RATE_PCIE_GEN2	0x134#define SERDES_RATE_PCIE_SHIFT	835#define SERDES_PCLK_SHIFT	1236 37#define INTEL_MGBE_ADHOC_ADDR	0x1538#define INTEL_MGBE_XPCS_ADDR	0x1639 40/* Cross-timestamping defines */41#define ART_CPUID_LEAF		0x1542#define EHL_PSE_ART_MHZ		1920000043 44/* Selection for PTP Clock Freq belongs to PSE & PCH GbE */45#define PSE_PTP_CLK_FREQ_MASK		(GMAC_GPO0 | GMAC_GPO3)46#define PSE_PTP_CLK_FREQ_19_2MHZ	(GMAC_GPO0)47#define PSE_PTP_CLK_FREQ_200MHZ		(GMAC_GPO0 | GMAC_GPO3)48#define PSE_PTP_CLK_FREQ_256MHZ		(0)49#define PCH_PTP_CLK_FREQ_MASK		(GMAC_GPO0)50#define PCH_PTP_CLK_FREQ_19_2MHZ	(GMAC_GPO0)51#define PCH_PTP_CLK_FREQ_200MHZ		(0)52 53#endif /* __DWMAC_INTEL_H__ */54