mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 08:21:27 +01:00
In preparation for support of MDIO on AN7581, move the MT7531 MMIO logic to a dedicated driver and permit usage of the mdio read/write function to the mtk_eth driver. This only affect MT7988 that can use MMIO operation to access the Switch register. The MT7988 code is updated to make use of the external driver. This permits Airoha driver to make use of DM_MDIO to bind for the MT7531 driver that have the same exact register. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 lines
276 B
C
10 lines
276 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
struct mt7531_mdio_mmio_priv {
|
|
phys_addr_t switch_regs;
|
|
};
|
|
|
|
int mt7531_mdio_mmio_read(struct mii_dev *bus, int addr, int devad, int reg);
|
|
int mt7531_mdio_mmio_write(struct mii_dev *bus, int addr, int devad,
|
|
int reg, u16 value);
|