Message ID | 20181231165927.13803-25-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBJ4XVHQQKGQEXL5UUJI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (cartago.priv [10.11.12.1]) by cassiopea.amarulasolutions.com (Postfix) with ESMTPS id BA7032E002E for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 31 Dec 2018 18:02:32 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id i3sf29437100pfj.4 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 31 Dec 2018 09:02:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1546275751; cv=pass; d=google.com; s=arc-20160816; b=C0dXbrdjcfDdSWvWy8+Myb+V9mrurBbm9SaqvvCde/oFSJfwbZoEt3gy21oeueptil ErYHRLSwDmsNUW60SGUIOSblmkhxaJzWaHCyjW8NS5Fg/2wpUnMIqUbklAmhcQ1Nks5i pOA7pNKN7OB3b3juNsTWrnB644yg4+8NsvZLlAayTo6ecOu4yWE0tBia6rxWgADSum9m jTPMPSbyYN32L5yLEVxO24EH4esVUECd5u4xDyDYtG0bIZk9Rjoq1gspKIUZCkyI/ibz xMZG9SvdYDwh3carEizGjbKvmooytOB2oZWv0WU/nfDLiPm90x1uEzvu/SrU+LGIRoZV 8QdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1Td/OjcwuC35F7s7VyhY2BI9X5cipQ3m5PTOalqdoMw=; b=b/87DPvupLln5y+bZZTI3g94RG0G34JR2tr9bmlP8lDBT9Dp0N6YXcXPvfaVP9LVa0 nbSkBRId3Sw19f+VEUZm2fgOrRJiTkkHAGUQtiw6OPdyrxhxlH20SKjHcwszbNRfItqk GzuqVqzlA2ak+yHVVCT053aQAZS8G2P7PwIFY5iBPZHGSIq5fk9vKL079b3qmWElROmI 0r6hYn4/aehbjuRY20mJ2hVLe54Rmr12F7YiBd0vwpCNRRm1uxzjne0E/QpdJxDUCLan 6dSD7CTgNsQ/K3pCWTNXsVQ9/XAOipjwN4yi++LlEwEteo8T6xIRIv/THorAYHeiMe8T 55vA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZC6vIyuI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=1Td/OjcwuC35F7s7VyhY2BI9X5cipQ3m5PTOalqdoMw=; b=gTqtXmxLfrnpp2VS3pf8ohqQN6m22+A1a4K5IvMgIN4haesoNws8rGvGPRHvfZP+LL 0iznyVzzD707dSxmBWlo0Ghp+A1jiFIDwRigUNUOgN8OftJt1p04oeOP43/OtU3MhaKe LutJEjbuw8KPXLQVN3BRSuD9gvFiK016YbdR4= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=1Td/OjcwuC35F7s7VyhY2BI9X5cipQ3m5PTOalqdoMw=; b=imW5Z51MSk1UrS5uFh/waJx2vOuKJs1Lf4ohgRK1pC+etdhDA3rjCeU8DG/9eUGV2M C+fOkhOnQpHro7ORywVMOPYVGaek7XASb6yIZ1DqeNwY+4oLL1Pw8cLqZW5KfnAzwlj9 HRI6lyuBnauAvOFQG2ICGmvzWsC3uoA/maiXr/50VWr3tYIy8nY/k4qguBtCQndlHr4y JwJ50+GkHihQKWFHl+GBqUJEHovsC09cWRR42kQBnBkH8azX17MV3AtSn2n3T1O0iLET KVg6OMM2bETkb9zJQg7qhquvDLyZYPvfco7ZPOr+2cawAboSav1AzE/27hWMU1rndlyV T0lw== X-Gm-Message-State: AA+aEWZCgz302uyRutUViuS8OOF3t5VU9tVziTGLDBw7oVEyKgcyxtc6 NpK/4ZOIofum/LXthjhrmPsEi7uj X-Google-Smtp-Source: AFSGD/UbF/z/LllK73vhrqExMtRnN6Bpd6rrrWpPqvj/M/Q69xLigE3A42FUazaD3EsGxVAa1hhavQ== X-Received: by 2002:a62:db84:: with SMTP id f126mr17117756pfg.126.1546275751424; Mon, 31 Dec 2018 09:02:31 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9b81:: with SMTP id y1ls13422293plp.3.gmail; Mon, 31 Dec 2018 09:02:31 -0800 (PST) X-Received: by 2002:a17:902:aa82:: with SMTP id d2mr37923993plr.153.1546275751186; Mon, 31 Dec 2018 09:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546275751; cv=none; d=google.com; s=arc-20160816; b=ZVWaOJ34X8Wpo1FMuqFxfWoOTzrGkJPxt0EaG8XxTVtpHJCXeDQ1UrB5tPWEzIfdWi 4hyaM4+Aj6zi2lrBZ5LC8SDFUOQTVEO2a4U48QOUSIkG2unEBQTy2csPG3tgNePJiug1 OlM8ceoWX2Q93+7f5tKlAM3fWJ3iOutMyZt3+1jnoAAX/lgkSTXBo2cVZJmYea/ZSrU4 w55FoLIJS879eOo808ksoVRbS8dPxNWtS9If40JLtadSY6wbL6OFs3WC3EkRjxx6gCLP e8+KsHPjH+yZbiWwUd88JEtJQKDD83jjFBdIxwZww/pqQ3uZUznnh3N0P1lU+YrtJ76N Ch4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1Td/OjcwuC35F7s7VyhY2BI9X5cipQ3m5PTOalqdoMw=; b=UP9NlBjnBxt896BbdJAVWzZoZtHYftdo+Capm1+U3IFmUyS9yqFcOGZ64H/kJIcQLQ tVp71uTq7HyU6QkYDtfTFSW5HDep6uMENkGq33UyNE5sSCY35SJomqNtga4fchhRDnm7 EwkHqcvZGwW8n96HQcP0HM+RYW+UoGzrJP3rDHJ+80qVOk6uOJTLUHyWqyWb2GesQZx0 PZ7B0E/utrP7gZLhfBWo48qniqMOjGSx3vsDMsQCBRfQEUHL0GHPim3MX9rs+ik86ttr b+1bYiGnjQB5JrnYWc2XQ4GvTUesUKebHiUSS0xAiik9fsMQMfCV4F+5Hlm/QV44VaNP tiQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZC6vIyuI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id v3sor13229539plg.12.2018.12.31.09.02.31 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 31 Dec 2018 09:02:31 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:968d:: with SMTP id n13mr38334319plp.109.1546275750896; Mon, 31 Dec 2018 09:02:30 -0800 (PST) Received: from localhost.localdomain ([115.97.184.237]) by smtp.gmail.com with ESMTPSA id p7sm90692925pfj.72.2018.12.31.09.02.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 09:02:30 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Maxime Ripard <maxime.ripard@bootlin.com>, Andre Przywara <andre.przywara@arm.com> Cc: Chen-Yu Tsai <wens@csie.org>, Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Michael Trimarchi <michael@amarulasolutions.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v5 24/26] clk: sunxi: Implement A64 SPI clocks, resets Date: Mon, 31 Dec 2018 22:29:25 +0530 Message-Id: <20181231165927.13803-25-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181231165927.13803-1-jagan@amarulasolutions.com> References: <20181231165927.13803-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZC6vIyuI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c index 1d0cd98183..09ff871aee 100644 --- a/drivers/clk/sunxi/clk_a64.c +++ b/drivers/clk/sunxi/clk_a64.c @@ -52,6 +52,8 @@ static const struct ccu_clk_tree a64_tree[] = { }; static const struct ccu_clk_gate a64_gates[] = { + [CLK_BUS_SPI0] = GATE(0x060, BIT(20)), + [CLK_BUS_SPI1] = GATE(0x060, BIT(21)), [CLK_BUS_OTG] = GATE(0x060, BIT(23)), [CLK_BUS_EHCI0] = GATE(0x060, BIT(24)), [CLK_BUS_EHCI1] = GATE(0x060, BIT(25)), @@ -64,6 +66,9 @@ static const struct ccu_clk_gate a64_gates[] = { [CLK_BUS_UART3] = GATE(0x06c, BIT(19)), [CLK_BUS_UART4] = GATE(0x06c, BIT(20)), + [CLK_SPI0] = GATE(0x0a0, BIT(31)), + [CLK_SPI1] = GATE(0x0a4, BIT(31)), + [CLK_USB_PHY0] = GATE(0x0cc, BIT(8)), [CLK_USB_PHY1] = GATE(0x0cc, BIT(9)), [CLK_USB_HSIC] = GATE(0x0cc, BIT(10)), @@ -77,6 +82,8 @@ static const struct ccu_reset a64_resets[] = { [RST_USB_PHY1] = RESET(0x0cc, BIT(1)), [RST_USB_HSIC] = RESET(0x0cc, BIT(2)), + [RST_BUS_SPI0] = RESET(0x2c0, BIT(20)), + [RST_BUS_SPI1] = RESET(0x2c0, BIT(21)), [RST_BUS_OTG] = RESET(0x2c0, BIT(23)), [RST_BUS_EHCI0] = RESET(0x2c0, BIT(24)), [RST_BUS_EHCI1] = RESET(0x2c0, BIT(25)),
Implement SPI AHB, MOD clocks and resets for Allwinner A64. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/clk/sunxi/clk_a64.c | 7 +++++++ 1 file changed, 7 insertions(+)