Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/955959/?format=api
{ "id": 955959, "url": "http://patchwork.ozlabs.org/api/patches/955959/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-12-jagan@amarulasolutions.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20180810060711.6547-12-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2018-08-10T06:06:29", "name": "[U-Boot,v2,11/53] clk: sunxi: Add Allwinner A83T CLK driver", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "82fdbffc6a81d152900ed3e95fb4fb0314c27033", "submitter": { "id": 69820, "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api", "name": "Jagan Teki", "email": "jagan@amarulasolutions.com" }, "delegate": { "id": 17739, "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api", "username": "jagan", "first_name": "Jagannadha Sutradharudu", "last_name": "Teki", "email": "jagannadh.teki@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-12-jagan@amarulasolutions.com/mbox/", "series": [ { "id": 60190, "url": "http://patchwork.ozlabs.org/api/series/60190/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=60190", "date": "2018-08-10T06:06:18", "name": "clk: Add Allwinner CLK, RESET support", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/60190/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/955959/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/955959/checks/", "tags": {}, "related": [], "headers": { "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;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=amarulasolutions.com", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=amarulasolutions.com\n\theader.i=@amarulasolutions.com header.b=\"PYjtTKKX\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41mw1d1fT5z9s7Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 10 Aug 2018 16:19:00 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid BB8D5C21F2A; Fri, 10 Aug 2018 06:11:40 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9F71BC21DED;\n\tFri, 10 Aug 2018 06:08:46 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 63EF6C21DD9; Fri, 10 Aug 2018 06:08:24 +0000 (UTC)", "from mail-pl0-f66.google.com (mail-pl0-f66.google.com\n\t[209.85.160.66])\n\tby lists.denx.de (Postfix) with ESMTPS id 46BEAC21E0B\n\tfor <u-boot@lists.denx.de>; Fri, 10 Aug 2018 06:08:20 +0000 (UTC)", "by mail-pl0-f66.google.com with SMTP id f6-v6so3602777plo.1\n\tfor <u-boot@lists.denx.de>; Thu, 09 Aug 2018 23:08:20 -0700 (PDT)", "from localhost.localdomain ([183.82.228.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tr23-v6sm16880975pfj.5.2018.08.09.23.08.15\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 09 Aug 2018 23:08:18 -0700 (PDT)" ], "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,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amarulasolutions.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=8wS59+F4GARO5lNB6+UbAJ9dYW85UkuLHn3WTm+uBDU=;\n\tb=PYjtTKKX0wsiMNr0FCWHbj6KxsPU50/Zax1osDMVxXN4erNKbnNCSEIgu4YCPQXowN\n\tllVd8sb8vHwoKvYrA2HOnjxcNCDIiCVkgq10XLpmko53qyKYUnpyLrT8f0Jx6Zna95kl\n\toirmkoLcxc0FIoiuCF7ZiSneJllORoZaVcijQ=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=8wS59+F4GARO5lNB6+UbAJ9dYW85UkuLHn3WTm+uBDU=;\n\tb=UaKThUJzmuwLbEBN3zZqK1r2IB28LEm7JhmRPKOGbL4aKxg1MzygUOXczhRGG4v3jq\n\trjNnpHKs4vs9A46PLzVvHOW0CX+A4BGir2ilXxyYZCThnSDYo8ustNW3TRF9g9PBMIgH\n\tzABZlEx9f3vkX4CzxGhdn6lmz8PfLjEMvY4ToXJqVZQYkoMOIMvury7Z9QFuXfuNpzb0\n\t57T4oO6x1evDjWAQXcgzRvpQGMzP4T2IIs/k1Pew62e8XdnctgWJV6aqH+MDBOA/HqpF\n\t1egHgsYnUnnxkjigZ9wwLPRP98AfK3UsAT1QIplEn4DpF1GRaRHON+DIZVkl10gHJIGE\n\tFJyA==", "X-Gm-Message-State": "AOUpUlF3A+ix0QCaCKsMxnAcacZNZkdBozg27FLo0GxG9RCMJt2hR147\n\tEtquXb87DL8ZHcUa6yTDhLcZxw==", "X-Google-Smtp-Source": "AA+uWPwg9b2fxuLXEx22/leGwEf6Qd6kjKLlSFtE4sUqZdRs/6XjCxMonSdjhFxOqAcCyuwpkRZGJA==", "X-Received": "by 2002:a17:902:4a0c:: with SMTP id\n\tw12-v6mr4859905pld.289.1533881298797; \n\tThu, 09 Aug 2018 23:08:18 -0700 (PDT)", "From": "Jagan Teki <jagan@amarulasolutions.com>", "To": "Maxime Ripard <maxime.ripard@bootlin.com>,\n\tAndre Przywara <andre.przywara@arm.com>, Chen-Yu Tsai <wens@csie.org>,\n\tIcenowy Zheng <icenowy@aosc.io>", "Date": "Fri, 10 Aug 2018 11:36:29 +0530", "Message-Id": "<20180810060711.6547-12-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": "Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH v2 11/53] clk: sunxi: Add Allwinner A83T CLK driver", "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>,\n\t<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>,\n\t<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>" }, "content": "Add initial clock driver for Allwinner A83T.\n\n- Implement USB bus and USB clocks via ccu_clk_map descriptor\n for A83T, so it can accessed in common clk enable and disable\n functions from clk_sunxi.c\n- Implement USB bus and USB resets via ccu_reset_map descriptor\n for A83T, so it can accessed in common reset deassert and assert\n functions from reset-sunxi.c\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n drivers/clk/sunxi/Kconfig | 7 ++++\n drivers/clk/sunxi/Makefile | 1 +\n drivers/clk/sunxi/clk_a83t.c | 81 ++++++++++++++++++++++++++++++++++++\n 3 files changed, 89 insertions(+)\n create mode 100644 drivers/clk/sunxi/clk_a83t.c", "diff": "diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig\nindex 38ff99d345..90af70d171 100644\n--- a/drivers/clk/sunxi/Kconfig\n+++ b/drivers/clk/sunxi/Kconfig\n@@ -37,6 +37,13 @@ config CLK_SUN8I_A23\n \t This enables common clock driver support for platforms based\n \t on Allwinner A23/A33 SoC.\n \n+config CLK_SUN8I_A83T\n+\tbool \"Clock driver for Allwinner A83T\"\n+\tdefault MACH_SUN8I_A83T\n+\thelp\n+\t This enables common clock driver support for platforms based\n+\t on Allwinner A83T SoC.\n+\n config CLK_SUN8I_H3\n \tbool \"Clock driver for Allwinner H3/H5\"\n \tdefault MACH_SUNXI_H3_H5\ndiff --git a/drivers/clk/sunxi/Makefile b/drivers/clk/sunxi/Makefile\nindex 6924897036..4a254c8671 100644\n--- a/drivers/clk/sunxi/Makefile\n+++ b/drivers/clk/sunxi/Makefile\n@@ -10,5 +10,6 @@ obj-$(CONFIG_CLK_SUN4I_A10) += clk_a10.o\n obj-$(CONFIG_CLK_SUN5I_A10S) += clk_a10s.o\n obj-$(CONFIG_CLK_SUN6I_A31) += clk_a31.o\n obj-$(CONFIG_CLK_SUN8I_A23) += clk_a23.o\n+obj-$(CONFIG_CLK_SUN8I_A83T) += clk_a83t.o\n obj-$(CONFIG_CLK_SUN8I_H3) += clk_h3.o\n obj-$(CONFIG_CLK_SUN50I_A64) += clk_a64.o\ndiff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c\nnew file mode 100644\nindex 0000000000..58d28eb6ad\n--- /dev/null\n+++ b/drivers/clk/sunxi/clk_a83t.c\n@@ -0,0 +1,81 @@\n+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)\n+/*\n+ * Copyright (C) 2018 Amarula Solutions.\n+ * Author: Jagan Teki <jagan@amarulasolutions.com>\n+ */\n+\n+#include <common.h>\n+#include <clk-uclass.h>\n+#include <dm.h>\n+#include <errno.h>\n+#include <asm/arch/ccu.h>\n+#include <dt-bindings/clock/sun8i-a83t-ccu.h>\n+#include <dt-bindings/reset/sun8i-a83t-ccu.h>\n+\n+static struct ccu_clk_map a83t_clks[] = {\n+\t[CLK_BUS_OTG]\t\t= { 0x060, BIT(24), NULL },\n+\t[CLK_BUS_EHCI0]\t\t= { 0x060, BIT(26), NULL },\n+\t[CLK_BUS_EHCI1]\t\t= { 0x060, BIT(27), NULL },\n+\t[CLK_BUS_OHCI0]\t\t= { 0x060, BIT(29), NULL },\n+\n+\t[CLK_USB_PHY0]\t\t= { 0x0cc, BIT(8), NULL },\n+\t[CLK_USB_PHY1]\t\t= { 0x0cc, BIT(9), NULL },\n+\t[CLK_USB_HSIC]\t\t= { 0x0cc, BIT(10), NULL },\n+\t[CLK_USB_HSIC_12M]\t= { 0x0cc, BIT(11), NULL },\n+\t[CLK_USB_OHCI0]\t\t= { 0x0cc, BIT(16), NULL },\n+};\n+\n+static struct ccu_reset_map a83t_resets[] = {\n+\t[RST_USB_PHY0]\t\t= { 0x0cc, BIT(0) },\n+\t[RST_USB_PHY1]\t\t= { 0x0cc, BIT(1) },\n+\t[RST_USB_HSIC]\t\t= { 0x0cc, BIT(2) },\n+\n+\t[RST_BUS_OTG]\t\t= { 0x2c0, BIT(24) },\n+\t[RST_BUS_EHCI0]\t\t= { 0x2c0, BIT(26) },\n+\t[RST_BUS_EHCI1]\t\t= { 0x2c0, BIT(27) },\n+\t[RST_BUS_OHCI0]\t\t= { 0x2c0, BIT(29) },\n+};\n+\n+static const struct ccu_desc sun8i_a83t_ccu_desc = {\n+\t.clks = a83t_clks,\n+\t.num_clks = ARRAY_SIZE(a83t_clks),\n+\n+\t.resets = a83t_resets,\n+\t.num_resets = ARRAY_SIZE(a83t_resets),\n+};\n+\n+static int a83t_clk_probe(struct udevice *dev)\n+{\n+\tstruct sunxi_clk_priv *priv = dev_get_priv(dev);\n+\n+\tpriv->base = dev_read_addr_ptr(dev);\n+\tif (!priv->base)\n+\t\treturn -ENOMEM;\n+\n+\tpriv->desc = (const struct ccu_desc *)dev_get_driver_data(dev);\n+\tif (!priv->desc)\n+\t\treturn -EINVAL;\n+\n+\treturn 0;\n+}\n+\n+static int a83t_clk_bind(struct udevice *dev)\n+{\n+\treturn sunxi_reset_bind(dev, 44);\n+}\n+\n+static const struct udevice_id a83t_clk_ids[] = {\n+\t{ .compatible = \"allwinner,sun8i-a83t-ccu\",\n+\t .data = (ulong)&sun8i_a83t_ccu_desc },\n+\t{ }\n+};\n+\n+U_BOOT_DRIVER(clk_sun8i_a83t) = {\n+\t.name\t\t= \"sun8i_a83t_ccu\",\n+\t.id\t\t= UCLASS_CLK,\n+\t.of_match\t= a83t_clk_ids,\n+\t.priv_auto_alloc_size\t= sizeof(struct sunxi_clk_priv),\n+\t.ops\t\t= &sunxi_clk_ops,\n+\t.probe\t\t= a83t_clk_probe,\n+\t.bind\t\t= a83t_clk_bind,\n+};\n", "prefixes": [ "U-Boot", "v2", "11/53" ] }