[RFC] support built-in ethernet phy which needs some mmio accesses
Andrew Lunn
andrew at lunn.ch
Mon Nov 20 07:54:48 PST 2023
> Per my understanding of the vendor code, it reads calibration data from
> efuse
Linux should have an API for accessing efuse data. So please make use
of that.
What address space is
#define REG_EPHY_TOP_WRAP 0x03009800
#define REG_EPHY_BASE 0x03009000
in? Is this range dedicated to the PHY? Is it within the MAC address
space?
Does the datasheet describe the PHY pages? I'm wondering if you can
access the same registers via MDIO?
Where is the MDIO driver? Since this is integrated into the silicon,
it could be MDIO is not actually MDIO and is much faster. If you can
access the same registers via MIDO, that would be the cleaner way to
do it.
Andrew
More information about the linux-riscv
mailing list