Message ID | 20180810060711.6547-52-jagan@amarulasolutions.com |
---|---|
State | Superseded |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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="GGZqig5B"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41mwW627pmz9s7Q for <incoming@patchwork.ozlabs.org>; Fri, 10 Aug 2018 16:41:06 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E8A24C21E1B; Fri, 10 Aug 2018 06:27:57 +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=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 59E84C21F3A; Fri, 10 Aug 2018 06:17:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1ABEDC21F35; Fri, 10 Aug 2018 06:11:04 +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 7E029C21E47 for <u-boot@lists.denx.de>; Fri, 10 Aug 2018 06:10:57 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id x6-v6so3587608plv.10 for <u-boot@lists.denx.de>; Thu, 09 Aug 2018 23:10: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 :mime-version:content-transfer-encoding; bh=Kj+d11FaQOZhaifOiuwdwPcjbdOg7bA9MOl87kMQaxc=; b=GGZqig5BwU0rKE1IO2XGkOC74SAuh0I1JP4fdvQwhC1hy72VF45KP/O7Rmm3k9TLfu DDxs4cNJ8SI5HEm5IyEQh5MNudKsnSYY8nFEc/LQELojjWv9B6/HA933YolGwFCC6rPp U0fVQzdZk9YSXGYhDgsg0iQWhPBcQIUXbSDvU= 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:mime-version:content-transfer-encoding; bh=Kj+d11FaQOZhaifOiuwdwPcjbdOg7bA9MOl87kMQaxc=; b=odU5ZS2Is8sSJYGC5vgEHCp6MXRJR2wO4Ar6AILWPkcbNxHTSbwmKjEoblua9m/TPA WlReVNj7omQNcZbgOcVCfsVvrY58bHUWO701VO50gLEJdEkAK/O0R5IyWEpJK4GoP6Wy /i8R8J3ch/QKL7pMz4j6015MFVqXr0e1yQRTjwLM7RarljxwSMPKAeH7G9o0S5rcehLr fkvdcp6sQHeRsPCe9IeHxjnnh9tfsRNNFPfaL0MfniqnlxU4U5ztJ9kywc3PCkWf611P H9zkLMZlNZNq6JNNkU6v5pmwoTVaH/Qb9IJum8CGzUjg8VbZGz10vI75CbjI1kIu2hwM 8IYA== X-Gm-Message-State: AOUpUlGx6yornvGNScZpkTUD/eLa+lJWUGAvakznHlvQKMiwt23nvwDw AleEtdA/KnbQ/dk7tNfU6iOMvw== X-Google-Smtp-Source: AA+uWPzu3M/iaghmFjCM2fgfRoYoPhhy3PW5tOxAL2solxHy5lxijYJS1PlADKF6ZAf62PUelsbtmg== X-Received: by 2002:a17:902:8541:: with SMTP id d1-v6mr4945085plo.81.1533881456135; Thu, 09 Aug 2018 23:10:56 -0700 (PDT) Received: from localhost.localdomain ([183.82.228.250]) by smtp.gmail.com with ESMTPSA id r23-v6sm16880975pfj.5.2018.08.09.23.10.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 23:10:55 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Maxime Ripard <maxime.ripard@bootlin.com>, Andre Przywara <andre.przywara@arm.com>, Chen-Yu Tsai <wens@csie.org>, Icenowy Zheng <icenowy@aosc.io> Date: Fri, 10 Aug 2018 11:37:09 +0530 Message-Id: <20180810060711.6547-52-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20180810060711.6547-1-jagan@amarulasolutions.com> References: <20180810060711.6547-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: Joe Hershberger <joe.hershberger@ni.com>, Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 51/53] clk: sunxi: h3: Implement EPHY CLK and RESET X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
clk: Add Allwinner CLK, RESET support
|
expand
|
diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c index 88086580f4..3d5dc2cbed 100644 --- a/drivers/clk/sunxi/clk_h3.c +++ b/drivers/clk/sunxi/clk_h3.c @@ -34,6 +34,8 @@ static struct ccu_clk_map h3_clks[] = { [CLK_BUS_UART2] = { 0x06c, BIT(18), NULL }, [CLK_BUS_UART3] = { 0x06c, BIT(19), NULL }, + [CLK_BUS_EPHY] = { 0x070, BIT(0), NULL }, + [CLK_MMC0] = { 0x088, BIT(31), &mmc_clk_set_rate }, [CLK_MMC1] = { 0x08c, BIT(31), &mmc_clk_set_rate }, [CLK_MMC2] = { 0x090, BIT(31), &mmc_clk_set_rate }, @@ -73,6 +75,8 @@ static struct ccu_reset_map h3_resets[] = { [RST_BUS_OHCI2] = { 0x2c0, BIT(30) }, [RST_BUS_OHCI3] = { 0x2c0, BIT(31) }, + [RST_BUS_EPHY] = { 0x2c8, BIT(2) }, + [RST_BUS_UART0] = { 0x2d8, BIT(16) }, [RST_BUS_UART1] = { 0x2d8, BIT(17) }, [RST_BUS_UART2] = { 0x2d8, BIT(18) },
EPHY CLK and RESET is availble in Allwinner H3 EMAC via mdio-mux node of internal PHY. Add the respetive clock and reset reg and bits. Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/clk/sunxi/clk_h3.c | 4 ++++ 1 file changed, 4 insertions(+)