Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1132673/?format=api
{ "id": 1132673, "url": "http://patchwork.ozlabs.org/api/patches/1132673/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190716115745.12585-19-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": "<20190716115745.12585-19-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2019-07-16T11:57:06", "name": "[U-Boot,v3,18/57] ram: rk3399: Add DdrMode", "commit_ref": "a735550bb8471a170247fad5376d0086b15ddedd", "pull_url": null, "state": "accepted", "archived": false, "hash": "e315cb04ff99b4e02845491b3cdf105a657f38d6", "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/20190716115745.12585-19-jagan@amarulasolutions.com/mbox/", "series": [ { "id": 119754, "url": "http://patchwork.ozlabs.org/api/series/119754/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119754", "date": "2019-07-16T11:56:48", "name": "ram: rk3399: Add LPDDR4 support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/119754/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1132673/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1132673/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=\"mWXJia57\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nzd61phrz9sNT\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 22:06:02 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid B6666C21E56; Tue, 16 Jul 2019 12:04:06 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 2957DC21DAF;\n\tTue, 16 Jul 2019 12:01:42 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 11559C21D65; Tue, 16 Jul 2019 11:59:05 +0000 (UTC)", "from mail-pl1-f193.google.com (mail-pl1-f193.google.com\n\t[209.85.214.193])\n\tby lists.denx.de (Postfix) with ESMTPS id D800DC21D4A\n\tfor <u-boot@lists.denx.de>; Tue, 16 Jul 2019 11:59:01 +0000 (UTC)", "by mail-pl1-f193.google.com with SMTP id w24so10008389plp.2\n\tfor <u-boot@lists.denx.de>; Tue, 16 Jul 2019 04:59:01 -0700 (PDT)", "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\tz24sm36269566pfr.51.2019.07.16.04.58.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 16 Jul 2019 04:59:00 -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=OBBqxzwZk8zFsYhB5wViSonLKwBtWoREpqgXCRrl5xk=;\n\tb=mWXJia57PVItEPN4DB5ae/8ku5AEVVpvfVjkVctoY2vhLJYown6pvmf9WXFt9Zgkbb\n\t3+cTfx8v5Ab8WGDQnNLDCPD60E8GpyYQrrhvzUk6KlviAsLprxburx5I1m6BV9BzjQMI\n\tfboSxSOHZ1IfPoZvDgRJVhwE2LhoafZQpjzTY=", "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=OBBqxzwZk8zFsYhB5wViSonLKwBtWoREpqgXCRrl5xk=;\n\tb=iIagIJSJetUkIho6pQNNJ2Fq28zvim70KbbOf1spF6ycb1gJy5BJA49hM3veSrlHUo\n\t2opya4vfkfqg3YT43QjioQo2aW/k4MyhRkYiMG/Ee5chDTS2mCFTTc6JB/MXmDvVfnex\n\tZj7xEvTg6j5pRBIdB1re7vFr+mL4qNNRddQzASG2xmsBFx9CnMo1G0E7/ZBnNMujdh0e\n\t7YADoPKAmdRResIwsK6U52zg6AmK0qtNngY1NmoVvUJZTJOSeFbpJX8zAEhyzysCyk8O\n\tOFoqTWCfvGfx48wpsvU3rt990w+U0kiCso7/Q9JUKRUhIQUcXpkPo1BXRQAF9E1lCrWm\n\t+xPg==", "X-Gm-Message-State": "APjAAAXHsICxIVw1AuezOJK2LjrD2xE27u2U/ZHROx2+Pj3w/K/IkJxw\n\tt1Y9dOjIionN1l53Iq3HicTj6g==", "X-Google-Smtp-Source": "APXvYqxgcqSNLVrkoQvBMOpAmev1IkPLx/yvFhkCzDi44t9gR+Hk0XYauivC6+/a8gGbJ9Sgj8v2eQ==", "X-Received": "by 2002:a17:902:2a29:: with SMTP id\n\ti38mr35053781plb.46.1563278340462; \n\tTue, 16 Jul 2019 04:59:00 -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": "Tue, 16 Jul 2019 17:27:06 +0530", "Message-Id": "<20190716115745.12585-19-jagan@amarulasolutions.com>", "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3", "In-Reply-To": "<20190716115745.12585-1-jagan@amarulasolutions.com>", "References": "<20190716115745.12585-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 18/57] ram: rk3399: Add DdrMode", "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 DdrMode structure with associated bit fields.\n\nThese would help to reconfigure sdram capabilities during\nlpddr4 setup related configs.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n .../include/asm/arch-rockchip/sdram_rk3399.h | 17 ++++++++++++++++-\n drivers/ram/rockchip/sdram_rk3399.c | 2 +-\n 2 files changed, 17 insertions(+), 2 deletions(-)", "diff": "diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h\nindex 7f41a67242..dc65ae7924 100644\n--- a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h\n+++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h\n@@ -28,6 +28,21 @@ union noc_ddrtimingc0 {\n \t} b;\n };\n \n+union noc_ddrmode {\n+\tu32 d32;\n+\tstruct {\n+\t\tunsigned autoprecharge : 1;\n+\t\tunsigned bypassfiltering : 1;\n+\t\tunsigned fawbank : 1;\n+\t\tunsigned burstsize : 2;\n+\t\tunsigned mwrsize : 2;\n+\t\tunsigned reserved2 : 1;\n+\t\tunsigned forceorder : 8;\n+\t\tunsigned forceorderstate : 8;\n+\t\tunsigned reserved3 : 8;\n+\t} b;\n+};\n+\n struct rk3399_msch_regs {\n \tu32 coreid;\n \tu32 revisionid;\n@@ -48,7 +63,7 @@ struct rk3399_msch_timings {\n \tu32 ddrtimingb0;\n \tunion noc_ddrtimingc0 ddrtimingc0;\n \tu32 devtodev0;\n-\tu32 ddrmode;\n+\tunion noc_ddrmode ddrmode;\n \tu32 agingx0;\n };\n \ndiff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c\nindex e916448fc0..e4723c7d59 100644\n--- a/drivers/ram/rockchip/sdram_rk3399.c\n+++ b/drivers/ram/rockchip/sdram_rk3399.c\n@@ -1114,7 +1114,7 @@ static void dram_all_config(struct dram_info *dram,\n \t\t &ddr_msch_regs->ddrtimingc0);\n \t\twritel(noc_timing->devtodev0,\n \t\t &ddr_msch_regs->devtodev0);\n-\t\twritel(noc_timing->ddrmode,\n+\t\twritel(noc_timing->ddrmode.d32,\n \t\t &ddr_msch_regs->ddrmode);\n \n \t\t/* rank 1 memory clock disable (dfi_dram_clk_disable = 1) */\n", "prefixes": [ "U-Boot", "v3", "18/57" ] }