]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: drop legacy I/O functions 21824/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 1 Feb 2026 18:35:45 +0000 (19:35 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 2 Feb 2026 12:57:19 +0000 (13:57 +0100)
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>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c

index 70657badca8dcd0d25a67dd5423ceb820bd1a00b..76a61f6f239152acb8faa833cc6f1a08194fd8a2 100644 (file)
@@ -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)
 
 #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