1
0
Fork 0

libboard_zynq: add support for target_kasli_soc's Marvell88E1512 eth phy

This commit is contained in:
Astro 2020-11-19 20:38:10 +01:00
parent 178ab38e35
commit 379b6b973a
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,7 @@ pub struct Phy {
#[derive(Clone, Copy)] #[derive(Clone, Copy)]
pub enum PhyDevice { pub enum PhyDevice {
Marvell88E1116R, Marvell88E1116R,
Marvell88E1512,
Rtl8211E, Rtl8211E,
PEF7071 PEF7071
} }
@ -58,6 +59,11 @@ impl Phy {
model: 36, model: 36,
.. ..
}) => Some(PhyDevice::Marvell88E1116R), }) => Some(PhyDevice::Marvell88E1116R),
Some(PhyIdentifier {
oui: OUI_MARVELL,
model: 29,
..
}) => Some(PhyDevice::Marvell88E1512),
Some(PhyIdentifier { Some(PhyIdentifier {
oui: OUI_REALTEK, oui: OUI_REALTEK,
model: 0b010001, model: 0b010001,
@ -76,6 +82,7 @@ impl Phy {
pub fn name(&self) -> &'static str { pub fn name(&self) -> &'static str {
match self.device { match self.device {
PhyDevice::Marvell88E1116R => &"Marvell 88E1116R", PhyDevice::Marvell88E1116R => &"Marvell 88E1116R",
PhyDevice::Marvell88E1512 => &"Marvell 88E1512",
PhyDevice::Rtl8211E => &"RTL8211E", PhyDevice::Rtl8211E => &"RTL8211E",
PhyDevice::PEF7071 => &"Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6" PhyDevice::PEF7071 => &"Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6"
} }