libboard_zynq: add support for target_kasli_soc's Marvell88E1512 eth phy
This commit is contained in:
parent
178ab38e35
commit
379b6b973a
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue