Skip to content
Snippets Groups Projects
Commit 191aff63 authored by Markus Gothe's avatar Markus Gothe :ok_hand:
Browse files

The RGMII device tree conflicts with the ethernet driver in

u-boot. Hence, me and Benjamin decided to leave out support for
RGMII from u-boot on the panther devices.
parent 14bd2f93
No related branches found
No related tags found
1 merge request!186The RGMII device tree conflicts with the ethernet driver
From a09e39ab4af6101a4d5a8668d451fb7f3e488f01 Mon Sep 17 00:00:00 2001
From: Markus Gothe <markus.gothe@genexis.eu>
Date: Tue, 22 Jun 2021 11:41:51 +0200
Subject: [PATCH] Disable EXT1/RGMII in u-boot for panther devices. The driver
is not working and breaks the expected behaviour.
---
.../u-boot-2019.07/drivers/net/bcmbca/phy/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bcm963xx/bootloaders/u-boot-2019.07/drivers/net/bcmbca/phy/Makefile b/bcm963xx/bootloaders/u-boot-2019.07/drivers/net/bcmbca/phy/Makefile
index d670f53d0..e7d28a0ff 100644
--- a/bcm963xx/bootloaders/u-boot-2019.07/drivers/net/bcmbca/phy/Makefile
+++ b/bcm963xx/bootloaders/u-boot-2019.07/drivers/net/bcmbca/phy/Makefile
@@ -57,11 +57,11 @@ ifeq ($(strip ${BRCM_CHIP}),6846)
DRV_OBJS += bus_drv_mdio_v1.o
DRV_OBJS += mac_drv_unimac.o
DRV_OBJS += phy_drv_6846_egphy.o
- DRV_OBJS += phy_drv_ext1.o
- DRV_OBJS += brcm_rgmii.o
- EXTRA_CFLAGS += -DBRCM_RGMII
+ #DRV_OBJS += phy_drv_ext1.o
+ #DRV_OBJS += brcm_rgmii.o
+ #EXTRA_CFLAGS += -DBRCM_RGMII
EXTRA_CFLAGS += -DMAC_UNIMAC
- EXTRA_CFLAGS += -DPHY_6846_EGPHY -DPHY_EXT1
+ EXTRA_CFLAGS += -DPHY_6846_EGPHY #-DPHY_EXT1
endif
ifeq ($(strip ${BRCM_CHIP}),6878)
DRV_OBJS += mdio_drv_common.o
--
2.32.0
From 9892a67806ca56e453afb9c314a04249006d0d15 Mon Sep 17 00:00:00 2001
From: Markus Gothe <markus.gothe@genexis.eu>
Date: Tue, 22 Jun 2021 14:27:31 +0200
Subject: [PATCH] Force full duplex on RGMII.
---
bcm963xx/bcmdrivers/opensource/phy/phy_drv_ext1.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/bcm963xx/bcmdrivers/opensource/phy/phy_drv_ext1.c b/bcm963xx/bcmdrivers/opensource/phy/phy_drv_ext1.c
index 99f60ce45..496239d49 100644
--- a/bcm963xx/bcmdrivers/opensource/phy/phy_drv_ext1.c
+++ b/bcm963xx/bcmdrivers/opensource/phy/phy_drv_ext1.c
@@ -69,6 +69,17 @@ Exit:
return ret;
}
+static int _brcm_read_status(phy_dev_t *phy_dev)
+{
+ phy_dev->pause_rx = 0;
+ phy_dev->pause_tx = 0;
+ phy_dev->speed = PHY_SPEED_1000;
+ phy_dev->duplex = PHY_DUPLEX_FULL;
+ phy_dev->link = 1;
+
+ return 0;
+}
+
phy_drv_t phy_drv_ext1 =
{
.phy_type = PHY_TYPE_EXT1,
@@ -77,7 +88,7 @@ phy_drv_t phy_drv_ext1 =
.power_set = mii_power_set,
.apd_get = brcm_shadow_1c_apd_get,
.apd_set = brcm_shadow_1c_apd_set,
- .read_status = brcm_read_status,
+ .read_status = _brcm_read_status,
.speed_set = mii_speed_set,
.caps_get = mii_caps_get,
.caps_set = mii_caps_set,
--
2.32.0
0001-Disable-EXT1-RGMII-in-u-boot-for-panther-devices.patch
0002-Force-full-duplex-on-RGMII.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment