Message ID | 1537532792-20376-4-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-usb-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E28EB6CB for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 21 Sep 2018 12:28:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D45222C2BD for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 21 Sep 2018 12:28:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1BFC2D54C; Fri, 21 Sep 2018 12:28:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F10E2C2BD for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 21 Sep 2018 12:28:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389870AbeIUSRL (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Fri, 21 Sep 2018 14:17:11 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:42364 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388909AbeIUSRL (ORCPT <rfc822;linux-usb@vger.kernel.org>); Fri, 21 Sep 2018 14:17:11 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 21 Sep 2018 21:28:26 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 0144F7EA96; Fri, 21 Sep 2018 21:28:27 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.54,284,1534777200"; d="scan'208";a="291576164" Received: from mail-ty1jpn01lp0184.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.184]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 21 Sep 2018 21:28:26 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qBB9hXNgj4swPVOus1QOBnGoNzqRNrDZugtpI8Jih78=; b=pBVxfEoTar0Z3Avcg/xm9zBPwWgi1Xq3kE3rQK9j1UnwwhFEJdWreFab8aqfg2Oi513XVVpyG1kDVbEHYy4b8Kgs+s0z8n5DseIfJy2AXmOrGAScAZsrB72hMg3mgxH9xoiqH9xpU4YnNhjLILBTTF4wPaC6wviICHMhNEupnn8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Fri, 21 Sep 2018 12:28:24 +0000 From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> To: balbi@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Subject: [PATCH 3/5] usb: renesas_usbhs: rcar3: Use OTG mode for R-Car D3 Date: Fri, 21 Sep 2018 21:26:30 +0900 Message-Id: <1537532792-20376-4-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537532792-20376-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1537532792-20376-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OSAPR01CA0129.jpnprd01.prod.outlook.com (2603:1096:604:f::21) To OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a17cfc0-1c96-4c4e-c159-08d61fbdb9b8 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(8559020)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:OSBPR01MB2293; X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;3:0wuFa5dVGPslrtlTOBI01fw+Z+iQFwKVeM0H7tK7mVYZH9eacpLJ7KlTPTX+oqD3bB0GosgS05BysCCj8k67TR3D5u2Sk03J3oDkBrIpfpuxnYEErfQ7SjjRQsGmdVvF2S1R8DZcRg83YWHWjroUEs5lhvjYZI52yNvk2sS2Y/roPHJtvqzuME3zDvcA3nMGCaD+Ubyw2Glu6ZgFEqpP1+aE3p+eimx4oEcr2IOVLIfbDy6TH8TVR3rLwPysxZlI;25:WY6Apri+F5jLaAq6QX7KrjOgvLKK0M/cIAHWlVNSUfR3ADQtzs+ViZBesa6E7V9vpuDyGvStdtVvQ52XEzcHrNnpDyVBm9hlJTt3yzQne+7DBEP47BecrQz75XyXJiUussLFOlk1OXYB0ArxuqwFVPqTpkmoWSC3yavO0puH0tUp2ePDkAHsbyb9ETlpoI5z1ODr/4FHAGMpNViQhSBew+jRijtZ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vn1Jn/uwnk1eO5B6U6EpPXcOG2oWK9olbNGrhDWiRYcBkQhKNczfHfSfQt+5F8QS1M/bpJaLQSHz+hhNRxVI9fjsjR3MLI3fkxtzKfl4YTQRFFnxrUcJBUIi06XwEBioUh5icUe0kO4Fnh8idyzA== X-Microsoft-Antispam-PRVS: <OSBPR01MB22939630299EE87F31AF199DB8120@OSBPR01MB2293.jpnprd01.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231355)(944501410)(52105095)(93006095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123560045)(20161123564045)(201708071742011)(7699051);SRVR:OSBPR01MB2293;BCL:0;PCL:0;RULEID:;SRVR:OSBPR01MB2293; X-Forefront-PRVS: 0802ADD973 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(346002)(366004)(376002)(136003)(396003)(39860400002)(199004)(189003)(6506007)(6486002)(107886003)(956004)(2616005)(476003)(42882007)(97736004)(386003)(48376002)(47776003)(25786009)(4326008)(446003)(11346002)(26005)(7736002)(305945005)(14444005)(8936002)(8676002)(78352004)(69590400006)(50226002)(81166006)(81156014)(575784001)(68736007)(51416003)(52116002)(76176011)(6666003)(36756003)(3846002)(2906002)(6116002)(53936002)(316002)(16586007)(16526019)(486006)(498600001)(66066001)(6512007)(5660300001)(105586002)(106356001)(50466002)(3720700003);DIR:OUT;SFP:1102;SCL:1;SRVR:OSBPR01MB2293;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:0; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;23:jX6NYrTspZI2A1cgvTFfenwEqPS8Ok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MBpnMlJVPTACWw==;5:6P5fARYgGnGjzmUhrqW8UJSwPFg1ZEIqJXi8K6LQnqEMfFdnarG37JYlWCEFrnbpQjZhPGxHwjI7UT/WJ+KutfKsKeN3AMFOes0tsMu95CHy+cbPzapUo7BvQdz13MxY6D1KHhMsLQpnlCi/aFgyUl1KBMJ8Bd3W24A8BidbtEU=;7:env60LTk3Va4mm3X8i8xPXSGGQjK2ry/r++/BAAG5LHxd9UzenuBbWvYMekNL4w3jMdbalIlSffPvt8Ja5zggDErpgAvqH+DuyTQafQLsq42KUa5Nb7rpsLScMzuSpeZ/907njtbirIV/zPK4QQJ7u9cCpc5XrsY7w2fLezirWJ4cvTbuD2dmFADx5vCKS+pfdj2Mjx6mU4K7RMX7LMPhpChZtY5firU0EWCi8WRAHFajOwQe4i3Ep8gezwN8uNm SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;20:ia2qhTx1rltJDQbknmzYLpev/fZ1joY2yyWOi3knHKRHbGxlpHbaCg5g5RATk/b5m2oUzbQEl+afWe91jGshUWxMYaPoBkI84whiaAlAY1uAPs7DDUFJ+KH9odrJ8kO32QfBL5P/KLar4/ugfdrkljkK3/RTOFKg02GEXt7dQjI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2018 12:28:24.3255 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a17cfc0-1c96-4c4e-c159-08d61fbdb9b8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB2293 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
usb: renesas_usbhs: use otg mode and add support for R-Car E3
|
expand
|
diff --git a/drivers/usb/renesas_usbhs/rcar3.c b/drivers/usb/renesas_usbhs/rcar3.c index 50e5fb5..aa38204 100644 --- a/drivers/usb/renesas_usbhs/rcar3.c +++ b/drivers/usb/renesas_usbhs/rcar3.c @@ -77,7 +77,8 @@ static int usbhs_rcar3_power_and_pll_ctrl(struct platform_device *pdev, if (enable) { usbhs_write32(priv, UGCTRL, 0); /* release PLLRESET */ - usbhs_rcar3_set_ugctrl2(priv, UGCTRL2_USB0SEL_HSUSB); + usbhs_rcar3_set_ugctrl2(priv, + UGCTRL2_USB0SEL_OTG | UGCTRL2_VBUSSEL); usbhs_bset(priv, LPSTS, LPSTS_SUSPM, LPSTS_SUSPM); do {
Since R-Car D3 can use OTG mode, this patch changes the UGCTRL2 value to UGCTRL2_USB0SEL_OTG and UGCTRL2_VBUSSEL like other R-Car Gen3 SoCs. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/usb/renesas_usbhs/rcar3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)