From patchwork Tue Feb 6 14:25:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 869823 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="LmJgbiPx"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zbS8L14DPz9s82 for ; Wed, 7 Feb 2018 01:51:30 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D2242C21DA3; Tue, 6 Feb 2018 14:41:09 +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_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 D167DC21E3A; Tue, 6 Feb 2018 14:39:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3AC59C21D9F; Tue, 6 Feb 2018 14:32:19 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id AD8E7C21E73 for ; Tue, 6 Feb 2018 14:32:15 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id ay8so1339321plb.4 for ; Tue, 06 Feb 2018 06:32:15 -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=DUrhrMMzdrkIZv430UUBF9WtpBE5KAYrgAku5krWvPI=; b=LmJgbiPxJH6IqFxzwmachGEG76a1V+i06UXhrpObC8HA0RQCFJRV1xKJ6m3ENhJn6w bhXkWiQE+2UJlv9NLE6aXMjszDbgXgURbaweux+K2e9KtEI6OLhOCewhOjli1P+JLkQk WMe9TMBWaW90xzKgZXGaBv6LnGoBE5f5hNnSlf/4HtYpQnHHSJBDz9QUYRHnIaK9P3dJ khouy1eCU9/+ZlrVM0Rb31Ag8fgSunyap1uWhz47F+0nQOB0DDrGAszifyDrtNAy13J4 zHePmkn6MCY9ditLMylsyBhVv563938njcnLsqDRs1cqs6uDfTxHc++wY2dF9hEWypkj BbmA== 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=DUrhrMMzdrkIZv430UUBF9WtpBE5KAYrgAku5krWvPI=; b=F7M+r5kxVw+EJrL17eO9VLhTW2XUiAtWbBT3kyVaYMvQ0jd6Ah9WdY4iTq4TIJuQkA 1n/FQWNOJJkocQPXXMmtMjLh6ZQ7qDl5wbUYKo91EfkC20piWDeI0SmFLQMbROKJZvNl Lu/PJaNHju43KQGDXdbxwlJCBfmzjN5CT4ce+LGfBFwpzaGre2M+BsivfPBzJfosH7rW q0jcI9yh2A3fM/XCsNK/4KSqrRdjYc4cEZqFYyP++zC7RYZDWXv6XaUeMEXZnh27sAIB nflpFD+ahNJbrphjNpWVfulBUvLcw62ARRRVW3GI3DeWdMqyC/b/DTBAAj8O/OetUjur uPKA== X-Gm-Message-State: APf1xPBMT0+3dWbJK3HeExsWlvDPoS00iKza1/LYjT1RXdILenCdOKEN j5j/DeBJ4ih10CdfTXsAZZjaNFUX X-Google-Smtp-Source: AH8x224djVBDyBS+wVeRHBRGgDsOcNbKlsmzWwvoJktLXpVppchS2oQFNn8dN42mTIEoz/JMSDMUdg== X-Received: by 2002:a17:902:7510:: with SMTP id i16-v6mr2677035pll.220.1517927534041; Tue, 06 Feb 2018 06:32:14 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id h2sm17457613pgp.65.2018.02.06.06.32.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 06:32:13 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Tue, 6 Feb 2018 19:55:47 +0530 Message-Id: <1517927164-18197-18-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 17/34] phy: sun4i-usb: Add A23 USB 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" Allwinner A23 has 2 USB PHY's and 0x04 has phy ctrl offset. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 75056e2..4194a15 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -495,6 +495,14 @@ static const struct sun4i_usb_phy_cfg sun7i_a20_cfg = { .enable_pmu_unk1 = false, }; +static const struct sun4i_usb_phy_cfg sun8i_a23_cfg = { + .num_phys = 2, + .type = sun4i_a10_phy, + .disc_thresh = 3, + .phyctl_offset = REG_PHYCTL_A10, + .enable_pmu_unk1 = false, +}; + static const struct sun4i_usb_phy_cfg sun8i_a33_cfg = { .num_phys = 2, .type = sun8i_a33_phy, @@ -541,6 +549,7 @@ static const struct udevice_id sun4i_usb_phy_ids[] = { { .compatible = "allwinner,sun5i-a13-usb-phy", .data = (ulong)&sun5i_a13_cfg }, { .compatible = "allwinner,sun6i-a31-usb-phy", .data = (ulong)&sun6i_a31_cfg }, { .compatible = "allwinner,sun7i-a20-usb-phy", .data = (ulong)&sun7i_a20_cfg }, + { .compatible = "allwinner,sun8i-a23-usb-phy", .data = (ulong)&sun8i_a23_cfg }, { .compatible = "allwinner,sun8i-a33-usb-phy", .data = (ulong)&sun8i_a33_cfg }, { .compatible = "allwinner,sun8i-a83t-usb-phy", .data = (ulong)&sun8i_a83t_cfg }, { .compatible = "allwinner,sun8i-h3-usb-phy", .data = (ulong)&sun8i_h3_cfg },