summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kshevetskiy <[email protected]>2025-11-01 03:44:58 +0300
committerTom Rini <[email protected]>2025-11-07 16:00:59 -0600
commit801a84b1a46ac70f49772a2c7069a33cd30cf720 (patch)
treef177fcfb86253e5af850c1d83b956e44a519dd90
parent4d6da602e3ee7907dc33cadc225f6ab06117f845 (diff)
net: airoha: unify code using SCU regmap helper
This allow us remove some an7581/an7583 specific code and use a common code instead. Signed-off-by: Mikhail Kshevetskiy <[email protected]>
-rw-r--r--drivers/net/airoha_eth.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/airoha_eth.c b/drivers/net/airoha_eth.c
index 19c3d60044c..62dd7f7353d 100644
--- a/drivers/net/airoha_eth.c
+++ b/drivers/net/airoha_eth.c
@@ -21,6 +21,7 @@
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/time.h>
+#include <asm/arch/scu-regmap.h>
#define AIROHA_MAX_NUM_GDM_PORTS 1
#define AIROHA_MAX_NUM_QDMA 1
@@ -720,14 +721,9 @@ static int airoha_eth_probe(struct udevice *dev)
{
struct airoha_eth *eth = dev_get_priv(dev);
struct regmap *scu_regmap;
- ofnode scu_node;
int ret;
- scu_node = ofnode_by_compatible(ofnode_null(), "airoha,en7581-scu");
- if (!ofnode_valid(scu_node))
- return -EINVAL;
-
- scu_regmap = syscon_node_to_regmap(scu_node);
+ scu_regmap = airoha_get_scu_regmap();
if (IS_ERR(scu_regmap))
return PTR_ERR(scu_regmap);