Re: [PATCH v4 3/4] net: stmmac: Add glue layer for Loongson-1 SoC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30/8/23 15:42, Keguang Zhang wrote:
This glue driver is created based on the arch-code
implemented earlier with the platform-specific settings.

Use syscon for SYSCON register access.

Partially based on the previous work by Serge Semin.

Signed-off-by: Keguang Zhang <keguang.zhang@xxxxxxxxx>
---
V3 -> V4: Drop ls1x_dwmac_syscon definition and its instances
           Drop three redundant fields from the ls1x_dwmac structure
           Drop the ls1x_dwmac_init() method.
           Some minor improvements
V2 -> V3: Determine the device ID by physical
           base address(suggested by Serge Semin)
           Use regmap instead of regmap fields
           Use syscon_regmap_lookup_by_phandle()
           Some minor fixes
V1 -> V2: Fix the build errors due to CONFIG_OF being unset
           Change struct reg_field definitions to const
           Rename the syscon property to "loongson,dwmac-syscon"
           Add MII PHY mode for LS1C

  drivers/net/ethernet/stmicro/stmmac/Kconfig   |  11 +
  drivers/net/ethernet/stmicro/stmmac/Makefile  |   1 +
  .../ethernet/stmicro/stmmac/dwmac-loongson1.c | 219 ++++++++++++++++++
  3 files changed, 231 insertions(+)
  create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c

Squash:

-- >8 --
diff --git a/MAINTAINERS b/MAINTAINERS
index ff1f273b4f36..2519d06b5aab 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14344,9 +14344,12 @@ MIPS/LOONGSON1 ARCHITECTURE
 M:	Keguang Zhang <keguang.zhang@xxxxxxxxx>
 L:	linux-mips@xxxxxxxxxxxxxxx
 S:	Maintained
 F:	Documentation/devicetree/bindings/*/loongson,ls1x-*.yaml
 F:	Documentation/devicetree/bindings/net/loongson,ls1*.yaml
 F:	arch/mips/include/asm/mach-loongson32/
 F:	arch/mips/loongson32/
 F:	drivers/*/*loongson1*
+F:	drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c
---



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux