From patchwork Mon May 7 07:33:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 909580 X-Patchwork-Delegate: jagannadh.teki@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; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="oI7xpsGH"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40fZVk0nHQz9ryk for ; Mon, 7 May 2018 17:48:30 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B8EAEC2205F; Mon, 7 May 2018 07:43:30 +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.6 required=5.0 tests=RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 009C4C22092; Mon, 7 May 2018 07:40:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 975A6C2208F; Mon, 7 May 2018 07:35:01 +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 6BDB3C2208D for ; Mon, 7 May 2018 07:34:57 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id f189so22161658pfa.7 for ; Mon, 07 May 2018 00:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ClzO6zpDINbbjQi4HQ5duZGf74L/Mx1JqPBrmXaj+Zk=; b=oI7xpsGHSygs7KeB7lSDQbf3YxODDRG7+nANSYUfMaE5neB2pqGIKE4ini0ElOXDrp A1Vb1/EEIQaufMAenIi9+PGKUbrO1wJIvwjq9hoAUE1bOA2appRIlmWhkDNUGKMu5q42 iHB8cWT5TwUiZsar6tvNG6xHa0sJ2wyOyDXvY= 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=ClzO6zpDINbbjQi4HQ5duZGf74L/Mx1JqPBrmXaj+Zk=; b=Rg0GYvaoRGr7gN1LknOlSW6Dy2OFAdSesfdRmF6VODZNnrJnOZf0Vso+1BhkCNbZ7V gB+B4i7l6H8VyTaU529v3Qr0R/hZat609yaV1N5sRSIN+MZqSycZpsiep1KUpQLfnmSD 2ag/ppGarMcWIO0s+p0NEQh4YUHNFACextjmeanu62/wu+2Yrak2ByEdaLlp+2jGoS1x q/mDf6wdfFtkEbnQnP6H7WYqRFM61+o5tTcDgSFOAHG6cpk4OL/3CY/nUVph/eeM71Ot Onl6Drz5T/yHDly4jyYrMkMc960PuKgbaICPhXqNspt/AmCUFR9yztYH4AmuBAI3k7H+ XOdw== X-Gm-Message-State: ALQs6tBaAMSfC6uHrXkU/CBAhjpt0qnv4/hcgr4rW7QJGy59+eSZouD7 EwLdp8MW61PIQgrEGKzeHjwhDdkvwk0= X-Google-Smtp-Source: AB8JxZq3NV1XAbBSjJ1v+TxEolAmNchcdrEskJ0cOgnI2vyDFwgFhk6EdLGvnEsscWF1op4yKUjpHg== X-Received: by 2002:a17:902:9890:: with SMTP id s16-v6mr37190001plp.132.1525678495897; Mon, 07 May 2018 00:34:55 -0700 (PDT) Received: from localhost.localdomain ([183.82.228.172]) by smtp.gmail.com with ESMTPSA id 76sm59400891pfm.178.2018.05.07.00.34.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 May 2018 00:34:55 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Mon, 7 May 2018 13:03:34 +0530 Message-Id: <20180507073351.30582-19-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180507073351.30582-1-jagan@amarulasolutions.com> References: <20180507073351.30582-1-jagan@amarulasolutions.com> Cc: Maxime Ripard , Marek Vasut , linux-sunxi@googlegroups.com Subject: [U-Boot] [PATCH v7 18/35] 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 75056e250c..4194a15007 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 },