Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1132191/?format=api
{ "id": 1132191, "url": "http://patchwork.ozlabs.org/api/patches/1132191/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-11-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": "<20190715182856.21688-11-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2019-07-15T18:28:48", "name": "[U-Boot,v3,10/18] ram: rockchip: Add debug sdram driver", "commit_ref": "07112672a57adcbdc8272283f631c1648245c1f8", "pull_url": null, "state": "accepted", "archived": false, "hash": "1dc99ac80c949b6ec9acaf92f282c4a603fa87e5", "submitter": { "id": 69820, "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api", "name": "Jagan Teki", "email": "jagan@amarulasolutions.com" }, "delegate": { "id": 93623, "url": "http://patchwork.ozlabs.org/api/users/93623/?format=api", "username": "kevery", "first_name": "Kever", "last_name": "Yang", "email": "ykai007@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-11-jagan@amarulasolutions.com/mbox/", "series": [ { "id": 119574, "url": "http://patchwork.ozlabs.org/api/series/119574/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119574", "date": "2019-07-15T18:28:43", "name": "ram: rk3399: Add rank detection", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/119574/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1132191/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1132191/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=\"J2nMrr7G\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nXKh5zCTz9s4Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:36:08 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 7C452C21F2F; Mon, 15 Jul 2019 18:32:01 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 11AC3C21FC1;\n\tMon, 15 Jul 2019 18:29:54 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid C6BFEC21EEF; Mon, 15 Jul 2019 18:29:45 +0000 (UTC)", "from mail-pf1-f193.google.com (mail-pf1-f193.google.com\n\t[209.85.210.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 185E8C21F93\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:29:45 +0000 (UTC)", "by mail-pf1-f193.google.com with SMTP id f17so3826417pfn.6\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:29:45 -0700 (PDT)", "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\ty133sm20250075pfb.28.2019.07.15.11.29.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:29:43 -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=vaHztGW3hwCuSUcDRVrDyfWmbZxTrQqSnJP6VTuJxYA=;\n\tb=J2nMrr7GPAsyzK8AyAfZbPMH1gv499SWrM+aFfASRgCHmpFlAqvxqQXuhh0K6dQh6P\n\t/mNi2hiT6E7kpxxhq+c+7+t8fRkPd4papFRi+ganNlOWDPHyu2HBW+7hXxPTE+f5opOw\n\tIbcUx8KVyY1wFbLIWSag90Vk05euyKu6m4cNk=", "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=vaHztGW3hwCuSUcDRVrDyfWmbZxTrQqSnJP6VTuJxYA=;\n\tb=J79iJDiC2+nDg6ZugAgux09RocqC6ljGJImp91t/YRf4ScKYCZpZDBmFNCbG78RNtV\n\t128CwrrygAVEpgsST4M7btCH0S0rqDBG8eKhTnDc+eKouC0eq/gxC7epqSuVFh3f9X4R\n\tdMyKJpPTP9OmZpS5pJ7k/4GkNStDzd2+1HCH9wfsPDIkeDjICCmyyRsdqRivSt3vtLwW\n\tgaeE1oArXF+UnN0QmAX83O5EodhGPsYDrP3iCZqVNG31mGSCI66EPZG+bt5Efu2hpwcd\n\tbQruNTmm5nsXF9mEW2uenTcuHbWx5WGZQd3rKQ+6zMMd8mLQknMNaiaUTauKbJ4WUe4A\n\tQDMQ==", "X-Gm-Message-State": "APjAAAVRpGybNkzIkYedmS6p3uyy52A8PYpNHcVqmnB+SztmqcGFE0QG\n\tnwkTx+ooUax4Lrsu/BDfjCotJg==", "X-Google-Smtp-Source": "APXvYqyqOQtF9slL0TfWtKFa1A776o+9glHpp5VN/xk/tbrQY5tmfyPrwJcVg8WCaHjah2SVXtNK2A==", "X-Received": "by 2002:a17:90a:7148:: with SMTP id\n\tg8mr31135109pjs.51.1563215383427; \n\tMon, 15 Jul 2019 11:29:43 -0700 (PDT)", "From": "Jagan Teki <jagan@amarulasolutions.com>", "To": "Simon Glass <sjg@chromium.org>,\n\tPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>,\n\tKever Yang <kever.yang@rock-chips.com>,\n\tYouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de", "Date": "Mon, 15 Jul 2019 23:58:48 +0530", "Message-Id": "<20190715182856.21688-11-jagan@amarulasolutions.com>", "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3", "In-Reply-To": "<20190715182856.21688-1-jagan@amarulasolutions.com>", "References": "<20190715182856.21688-1-jagan@amarulasolutions.com>", "MIME-Version": "1.0", "Cc": "linux-rockchip@lists.infradead.org, gajjar04akash@gmail.com,\n\tlinux-amarula@amarulasolutions.com,\n\tManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>", "Subject": "[U-Boot] [PATCH v3 10/18] ram: rockchip: Add debug sdram 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 sdram driver to handle debug across rockchip SoCs.\n\nThis would help to improve code debugging feature for\nsdram drivers in rockchip family, whoever wants to\ndebug the driver should call these core debug code on\ntheir respective platform sdram drivers.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nSigned-off-by: YouMin Chen <cym@rock-chips.com>\n---\n .../include/asm/arch-rockchip/sdram_common.h | 9 +++++\n drivers/ram/rockchip/Kconfig | 9 +++++\n drivers/ram/rockchip/Makefile | 1 +\n drivers/ram/rockchip/sdram_debug.c | 34 +++++++++++++++++++\n 4 files changed, 53 insertions(+)\n create mode 100644 drivers/ram/rockchip/sdram_debug.c", "diff": "diff --git a/arch/arm/include/asm/arch-rockchip/sdram_common.h b/arch/arm/include/asm/arch-rockchip/sdram_common.h\nindex 7ac25af327..171b233f95 100644\n--- a/arch/arm/include/asm/arch-rockchip/sdram_common.h\n+++ b/arch/arm/include/asm/arch-rockchip/sdram_common.h\n@@ -92,4 +92,13 @@ size_t rockchip_sdram_size(phys_addr_t reg);\n \n /* Called by U-Boot board_init_r for Rockchip SoCs */\n int dram_init(void);\n+\n+#if !defined(CONFIG_RAM_ROCKCHIP_DEBUG)\n+inline void sdram_print_dram_type(unsigned char dramtype)\n+{\n+}\n+#else\n+void sdram_print_dram_type(unsigned char dramtype);\n+#endif /* CONFIG_RAM_ROCKCHIP_DEBUG */\n+\n #endif\ndiff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig\nindex 995cb487b8..151ffb684d 100644\n--- a/drivers/ram/rockchip/Kconfig\n+++ b/drivers/ram/rockchip/Kconfig\n@@ -7,6 +7,15 @@ config RAM_ROCKCHIP\n \n if RAM_ROCKCHIP\n \n+config RAM_ROCKCHIP_DEBUG\n+\tbool \"Rockchip ram drivers debugging\"\n+\thelp\n+\t This enables debugging ram driver API's for the platforms\n+\t based on Rockchip SoCs.\n+\n+\t This is an option for developers to understand the ram drivers\n+\t initialization, configurations and etc.\n+\n config RAM_RK3399\n \tbool \"Ram driver for Rockchip RK3399\"\n \tdefault ROCKCHIP_RK3399\ndiff --git a/drivers/ram/rockchip/Makefile b/drivers/ram/rockchip/Makefile\nindex 07d4b62a9d..feb1f82d00 100644\n--- a/drivers/ram/rockchip/Makefile\n+++ b/drivers/ram/rockchip/Makefile\n@@ -3,6 +3,7 @@\n # Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH\n #\n \n+obj-$(CONFIG_RAM_ROCKCHIP_DEBUG) += sdram_debug.o\n obj-$(CONFIG_ROCKCHIP_RK3368) = dmc-rk3368.o\n obj-$(CONFIG_ROCKCHIP_RK3128) = sdram_rk3128.o\n obj-$(CONFIG_ROCKCHIP_RK3188) = sdram_rk3188.o\ndiff --git a/drivers/ram/rockchip/sdram_debug.c b/drivers/ram/rockchip/sdram_debug.c\nnew file mode 100644\nindex 0000000000..c13e140fa5\n--- /dev/null\n+++ b/drivers/ram/rockchip/sdram_debug.c\n@@ -0,0 +1,34 @@\n+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)\n+/*\n+ * (C) Copyright 2019 Rockchip Electronics Co., Ltd\n+ * (C) Copyright 2019 Amarula Solutions.\n+ * Author: Jagan Teki <jagan@amarulasolutions.com>\n+ */\n+\n+#include <common.h>\n+#include <debug_uart.h>\n+#include <asm/arch-rockchip/sdram_common.h>\n+\n+void sdram_print_dram_type(unsigned char dramtype)\n+{\n+\tswitch (dramtype) {\n+\tcase DDR3:\n+\t\tprintascii(\"DDR3\");\n+\t\tbreak;\n+\tcase DDR4:\n+\t\tprintascii(\"DDR4\");\n+\t\tbreak;\n+\tcase LPDDR2:\n+\t\tprintascii(\"LPDDR2\");\n+\t\tbreak;\n+\tcase LPDDR3:\n+\t\tprintascii(\"LPDDR3\");\n+\t\tbreak;\n+\tcase LPDDR4:\n+\t\tprintascii(\"LPDDR4\");\n+\t\tbreak;\n+\tdefault:\n+\t\tprintascii(\"Unknown Device\");\n+\t\tbreak;\n+\t}\n+}\n", "prefixes": [ "U-Boot", "v3", "10/18" ] }