mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
63 lines
1.7 KiB
Diff
63 lines
1.7 KiB
Diff
From 8f79cc0dc08fe79eec426dbf15d48ff71e848749 Mon Sep 17 00:00:00 2001
|
|
From: Frank Wang <frank.wang@rock-chips.com>
|
|
Date: Wed, 5 Feb 2025 01:00:33 +0000
|
|
Subject: [PATCH 43/84] phy: rockchip-inno-usb2: Add support for RK3576
|
|
|
|
Add support for the USB2.0 PHYs used in the RK3576 SoC.
|
|
|
|
Config values are taken from vendor U-Boot linux-6.1-stan-rkr5 tag.
|
|
|
|
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
|
|
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
|
|
---
|
|
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 26 +++++++++++++++++++
|
|
1 file changed, 26 insertions(+)
|
|
|
|
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
index a3222138b9d..4ea6600ce7f 100644
|
|
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
|
|
@@ -465,6 +465,28 @@ static const struct rockchip_usb2phy_cfg rk3568_phy_cfgs[] = {
|
|
{ /* sentinel */ }
|
|
};
|
|
|
|
+static const struct rockchip_usb2phy_cfg rk3576_phy_cfgs[] = {
|
|
+ {
|
|
+ .reg = 0x0000,
|
|
+ .clkout_ctl = { 0x0008, 0, 0, 1, 0 },
|
|
+ .port_cfgs = {
|
|
+ [USB2PHY_PORT_OTG] = {
|
|
+ .phy_sus = { 0x0000, 1, 0, 2, 1 },
|
|
+ }
|
|
+ },
|
|
+ },
|
|
+ {
|
|
+ .reg = 0x2000,
|
|
+ .clkout_ctl = { 0x2008, 0, 0, 1, 0 },
|
|
+ .port_cfgs = {
|
|
+ [USB2PHY_PORT_OTG] = {
|
|
+ .phy_sus = { 0x2000, 1, 0, 2, 1 },
|
|
+ }
|
|
+ },
|
|
+ },
|
|
+ { /* sentinel */ }
|
|
+};
|
|
+
|
|
static const struct rockchip_usb2phy_cfg rk3588_phy_cfgs[] = {
|
|
{
|
|
.reg = 0x0000,
|
|
@@ -526,6 +548,10 @@ static const struct udevice_id rockchip_usb2phy_ids[] = {
|
|
.compatible = "rockchip,rk3568-usb2phy",
|
|
.data = (ulong)&rk3568_phy_cfgs,
|
|
},
|
|
+ {
|
|
+ .compatible = "rockchip,rk3576-usb2phy",
|
|
+ .data = (ulong)&rk3576_phy_cfgs,
|
|
+ },
|
|
{
|
|
.compatible = "rockchip,rk3588-usb2phy",
|
|
.data = (ulong)&rk3588_phy_cfgs,
|
|
--
|
|
2.34.1
|
|
|