From patchwork Mon Apr 10 13:17:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 97155 Delivered-To: patch@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp1353905obc; Mon, 10 Apr 2017 06:23:35 -0700 (PDT) X-Received: by 10.99.117.85 with SMTP id f21mr54529767pgn.143.1491830615731; Mon, 10 Apr 2017 06:23:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si13612343pgc.52.2017.04.10.06.23.35; Mon, 10 Apr 2017 06:23:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753980AbdDJNXb (ORCPT + 24 others); Mon, 10 Apr 2017 09:23:31 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:55303 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753841AbdDJNTG (ORCPT ); Mon, 10 Apr 2017 09:19:06 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v3ADIemV020031; Mon, 10 Apr 2017 08:18:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1491830320; bh=b4DQdSAjhK/8IPSsirwulOs1q2DfFef7ZXKhMTRK7gU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kDM4QjkCKhVQG/R4bJNpaU7STLsESan2oKR2SqUG56vlWZwpqEqZ1gINGfne736YK g9QgIita3AlsTrNFapl9jzGD7rEjPAH1NoNH2tkr3ZvKFDK6epia/U8LMj+thyGBAD vI2X7SLXW03sPJiaKGxlyifmB9IjiaNZtqKJTNU4= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v3ADIZU9027244; Mon, 10 Apr 2017 08:18:35 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Mon, 10 Apr 2017 08:18:34 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v3ADIOM0032573; Mon, 10 Apr 2017 08:18:34 -0500 From: Kishon Vijay Abraham I To: CC: , Subject: [PATCH 06/32] phy: sun4i-usb: add PHYCTL offset for H3 SoC Date: Mon, 10 Apr 2017 18:47:57 +0530 Message-ID: <20170410131823.26485-7-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170410131823.26485-1-kishon@ti.com> References: <20170410131823.26485-1-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Icenowy Zheng The config structure of H3 in phy-sun4i-usb driver have the PHYCTL register offset missing. Add it. From the BSP source code, we know that the offset should be 0x10. Signed-off-by: Icenowy Zheng Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-sun4i-usb.c | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c index 62b4d25448c6..a650f283f6ff 100644 --- a/drivers/phy/phy-sun4i-usb.c +++ b/drivers/phy/phy-sun4i-usb.c @@ -821,6 +821,7 @@ static const struct sun4i_usb_phy_cfg sun8i_h3_cfg = { .num_phys = 4, .type = sun8i_h3_phy, .disc_thresh = 3, + .phyctl_offset = REG_PHYCTL_A33, .dedicated_clocks = true, .enable_pmu_unk1 = true, };