add-board-orangepi-r1-plus-lts-patch-remove-trailing-spaces (#4668)

and line feeds. Improve parser compatibility. No functional changes.
This commit is contained in:
schwar3kat 2023-01-08 23:10:57 +13:00 committed by GitHub
parent 0936a4200b
commit 25c8de0056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
From: schwar3kat <61094841+schwar3kat@users.noreply.github.com>
Date: Wed, 08 Jun 2022 13:47:03 +1300
Subject: Add u-boot support rk3328-orangepi-r1-plus
Subject: [PATCH] Add u-boot support rk3328-orangepi-r1-plus-lts
Signed-off-by: schwar3kat <61094841+schwar3kat@users.noreply.github.com>
---
@ -751,7 +751,7 @@ index ed197fa4..6a14eada 100644
@@ -648,6 +648,8 @@ static struct phy_driver *generic_for_phy(struct phy_device *phydev)
return &genphy_driver;
}
+#define YT_8531C_PHY_ID 0x4f51e91b
+
static struct phy_driver *get_phy_driver(struct phy_device *phydev)
@ -760,14 +760,11 @@ index ed197fa4..6a14eada 100644
@@ -646,6 +651,10 @@ static struct phy_driver *get_phy_driver(struct phy_device *phydev,
int phy_id = phydev->phy_id;
struct phy_driver *drv = NULL;
+ if(phy_id == YT_8531C_PHY_ID)
+ if (phy_id == YT_8531C_PHY_ID)
+ env_set("ethernet_phy", "yt8531c");
+ else
+ env_set("ethernet_phy", "rtl8211f");
list_for_each(entry, &phy_drivers) {
drv = list_entry(entry, struct phy_driver, list);
if ((drv->uid & drv->mask) == (phy_id & drv->mask))