Mario Scheithauer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69384 )
Change subject: drivers/phy/m88e1512: Add new driver for Marvell PHY 88E1512 ......................................................................
drivers/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 mario.scheithauer@siemens.com --- A src/drivers/phy/m88e1512/Kconfig A src/drivers/phy/m88e1512/Makefile.inc A src/drivers/phy/m88e1512/m88e1512.c 3 files changed, 44 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/69384/1
diff --git a/src/drivers/phy/m88e1512/Kconfig b/src/drivers/phy/m88e1512/Kconfig new file mode 100644 index 0000000..8e9a2d9 --- /dev/null +++ b/src/drivers/phy/m88e1512/Kconfig @@ -0,0 +1,5 @@ +config DRIVERS_PHY_M88E1512 + bool + default n + help + Enable support for external Marvell PHY chip 88E1512. diff --git a/src/drivers/phy/m88e1512/Makefile.inc b/src/drivers/phy/m88e1512/Makefile.inc new file mode 100644 index 0000000..0d38051 --- /dev/null +++ b/src/drivers/phy/m88e1512/Makefile.inc @@ -0,0 +1 @@ +ramstage-$(CONFIG_DRIVERS_PHY_M88E1512) += m88e1512.c diff --git a/src/drivers/phy/m88e1512/m88e1512.c b/src/drivers/phy/m88e1512/m88e1512.c new file mode 100644 index 0000000..7da0651 --- /dev/null +++ b/src/drivers/phy/m88e1512/m88e1512.c @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/device.h> + +static void m88e1512_init(struct device *dev) +{ +} + +static struct device_operations m88e1512_ops = { + .read_resources = noop_read_resources, + .set_resources = noop_set_resources, + .init = m88e1512_init, +}; + +static void m88e1512_enable(struct device *dev) +{ + dev->ops = &m88e1512_ops; +} + +struct chip_operations drivers_phy_m88e1512_ops = { + CHIP_NAME("88E1512") + .enable_dev = m88e1512_enable +};