diff mbox series

[2/2] phy: ingenic: Add support for the JZ4760

Message ID 20210120115945.29046-2-paul@crapouillou.net
State Superseded
Headers show
Series [1/2] dt-bindings/phy: ingenic: Add compatibles for JZ4760(B) SoCs | expand

Commit Message

Paul Cercueil Jan. 20, 2021, 11:59 a.m. UTC
Add support for the JZ4760 SoC, which behave exactly as the (newer)
JZ4770 SoC.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 drivers/phy/ingenic/phy-ingenic-usb.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c b/drivers/phy/ingenic/phy-ingenic-usb.c
index ea127b177f46..42902a0278cc 100644
--- a/drivers/phy/ingenic/phy-ingenic-usb.c
+++ b/drivers/phy/ingenic/phy-ingenic-usb.c
@@ -201,7 +201,7 @@  static const struct phy_ops ingenic_usb_phy_ops = {
 	.owner		= THIS_MODULE,
 };
 
-static void jz4770_usb_phy_init(struct phy *phy)
+static void jz4760_usb_phy_init(struct phy *phy)
 {
 	struct ingenic_usb_phy *priv = phy_get_drvdata(phy);
 	u32 reg;
@@ -288,8 +288,8 @@  static void x2000_usb_phy_init(struct phy *phy)
 	writel(reg, priv->base + REG_USBPCR_OFFSET);
 }
 
-static const struct ingenic_soc_info jz4770_soc_info = {
-	.usb_phy_init = jz4770_usb_phy_init,
+static const struct ingenic_soc_info jz4760_soc_info = {
+	.usb_phy_init = jz4760_usb_phy_init,
 };
 
 static const struct ingenic_soc_info jz4775_soc_info = {
@@ -363,7 +363,8 @@  static int ingenic_usb_phy_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id ingenic_usb_phy_of_matches[] = {
-	{ .compatible = "ingenic,jz4770-phy", .data = &jz4770_soc_info },
+	{ .compatible = "ingenic,jz4760-phy", .data = &jz4760_soc_info },
+	{ .compatible = "ingenic,jz4770-phy", .data = &jz4760_soc_info },
 	{ .compatible = "ingenic,jz4775-phy", .data = &jz4775_soc_info },
 	{ .compatible = "ingenic,jz4780-phy", .data = &jz4780_soc_info },
 	{ .compatible = "ingenic,x1000-phy", .data = &x1000_soc_info },