]> git.baikalelectronics.ru Git - uboot.git/commit
arm: socfpga: fix Gen5 enable of EMAC via FPGA
authorRalph Siemsen <ralph.siemsen@linaro.org>
Tue, 29 Sep 2020 18:52:05 +0000 (14:52 -0400)
committerLey Foon Tan <ley.foon.tan@intel.com>
Wed, 21 Oct 2020 03:45:54 +0000 (11:45 +0800)
commitdf0b0f3841df072f7f0560c9643d5e133fe2dd71
tree6b073149ad42070403ced9e5eb463e6c5002c3b0
parent6662570ea4a312c88ac20b9fed1eb0d3bc5db74a
arm: socfpga: fix Gen5 enable of EMAC via FPGA

An earlier conversion from struct to defines introduced two errors, both
related to setup of EMAC routed via the FPGA. One of the offsets was
incorrect, and the EMAC0/EMAC1 were swapped.

The effect of this was rather odd: both ports could operate at gigabit,
but one of them would fail to transmit when operating at 100Mbit.

Fixes: 3fc2ee409ad82c0ae9f101a0d5db3f1f1fb367b9 ("arm: socfpga: Convert system manager from struct to defines")
Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/mach-socfpga/include/mach/system_manager_gen5.h