mirror of
https://github.com/armbian/build.git
synced 2025-09-19 12:41:39 +02:00
- `risc-v`: rework RichNeese's boards, reduce families, move tweaks to boards - `risc-v`/`starfive`: `CONFIG_MOTORCOMM_PHY=m` for the onboard Ethernet - `risc-v`/`starfive`: use mainline kernel 6.1.y, with StarFive's rebased patches against `v6.1.5` - from https://github.com/starfive-tech/linux/commits/visionfive - contention point: `1022-soc-sifive-ccache-Add-StarFive-JH71x0-support.patch` which I merged half-assed, need review/fixes? - `risc-v`/`starfive`: update kernel config, sans changes - `risc-v`/`starfive`: switch from `grub` to `extlinux` - `risc-v`/`starfive`: new `starfive` family with their (vendor) kernel Co-authored-by: Richard Neese <r.neese@gmail.com>
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Emil Renner Berthing <emil.renner.berthing@canonical.com>
|
|
Date: Mon, 7 Nov 2022 21:05:18 +0100
|
|
Subject: net: phy: motorcomm: Disable rgmii rx delay
|
|
|
|
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
|
|
---
|
|
drivers/net/phy/motorcomm.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
|
|
index c7593f224177..35a4f2a76996 100644
|
|
--- a/drivers/net/phy/motorcomm.c
|
|
+++ b/drivers/net/phy/motorcomm.c
|
|
@@ -160,6 +160,7 @@
|
|
|
|
#define YT8521_CHIP_CONFIG_REG 0xA001
|
|
#define YT8521_CCR_SW_RST BIT(15)
|
|
+#define YT8521_CCR_RXC_DLY_EN BIT(8)
|
|
|
|
#define YT8521_CCR_MODE_SEL_MASK (BIT(2) | BIT(1) | BIT(0))
|
|
#define YT8521_CCR_MODE_UTP_TO_RGMII 0
|
|
@@ -1150,6 +1151,12 @@ static int yt8521_config_init(struct phy_device *phydev)
|
|
val);
|
|
if (ret < 0)
|
|
goto err_restore_page;
|
|
+
|
|
+ /* disable rx delay */
|
|
+ ret = ytphy_modify_ext(phydev, YT8521_CHIP_CONFIG_REG,
|
|
+ YT8521_CCR_RXC_DLY_EN, 0);
|
|
+ if (ret < 0)
|
|
+ goto err_restore_page;
|
|
}
|
|
|
|
/* disable auto sleep */
|
|
--
|
|
Armbian
|
|
|