]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: pcs-airoha: unify code using SCU regmap helper
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Sun, 15 Mar 2026 07:47:56 +0000 (10:47 +0300)
committerJerome Forissier <jerome.forissier@arm.com>
Tue, 31 Mar 2026 14:43:28 +0000 (16:43 +0200)
Use common code to get CHIP_SCU registers instead of driver one.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
drivers/net/airoha/pcs-airoha-common.c

index 2e5cb085498ce846e7a458d74b5141a3109c1268..1263092fcdd4e1dd2119f26cf778db82fe4d0aaa 100644 (file)
@@ -10,7 +10,7 @@
 #include <net.h>
 #include <regmap.h>
 #include <reset.h>
-#include <syscon.h>
+#include <asm/arch/scu-regmap.h>
 
 #include "pcs-airoha.h"
 
@@ -755,7 +755,7 @@ static int airoha_pcs_probe(struct udevice *dev)
                return PTR_ERR(priv->xfi_ana);
 
        /* SCU is used to toggle XFI or HSGMII in global SoC registers */
-       priv->scu = syscon_regmap_lookup_by_phandle(dev, "airoha,scu");
+       priv->scu = airoha_get_scu_regmap();
        if (IS_ERR(priv->scu))
                return PTR_ERR(priv->scu);