From d4ab2ee38fcc91edaa31617558068fa9d8ca0f65 Mon Sep 17 00:00:00 2001 From: Mario Scheithauer Date: Fri, 4 Nov 2022 10:23:43 +0100 Subject: drivers/net/phy/m88e1512: Add new driver for Marvell PHY 88E1512 This driver enables the usage of an external Marvell PHY 88E1512 which should be connected to a SOC internal MAC controller. In a first step it is only the framework of the driver. Functionality will follow with a second patch. Change-Id: I24011860caa7bb206770f9779eb34b689293db10 Signed-off-by: Mario Scheithauer Reviewed-on: https://review.coreboot.org/c/coreboot/+/69384 Reviewed-by: Werner Zeh Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/drivers/net/phy/m88e1512/Kconfig | 5 +++++ src/drivers/net/phy/m88e1512/Makefile.inc | 1 + src/drivers/net/phy/m88e1512/m88e1512.c | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/drivers/net/phy/m88e1512/Kconfig create mode 100644 src/drivers/net/phy/m88e1512/Makefile.inc create mode 100644 src/drivers/net/phy/m88e1512/m88e1512.c (limited to 'src/drivers/net/phy/m88e1512') diff --git a/src/drivers/net/phy/m88e1512/Kconfig b/src/drivers/net/phy/m88e1512/Kconfig new file mode 100644 index 0000000000..24405a5f50 --- /dev/null +++ b/src/drivers/net/phy/m88e1512/Kconfig @@ -0,0 +1,5 @@ +config DRIVERS_ETH_PHY_M88E1512 + bool + default n + help + Enable support for external Marvell PHY chip 88E1512. diff --git a/src/drivers/net/phy/m88e1512/Makefile.inc b/src/drivers/net/phy/m88e1512/Makefile.inc new file mode 100644 index 0000000000..043b3a3aed --- /dev/null +++ b/src/drivers/net/phy/m88e1512/Makefile.inc @@ -0,0 +1 @@ +ramstage-$(CONFIG_DRIVERS_ETH_PHY_M88E1512) += m88e1512.c diff --git a/src/drivers/net/phy/m88e1512/m88e1512.c b/src/drivers/net/phy/m88e1512/m88e1512.c new file mode 100644 index 0000000000..3f45a10dae --- /dev/null +++ b/src/drivers/net/phy/m88e1512/m88e1512.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +static void m88e1512_init(struct device *dev) +{ +} + +struct device_operations m88e1512_ops = { + .read_resources = noop_read_resources, + .set_resources = noop_set_resources, + .init = m88e1512_init, +}; + +struct chip_operations drivers_net_phy_m88e1512_ops = { + CHIP_NAME("88E1512") +}; -- cgit v1.2.3