Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp203623pxb; Wed, 20 Jan 2021 05:08:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvK1xfwqg6h0Kn/maUSG/Aq4QIkdkdKdjFx2DVBZ7dInRVSDV59aXv/ldDx8Qo93cI6TAb X-Received: by 2002:a05:6402:d05:: with SMTP id eb5mr7125895edb.143.1611148136424; Wed, 20 Jan 2021 05:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611148136; cv=none; d=google.com; s=arc-20160816; b=bXfS9X7Q/kjg55s49bu8wjV+83wfW1fjOnGUt/RdHfzdfEAh2chJOsAtWATz8TeCQs K+ho4zahOpGTrzbU7sGvexZdCpy7axA4MJ30lXwwxgx9uW3/Co52RTMoma1UMUw27Y5X FlF7O/CAI3HAkbWpkL+yZhmAYGZv+yveavAo269aLDKtpUUZs0w2GE7/zqusGyUSvE3F SsfqSLqYNHKV5osmJw2ghyy2eKOpnfFwQkycgn/0emPmzu+3hZR4Mw0jjerTlVUXNXCf 373QD74sGLePFc3W5u7+rLSbvZlJWb0aDMtPjVRNNyDMpJP6tn6XVDgvrF9GEiatGJae sliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8fTeEDn+y7NILsscHGXPb49g5cH8WNZxA0IHTv35gls=; b=KztYsNLmZsx9l5VVqPBy/D5lxLCtcbwSDKcUbk65s9BtprqrIchvTvsZhmZhoxc/ni i6gQMzeeBPrzct7mnRcL93zv4JwLKCL29WWVN3mmGBTOCh+zMOzEHx1YJixvTjl04mGe RSr/t7ejwSxG7ZpPRx9Qgq2Cho2s3xBEk8E5VauFSq949ht5IJzh+giI6r446Y02Nweg l264OPU+ViqeBY7LpGFBb/W9ksMgrCeLz8TRfyNR6dXPERVxvdb69nIt65Fx7PlaWPF6 h/DASubV7Nojsyx9pAq2cILICYcfxsOut//vYa4IyJHPTNK3UXNbqvLgQ2aMljLbQSxd L/AQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si815931edc.56.2021.01.20.05.08.27; Wed, 20 Jan 2021 05:08:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389625AbhATNGB (ORCPT + 99 others); Wed, 20 Jan 2021 08:06:01 -0500 Received: from aposti.net ([89.234.176.197]:39592 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388494AbhATMRk (ORCPT ); Wed, 20 Jan 2021 07:17:40 -0500 From: Paul Cercueil To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring Cc: od@zcrc.me, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 2/2] phy: ingenic: Add support for the JZ4760 Date: Wed, 20 Jan 2021 11:59:45 +0000 Message-Id: <20210120115945.29046-2-paul@crapouillou.net> In-Reply-To: <20210120115945.29046-1-paul@crapouillou.net> References: <20210120115945.29046-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the JZ4760 SoC, which behave exactly as the (newer) JZ4770 SoC. Signed-off-by: Paul Cercueil --- drivers/phy/ingenic/phy-ingenic-usb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }, -- 2.29.2