From patchwork Tue Feb 6 14:25:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 869813 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="Mx7BnMWg"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zbS0k402dz9s82 for ; Wed, 7 Feb 2018 01:44:54 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 2B323C21C2F; Tue, 6 Feb 2018 14:39:22 +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 61CD1C21E30; Tue, 6 Feb 2018 14:36:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EC18AC21DE5; Tue, 6 Feb 2018 14:32:09 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id D2829C21E70 for ; Tue, 6 Feb 2018 14:32:05 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id x25so1160810pge.3 for ; Tue, 06 Feb 2018 06:32:05 -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=tZmlVffdG65TXN9SckcTO/g6vw8U5ekZacinHVC6TJA=; b=Mx7BnMWgkvmvlolYSili9WvPSv5a9jQgXJ8yxkSoHvmURcNplbqSWDDoQx7wKw1Is8 e4IKrELYefT/Kv2cuJMPVcaEqP5yh6HSvce081grTinmoXs4QAlwaS7C/06HSxafmaSe Z9lP3K0Sq4GJdP8Edc4EoIirG7K8ffjMbD2pMszO3av3njRsSZMRjqJezsRyTW/w/s/r UJI26+3WcjG93wQoVBiiosMhRzxUmPrvfOzJDE+ODLUrLV+w4GulI2Gy0jExhYEvhwzy Wl/wHDYB0kQgOHkQuuBFpymWqOuJARxyMG7hMQtM+IVJP7GMUkL0+FSA9eKUhrtcrF3V PeBA== 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=tZmlVffdG65TXN9SckcTO/g6vw8U5ekZacinHVC6TJA=; b=VwKKpNIme57VTgmH6lEPeHv4hsTt3rp8xd/4NZaQEkJKK+YnhU80rRAjvrC21vqc7k kuBCOj/Q6yQX/Ii2AezpoGxZ9k9cu/jXQ8wkio7BEx68mIkFMCmxjiKYIvLMIgfbBf/E S1bV4+TxywcXDOOnbxOig+cPEybIGxxk6/fSE77i7sUtkpu7y/pIQ99LsDFxd3Z7abtD 9R4VhimgTzwkWMlwr8aSixWO07OC3OqDjFRTx9ogFHSEhS6PlM//UYWcipt+M/njtHcb X4a7ueKJfpCHFbQqzHR35cXrprXyU2VtyuQ5oC3jn1q74dhhgMXWBMXuzZ0Zlglzqfl9 mB0w== X-Gm-Message-State: APf1xPAqnR1ZPOKEmVo5WPK67vUpK1TD7lqxZbn3Q4dg1YmMbPI5Jj9i //FJZqzafMAne6PWuy2cGG3osA5z X-Google-Smtp-Source: AH8x227grEijoTOcmw7zNtBc7bS2tjv8QYQjt64iXfxips0aHiHIpK5JnhtixOH2vB1hVz/Kq8XzZg== X-Received: by 10.98.64.9 with SMTP id n9mr2672832pfa.194.1517927524151; Tue, 06 Feb 2018 06:32:04 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id h2sm17457613pgp.65.2018.02.06.06.32.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 06:32:03 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Tue, 6 Feb 2018 19:55:44 +0530 Message-Id: <1517927164-18197-15-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 14/34] phy: sun4i-usb: Add A10/A13/A20 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" Add PHY configs for Allwinner A10/A13/A20 which are SUN4I. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 01782ac..abb3d0f 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -65,6 +65,7 @@ #define MAX_PHYS 4 enum sun4i_usb_phy_type { + sun4i_a10_phy, sun8i_a83t_phy, sun8i_h3_phy, sun8i_v3s_phy, @@ -460,6 +461,30 @@ static int sun4i_usb_phy_probe(struct udevice *dev) return 0; } +static const struct sun4i_usb_phy_cfg sun4i_a10_cfg = { + .num_phys = 3, + .type = sun4i_a10_phy, + .disc_thresh = 3, + .phyctl_offset = REG_PHYCTL_A10, + .enable_pmu_unk1 = false, +}; + +static const struct sun4i_usb_phy_cfg sun5i_a13_cfg = { + .num_phys = 2, + .type = sun4i_a10_phy, + .disc_thresh = 2, + .phyctl_offset = REG_PHYCTL_A10, + .enable_pmu_unk1 = false, +}; + +static const struct sun4i_usb_phy_cfg sun7i_a20_cfg = { + .num_phys = 3, + .type = sun4i_a10_phy, + .disc_thresh = 2, + .phyctl_offset = REG_PHYCTL_A10, + .enable_pmu_unk1 = false, +}; + static const struct sun4i_usb_phy_cfg sun8i_a83t_cfg = { .num_phys = 3, .type = sun8i_a83t_phy, @@ -494,6 +519,9 @@ static const struct sun4i_usb_phy_cfg sun50i_a64_cfg = { }; static const struct udevice_id sun4i_usb_phy_ids[] = { + { .compatible = "allwinner,sun4i-a10-usb-phy", .data = (ulong)&sun4i_a10_cfg }, + { .compatible = "allwinner,sun5i-a13-usb-phy", .data = (ulong)&sun5i_a13_cfg }, + { .compatible = "allwinner,sun7i-a20-usb-phy", .data = (ulong)&sun7i_a20_cfg }, { .compatible = "allwinner,sun8i-a83t-usb-phy", .data = (ulong)&sun8i_a83t_cfg }, { .compatible = "allwinner,sun8i-h3-usb-phy", .data = (ulong)&sun8i_h3_cfg }, { .compatible = "allwinner,sun8i-v3s-usb-phy", .data = (ulong)&sun8i_v3s_cfg },