{"id":819253,"url":"http://patchwork.ozlabs.org/api/patches/819253/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1506533594-9741-6-git-send-email-chakra.divi@openedev.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","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":"<1506533594-9741-6-git-send-email-chakra.divi@openedev.com>","list_archive_url":null,"date":"2017-09-27T17:33:14","name":"[U-Boot,v2,5/5] rk3288: spl: Add dram_init_banksize","commit_ref":"2ee3021ae1808828c74b7eb6ae68d8d511bc4c30","pull_url":null,"state":"accepted","archived":false,"hash":"c6db8346a2b86042181bcb160eb5dda57d9d6665","submitter":{"id":71741,"url":"http://patchwork.ozlabs.org/api/people/71741/?format=json","name":"Chakra Divi","email":"2chakrass@gmail.com"},"delegate":{"id":69486,"url":"http://patchwork.ozlabs.org/api/users/69486/?format=json","username":"ptomsich","first_name":"Philipp","last_name":"Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1506533594-9741-6-git-send-email-chakra.divi@openedev.com/mbox/","series":[{"id":5413,"url":"http://patchwork.ozlabs.org/api/series/5413/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=5413","date":"2017-09-27T17:33:09","name":"rk3288: Falcon mode support","version":2,"mbox":"http://patchwork.ozlabs.org/series/5413/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/819253/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/819253/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;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"JrRXscbD\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2QBc6Ndjz9t5l\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 03:42:32 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 91966C21E13; Wed, 27 Sep 2017 17:41:29 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 0C6A4C21DE8;\n\tWed, 27 Sep 2017 17:40:58 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 2E71CC21D56; Wed, 27 Sep 2017 17:40:12 +0000 (UTC)","from mail-pg0-f65.google.com (mail-pg0-f65.google.com\n\t[74.125.83.65])\n\tby lists.denx.de (Postfix) with ESMTPS id AAAEDC21DA3\n\tfor <u-boot@lists.denx.de>; Wed, 27 Sep 2017 17:40:08 +0000 (UTC)","by mail-pg0-f65.google.com with SMTP id v5so9881672pgn.4\n\tfor <u-boot@lists.denx.de>; Wed, 27 Sep 2017 10:40:08 -0700 (PDT)","from localhost.localdomain ([115.97.184.62])\n\tby smtp.gmail.com with ESMTPSA id\n\tq7sm24609290pgn.56.2017.09.27.10.40.04\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 27 Sep 2017 10:40:06 -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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=xxLcLpljII0sb56Cz3ZWxI1FQcP8WXHoxk+wcGelMjk=;\n\tb=JrRXscbDUhlTAn6FS+HIdU5AUZz+xmhQnzPVGMNB4m9rdR+URLq6NLEmoHSCkmB36H\n\tLihvCOJFLJjLtxp4qxKl/WPkHHP+9vCdWtXl+koh1OCqsKy2MSXJJBNLQV/YBrfK3Xbp\n\t9mv6LGIoxxR3ymVVePJYAcbyXWX7sWwrOEIW+VQMC2fCgf3ixLRdzUdrrMJQy7lhHbXC\n\tZDwbN+8aRQ41g1D2q4LVOVeMpKk/OE4nEQa9K+G1QZSl6NLmZfaeAfJupsIw7TZQfo+E\n\tP+BTP5qunJ7tUb/OPNvzjfK9lY0PrP2C+iQ1E94aQoetkoPnFq3Mk7A+c7+QXcJpVifu\n\t3q9w==","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;\n\tbh=xxLcLpljII0sb56Cz3ZWxI1FQcP8WXHoxk+wcGelMjk=;\n\tb=VD6fG3OBKMzqelmcFqa6/x1onqmGk2g2nVT00X1M/N4TTf56jUnFWZdCzjyWUaXHxg\n\tsdMEZmHPAjEPj0p9ag4zRuCiK7oPu59DD4gsx1S7QQWVEsg6EW+RzKpOdzPknjfKGTsb\n\tjIP5ftGr7hWI0YjHMQxxnRKNQ4xvgma54UOek42wcSxZ4DXWT1CzShYBw4cTi8jGNuVx\n\t+wGa/kD/sjNSygdoqYRW8WZL0EVaEkJcT0sdIa2+4ackuXgStZggVQoLc919tJM0TX+2\n\tmX+c0dw1UYwYopNaQZvunlywk3LRFRfIyQuvhxyb2OK38xTcupmr28RMgDqllXzn4C78\n\tbTsQ==","X-Gm-Message-State":"AHPjjUi3gyBoxxQc7/88sa5946qDRrMYL2d+WD80F6roMJtGEXBiTU34\n\tbPZmAtnuo3nHpT+mobaQQVI=","X-Google-Smtp-Source":"AOwi7QCdR70SD1GerBMxS5y+jA0kPMxF9xvCfQDG/9yEvY5JJFVg33s51j+hqCKGHHMWKA9XcUWqlA==","X-Received":"by 10.99.181.23 with SMTP id y23mr1917337pge.165.1506534007417; \n\tWed, 27 Sep 2017 10:40:07 -0700 (PDT)","From":"Chakra Divi <2chakrass@gmail.com>","X-Google-Original-From":"Chakra Divi <chakra.divi@openedev.com>","To":"Philipp Tomsich <philipp.tomsich@theobroma-systems.com>","Date":"Wed, 27 Sep 2017 23:03:14 +0530","Message-Id":"<1506533594-9741-6-git-send-email-chakra.divi@openedev.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1506533594-9741-1-git-send-email-chakra.divi@openedev.com>","References":"<1506533594-9741-1-git-send-email-chakra.divi@openedev.com>","Cc":"u-boot@lists.denx.de","Subject":"[U-Boot] [PATCH v2 5/5] rk3288: spl: Add dram_init_banksize","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>","MIME-Version":"1.0","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":"From: Jagan Teki <jagan@amarulasolutions.com>\n\nFalcon mode, is updating DDR dt node configuration through\nspl_fixup_fdt() so add appropriate DDR base and size through\ndram_init_banksize.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nReviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\nAcked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\n---\nChanges for v2:\n- none \n\n arch/arm/mach-rockchip/rk3288-board-spl.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)","diff":"diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c\nindex 5239cbc..7b7fd5a 100644\n--- a/arch/arm/mach-rockchip/rk3288-board-spl.c\n+++ b/arch/arm/mach-rockchip/rk3288-board-spl.c\n@@ -19,7 +19,9 @@\n #include <asm/arch/clock.h>\n #include <asm/arch/hardware.h>\n #include <asm/arch/periph.h>\n+#include <asm/arch/pmu_rk3288.h>\n #include <asm/arch/sdram.h>\n+#include <asm/arch/sdram_common.h>\n #include <asm/arch/sys_proto.h>\n #include <asm/arch/timer.h>\n #include <dm/pinctrl.h>\n@@ -290,3 +292,18 @@ err:\n \t/* No way to report error here */\n \thang();\n }\n+\n+#ifdef CONFIG_SPL_OS_BOOT\n+\n+#define PMU_BASE\t\t0xff730000\n+int dram_init_banksize(void)\n+{\n+\tstruct rk3288_pmu *const pmu = (void *)PMU_BASE;\n+\tsize_t size = rockchip_sdram_size((phys_addr_t)&pmu->sys_reg[2]);\n+\n+\tgd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;\n+\tgd->bd->bi_dram[0].size = size;\n+\n+\treturn 0;\n+}\n+#endif\n","prefixes":["U-Boot","v2","5/5"]}