Skip to content

net: allwinner: sun4i-emac: add missing SRAM mapping

Jens Kuske linux-arm-kernel linux-devicetree netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: dts: sunxi: Add syscon node for controlling SRAM mappingarch/arm/boot/dts/sun4i-a10.dtsi arch/arm/boot/dts/sun5i-a10s.dtsi arch/arm/boot/dts/sun5i-a13.dtsi +1 more+20 -00 replies
2/3ARM: sunxi: Add register bit definitions for SRAM mapping sysconinclude/linux/mfd/syscon/sun4i-sc.h+42 -01 reply
3/3net: allwinner: sun4i-emac: fix emac SRAM mappingdrivers/net/ethernet/allwinner/Kconfig drivers/net/ethernet/allwinner/sun4i-emac.c+19 -03 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchLee Jones
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] net: allwinner: sun4i-emac: add missing SRAM mapping

Hi all,

The current sun4i-emac kernel driver does not set the needed SRAM mapping.

This hasn't been noticed because normally the bootloader already did this. But in case the bootloader skips initializing the EMAC, like in U-Boot's Falcon Mode for example, the kernel driver has to take care of it.

Patch 1-2 add a mfd/syscon for the shared registers responsible for SRAM mapping. These patches are taken from Chen-Yu Tsai's sunxi-musb tree [1] and I added a copy of the device-tree nodes to sun4i and sun5i.

Patch 3 adds the code to map SRAM to EMAC using the syscon.

Regards,
Jens

[1] https://github.com/wens/linux/commits/wip/sunxi-musb

Chen-Yu Tsai (2):
ARM: dts: sunxi: Add syscon node for controlling SRAM mapping
ARM: sunxi: Add register bit definitions for SRAM mapping syscon

Jens Kuske (1):
net: allwinner: sun4i-emac: fix emac SRAM mapping

 arch/arm/boot/dts/sun4i-a10.dtsi            |  5 ++++
 arch/arm/boot/dts/sun5i-a10s.dtsi           |  5 ++++
 arch/arm/boot/dts/sun5i-a13.dtsi            |  5 ++++
 arch/arm/boot/dts/sun7i-a20.dtsi            |  5 ++++
 drivers/net/ethernet/allwinner/Kconfig      |  1 +
 drivers/net/ethernet/allwinner/sun4i-emac.c | 18 +++++++++++++
 include/linux/mfd/syscon/sun4i-sc.h         | 42 +++++++++++++++++++++++++++++
 7 files changed, 81 insertions(+)
 create mode 100644 include/linux/mfd/syscon/sun4i-sc.h
Signature · 1 line
2.2.2