[linux-sunxi] [PATCH] net: sun8i-emac: Fix pinmux setup for Allwinner H5

Samuel Holland samuel at sholland.org
Sun Apr 18 08:45:24 CEST 2021


On 4/16/21 6:05 AM, Andre Przywara wrote:
> Commit eb5a2b671075 ("net: sun8i-emac: Determine pinmux based on SoC,
> not EMAC type") switched the pinmux setup over to look at
> CONFIG_MACH_SUN* symbols, to find the appropriate mux value.
> Unfortunately this patch missed to check for the H5, which is
> pin-compatible to the H3, but uses a different Kconfig symbol (because
> it has ARMv8 vs. ARMv7 cores).
> 
> Replace the pure SUN8I_H3 symbol with the joint SUNXI_H3_H5 one, which is
> there to cover the peripherals common to both SoCs.
> Also explicitly list each supported SoC, and have an error message in the
> fallback case, to avoid those problems in the future.
> 
> This fixes Ethernet support on all H5 boards.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

Tested-by: Samuel Holland <samuel at sholland.org> # Orange Pi PC2

Also tested on H3 (Orange Pi Plus 2E) and A64 (Orange Pi Win) to verify
no regression.


More information about the U-Boot mailing list