mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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:
committed by
Jerome Forissier
parent
a05c0d1732
commit
ac91f1a8ad
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user