From 379b6b973a22ed52177a2691a9d120a622d1fb3b Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 19 Nov 2020 20:38:10 +0100 Subject: [PATCH] libboard_zynq: add support for target_kasli_soc's Marvell88E1512 eth phy --- libboard_zynq/src/eth/phy/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libboard_zynq/src/eth/phy/mod.rs b/libboard_zynq/src/eth/phy/mod.rs index 8257cd2..f123b51 100644 --- a/libboard_zynq/src/eth/phy/mod.rs +++ b/libboard_zynq/src/eth/phy/mod.rs @@ -40,6 +40,7 @@ pub struct Phy { #[derive(Clone, Copy)] pub enum PhyDevice { Marvell88E1116R, + Marvell88E1512, Rtl8211E, PEF7071 } @@ -58,6 +59,11 @@ impl Phy { model: 36, .. }) => Some(PhyDevice::Marvell88E1116R), + Some(PhyIdentifier { + oui: OUI_MARVELL, + model: 29, + .. + }) => Some(PhyDevice::Marvell88E1512), Some(PhyIdentifier { oui: OUI_REALTEK, model: 0b010001, @@ -76,6 +82,7 @@ impl Phy { pub fn name(&self) -> &'static str { match self.device { PhyDevice::Marvell88E1116R => &"Marvell 88E1116R", + PhyDevice::Marvell88E1512 => &"Marvell 88E1512", PhyDevice::Rtl8211E => &"RTL8211E", PhyDevice::PEF7071 => &"Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6" }