aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2018-04-30 22:42:39 +1000
committerJohn Crispin <john@phrozen.org>2018-07-30 10:53:57 +0200
commit08714738d2c8d7710f8fd2b7deac795f49e7d7c2 (patch)
treeda058038a138d0ab98d7928d9806f4f77ddbef65 /target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch
parent481f870a02a29974eca943f3b926434d5e517679 (diff)
downloadupstream-08714738d2c8d7710f8fd2b7deac795f49e7d7c2.tar.gz
upstream-08714738d2c8d7710f8fd2b7deac795f49e7d7c2.tar.bz2
upstream-08714738d2c8d7710f8fd2b7deac795f49e7d7c2.zip
layerscape: add Traverse LS1043-S support
The Traverse LS1043-S board is a router board based on NXP/Freescale's LS1043 SoC, with 4x1GBase-T, 1 SFP and 1 SFP+, as well as miniPCIe and M.2 LTE. Unlike the Layerscape reference boards, the LS1043-S board has NAND flash and uses the mainline U-Boot. This patch implements support for the LS1043-S board, as well as the earlier LS1043-V board. It is our intention that all boards in this family (LS1043-S and later, Five64) will boot the same binary. Not included in this patchset are the hwmon drivers not in the kernel (emc1704,pac1934) or the bootloader. Signed-off-by: Mathew McBride <matt@traverse.com.au>
Diffstat (limited to 'target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch')
-rw-r--r--target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch b/target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch
index b867b1805a..593bd3e79a 100644
--- a/target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch
+++ b/target/linux/layerscape/patches-4.9/820-rgmii-fixed-link.patch
@@ -5,8 +5,8 @@ Subject: [PATCH] Recognize when an RGMII Link is set as fixed (in the device
tree) and set up the MAC accordingly
---
- drivers/net/ethernet/freescale/sdk_dpaa/mac.c | 1 +
- .../ethernet/freescale/sdk_fman/Peripherals/FM/MAC/memac.c | 13 +++++++++++++
+ drivers/net/ethernet/freescale/sdk_dpaa/mac.c | 1
+ drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/MAC/memac.c | 13 ++++++++++
2 files changed, 14 insertions(+)
--- a/drivers/net/ethernet/freescale/sdk_dpaa/mac.c
@@ -43,19 +43,19 @@ Subject: [PATCH] Recognize when an RGMII Link is set as fixed (in the device
{
t_Memac *p_Memac = (t_Memac *)h_Memac;
-+ struct mac_device *mac_dev = (struct mac_device *)p_Memac->h_App;
++ struct mac_device *mac_dev = (struct mac_device *)p_Memac->h_App;
+
SANITY_CHECK_RETURN_ERROR(p_Memac, E_INVALID_HANDLE);
SANITY_CHECK_RETURN_ERROR(!p_Memac->p_MemacDriverParam, E_INVALID_STATE);
fman_memac_enable(p_Memac->p_MemMap, (mode & e_COMM_MODE_RX), (mode & e_COMM_MODE_TX));
-+ if (ENET_INTERFACE_FROM_MODE(p_Memac->enetMode) == e_ENET_IF_RGMII) {
-+ if (mac_dev->fixed_link) {
-+ printk("This is a fixed-link, forcing speed %d duplex %d\n",mac_dev->fixed_link->speed,mac_dev->fixed_link->duplex);
-+ MemacAdjustLink(h_Memac,mac_dev->fixed_link->speed,mac_dev->fixed_link->duplex);
-+ }
++ if (ENET_INTERFACE_FROM_MODE(p_Memac->enetMode) == e_ENET_IF_RGMII) {
++ if (mac_dev->fixed_link) {
++ printk(KERN_INFO "This is a fixed-link, forcing speed %d duplex %d\n",mac_dev->fixed_link->speed,mac_dev->fixed_link->duplex);
++ MemacAdjustLink(h_Memac,mac_dev->fixed_link->speed,mac_dev->fixed_link->duplex);
+ }
++ }
+
return E_OK;
}