forked from M-Labs/zynq-rs
eth phy: reset page to 0 on kasli-soc for ident
This commit is contained in:
parent
67880b4e0b
commit
1c8e2c318c
@ -11,6 +11,9 @@ pub struct PhyIdentifier {
|
||||
}
|
||||
|
||||
pub fn identify_phy<PA: PhyAccess>(pa: &mut PA, addr: u8) -> Option<PhyIdentifier> {
|
||||
#[cfg(feature = "target_kasli_soc")]
|
||||
pa.write_phy(addr, 0x16, 0); //reset page
|
||||
|
||||
let id1 = pa.read_phy(addr, 2);
|
||||
let id2 = pa.read_phy(addr, 3);
|
||||
if id1 != 0xFFFF || id2 != 0xFFFF {
|
||||
|
Loading…
Reference in New Issue
Block a user