From patchwork Tue Feb 6 14:25:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 869819 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fH8DZo8/"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zbS465MwQz9s82 for ; Wed, 7 Feb 2018 01:47:50 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6ADAFC21E39; Tue, 6 Feb 2018 14:33:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 5C20FC21D9F; Tue, 6 Feb 2018 14:32:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DB135C21E74; Tue, 6 Feb 2018 14:32:03 +0000 (UTC) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by lists.denx.de (Postfix) with ESMTPS id 026EDC21E3B for ; Tue, 6 Feb 2018 14:31:59 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id l9so669181pfi.6 for ; Tue, 06 Feb 2018 06:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Wf9u/QLaOU1PNJYR7Aa4+6iyYXiHB3ePrqgpAfterdY=; b=fH8DZo8/a44rW/tTsvwDsVdHzrwwtnCK6LOLRjM+wu8pCFahwOa8G2kCx7KYjgvy/z rt+OhP2W2u0yShUbiTceyXNe0HOtIL668IczsR+chpyBVkqWSMc+b5EkB3wJ7nsKzPgd ahRe4jGPK59zeNJKBo5H4EMFoARQwkwREZHW0brprOZ1RuMzX3pbepVZyzxVR0QqdsvV 3/aMYhBqlAsEIPyErGagVQPv7GAJAIZCbAwSwNpddvekid0IfA28USwbCSM7ZqObWmNQ c0iP1w2ZnYaJ2+syGlTX70OeC2gsoseQXn0wEFEzKAcRgwAsnwQzOEQoWcvGNJxslZZZ qFMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Wf9u/QLaOU1PNJYR7Aa4+6iyYXiHB3ePrqgpAfterdY=; b=OuymB8fx9TcniLizYCRNOibB08YKDWAoHsMD2ynCqJRK11sxhTM3t8XS50yOkl360/ 6FA4xHWuJarFR20b4DARdT3wn1eIsfyJds9zAr56MVuI7odiWDfNZ5DnGKyGzJDsASkt ST8dm/XUB67WZPjhneFsD75Ma2G7Qmn7YSqjn3OoKCiC6T3CMR6MVRAJPn/jgj0SyaER wKJBvnN2AkClDqrQhQm6R9QJVW6T25LH5V8ytfS+gnZJPzQRJtCnNE+DpAIjVyr6zgmA uxORbeJMIpR2h3+uks5jDPmQDxklVLrSxamqejM8k8cp2qFVF+p8iIq7R+XblKCbZOMp cOZg== X-Gm-Message-State: APf1xPCQcWMF04Ac3PgdFh9q41UYEeoetEvGl3JdC7bYtRCu5V1Gn6mK /zujxubmqB8mrbanhtk8269wIaU8 X-Google-Smtp-Source: AH8x224izLUBCUT9y2vR6stvo8kZIE/9q87ep91/8mv1Q0oyRlNCGhLT/3tL4M94WKN3TSsr/3p5jg== X-Received: by 10.101.101.149 with SMTP id u21mr2180993pgv.251.1517927517317; Tue, 06 Feb 2018 06:31:57 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id h2sm17457613pgp.65.2018.02.06.06.31.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 06:31:56 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Tue, 6 Feb 2018 19:55:42 +0530 Message-Id: <1517927164-18197-13-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517927164-18197-1-git-send-email-jagan@amarulasolutions.com> References: <1517927164-18197-1-git-send-email-jagan@amarulasolutions.com> Cc: Marek Vasut , Maxime Ripard Subject: [U-Boot] [PATCH v4 12/34] phy: sun4i-usb: Add V3S PHY config X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" V3S has 1 USB PHY, rest are similar to A64. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 993f036..de0a59a 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -57,6 +57,7 @@ enum sun4i_usb_phy_type { sun8i_h3_phy, + sun8i_v3s_phy, sun50i_a64_phy, }; @@ -424,6 +425,15 @@ static const struct sun4i_usb_phy_cfg sun8i_h3_cfg = { .phy0_dual_route = true, }; +static const struct sun4i_usb_phy_cfg sun8i_v3s_cfg = { + .num_phys = 1, + .type = sun8i_v3s_phy, + .disc_thresh = 3, + .phyctl_offset = REG_PHYCTL_A33, + .enable_pmu_unk1 = true, + .phy0_dual_route = true, +}; + static const struct sun4i_usb_phy_cfg sun50i_a64_cfg = { .num_phys = 2, .type = sun50i_a64_phy, @@ -435,6 +445,7 @@ static const struct sun4i_usb_phy_cfg sun50i_a64_cfg = { static const struct udevice_id sun4i_usb_phy_ids[] = { { .compatible = "allwinner,sun8i-h3-usb-phy", .data = (ulong)&sun8i_h3_cfg }, + { .compatible = "allwinner,sun8i-v3s-usb-phy", .data = (ulong)&sun8i_v3s_cfg }, { .compatible = "allwinner,sun50i-a64-usb-phy", .data = (ulong)&sun50i_a64_cfg}, { } };