diff options
| author | Markus Stockhausen | 2026-02-01 18:35:45 +0000 |
|---|---|---|
| committer | Robert Marko | 2026-02-02 12:57:19 +0000 |
| commit | c1a9e35a77c1a4892d1fd89c11415ab579759f50 (patch) | |
| tree | 54ccf2f9c459ee314fe7d30fc9de2871420931f0 | |
| parent | d76eb4113b1903990829796b8d90a57d0e793cf5 (diff) | |
| download | nbd-c1a9e35a77c1a4892d1fd89c11415ab579759f50.tar.gz | |
realtek: drop legacy I/O functions
Remove the unneeded sw_xxx() macros.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21824
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c index 70657badca..76a61f6f23 100644 --- a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c +++ b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c @@ -28,9 +28,6 @@ #define RTMDIO_PHY_POLL_MMD(dev, reg, bit) ((bit << 21) | (dev << 16) | reg) -/* Register base */ -#define RTMDIO_SW_BASE ((volatile void *) 0xBB000000) - /* MDIO bus registers */ #define RTMDIO_RUN BIT(0) @@ -105,10 +102,6 @@ #define RTMDIO_931X_SMI_10GPHY_POLLING_SEL3 (0x0CFC) #define RTMDIO_931X_SMI_10GPHY_POLLING_SEL4 (0x0D00) -#define sw_r32(reg) readl(RTMDIO_SW_BASE + reg) -#define sw_w32(val, reg) writel(val, RTMDIO_SW_BASE + reg) -#define sw_w32_mask(clear, set, reg) sw_w32((sw_r32(reg) & ~(clear)) | (set), reg) - /* * On all Realtek switch platforms the hardware periodically reads the link status of all * PHYs. This is to some degree programmable, so that one can tell the hardware to read |