summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorMario Scheithauer <mario.scheithauer@siemens.com>2022-11-04 10:23:43 +0100
committerMartin L Roth <gaumless@gmail.com>2022-11-24 05:57:11 +0000
commitd4ab2ee38fcc91edaa31617558068fa9d8ca0f65 (patch)
tree9d98fb3dceafda4cfc4e2ff8923d00da4a178c36 /src/drivers
parentc16a7fc7179e0811a26bcfa44214f88f64793f04 (diff)
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 <mario.scheithauer@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69384 Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/phy/m88e1512/Kconfig5
-rw-r--r--src/drivers/net/phy/m88e1512/Makefile.inc1
-rw-r--r--src/drivers/net/phy/m88e1512/m88e1512.c17
3 files changed, 23 insertions, 0 deletions
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 <device/device.h>
+
+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")
+};