net: pcs-airoha: unify code using SCU regmap helper

Use common code to get CHIP_SCU registers instead of driver one.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
This commit is contained in:
Mikhail Kshevetskiy
2026-03-15 10:47:56 +03:00
committed by Jerome Forissier
parent a05c0d1732
commit ac91f1a8ad

View 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);