[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200322132342.2687-1-weifeng.voon@intel.com>
Date: Sun, 22 Mar 2020 21:23:41 +0800
From: Voon Weifeng <weifeng.voon@...el.com>
To: "David S . Miller" <davem@...emloft.net>,
Maxime Coquelin <mcoquelin.stm32@...il.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Jose Abreu <joabreu@...opsys.com>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
Andrew Lunn <andrew@...n.ch>,
Alexandre Torgue <alexandre.torgue@...com>,
Ong Boon Leong <boon.leong.ong@...el.com>,
Voon Weifeng <weifeng.voon@...el.com>
Subject: [RFC,net-next,v1, 0/1] Enable SERDES power up/down
This patch is to enable Intel SERDES power up/down sequence. The SERDES
converts 8/10 bits data to SGMII signal.
1. Two new files intel_serdes.c and intel.h have been created to include
the power up/down logic.
2. Platform data has_serdes is created to identify HW system that requires
SERDES for SGMII mode. Expecting all Intel HW system will require it.
The identification logic is added in hwif.
3. A new stmmac_serdes_ops struct is introduced as helpers to program
SERDES.
Voon Weifeng (1):
net: stmmac: Enable SERDES power up/down sequence
drivers/net/ethernet/stmicro/stmmac/Makefile | 2 +-
drivers/net/ethernet/stmicro/stmmac/common.h | 1 +
.../net/ethernet/stmicro/stmmac/dwmac4_core.c | 1 +
drivers/net/ethernet/stmicro/stmmac/hwif.c | 44 ++++-
drivers/net/ethernet/stmicro/stmmac/hwif.h | 12 ++
.../ethernet/stmicro/stmmac/intel_serdes.c | 181 ++++++++++++++++++
.../ethernet/stmicro/stmmac/intel_serdes.h | 23 +++
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 8 +
.../net/ethernet/stmicro/stmmac/stmmac_pci.c | 6 +
include/linux/stmmac.h | 2 +
10 files changed, 278 insertions(+), 2 deletions(-)
create mode 100644 drivers/net/ethernet/stmicro/stmmac/intel_serdes.c
create mode 100644 drivers/net/ethernet/stmicro/stmmac/intel_serdes.h
--
2.17.1
Powered by blists - more mailing lists