{"id":801275,"url":"http://patchwork.ozlabs.org/api/patches/801275/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1502730333-63031-2-git-send-email-philipp.tomsich@theobroma-systems.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":"<1502730333-63031-2-git-send-email-philipp.tomsich@theobroma-systems.com>","list_archive_url":null,"date":"2017-08-14T17:05:30","name":"[U-Boot,RFC,1/4] rockchip: clk: rk3368: update for 32/64bit-aware OF_PLATDATA","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"f9bbd1f994ebddecc2363672e7327680c4418b08","submitter":{"id":53488,"url":"http://patchwork.ozlabs.org/api/people/53488/?format=json","name":"Philipp Tomsich","email":"philipp.tomsich@theobroma-systems.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/1502730333-63031-2-git-send-email-philipp.tomsich@theobroma-systems.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/801275/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/801275/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>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xWMW221BYz9t2h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 15 Aug 2017 03:07:56 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 8C102C21E30; Mon, 14 Aug 2017 17:06:35 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 161B1C21DD4;\n\tMon, 14 Aug 2017 17:05:51 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 3B12AC21DAC; Mon, 14 Aug 2017 17:05:46 +0000 (UTC)","from mail.theobroma-systems.com (vegas.theobroma-systems.com\n\t[144.76.126.164])\n\tby lists.denx.de (Postfix) with ESMTPS id 6F5F2C21D63\n\tfor <u-boot@lists.denx.de>; Mon, 14 Aug 2017 17:05:46 +0000 (UTC)","from [86.59.122.178] (port=60345 helo=android.lan)\n\tby mail.theobroma-systems.com with esmtpsa\n\t(TLS1.2:RSA_AES_128_CBC_SHA256:128)\n\t(Exim 4.80) (envelope-from <philipp.tomsich@theobroma-systems.com>)\n\tid 1dhIoA-0004I2-1j; Mon, 14 Aug 2017 19:05:42 +0200"],"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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0","From":"Philipp Tomsich <philipp.tomsich@theobroma-systems.com>","To":"u-boot@lists.denx.de","Date":"Mon, 14 Aug 2017 19:05:30 +0200","Message-Id":"<1502730333-63031-2-git-send-email-philipp.tomsich@theobroma-systems.com>","X-Mailer":"git-send-email 2.1.4","In-Reply-To":"<1502730333-63031-1-git-send-email-philipp.tomsich@theobroma-systems.com>","References":"<1502730333-63031-1-git-send-email-philipp.tomsich@theobroma-systems.com>","Cc":"Andy Yan <andy.yan@rock-chips.com>,\n\tKlaus Goger <klaus.goger@theobroma-systems.com>","Subject":"[U-Boot] [RFC PATCH 1/4] rockchip: clk: rk3368: update for\n\t32/64bit-aware OF_PLATDATA","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":"With dtoc emitting fdt64_t for addresses (and region sizes), the\narray indices for accessing the reg[] array needs to be adjusted.\nThis adjusts the clk_rk3368 driver to correctly handle OF_PLATDATA\ngiven this new structure layout.\n\nSigned-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\n\n---\n\n drivers/clk/rockchip/clk_rk3368.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c\nindex 2be1f57..0160d50 100644\n--- a/drivers/clk/rockchip/clk_rk3368.c\n+++ b/drivers/clk/rockchip/clk_rk3368.c\n@@ -471,7 +471,7 @@ static int rk3368_clk_probe(struct udevice *dev)\n #if CONFIG_IS_ENABLED(OF_PLATDATA)\n \tstruct rk3368_clk_plat *plat = dev_get_platdata(dev);\n \n-\tpriv->cru = map_sysmem(plat->dtd.reg[1], plat->dtd.reg[3]);\n+\tpriv->cru = map_sysmem(plat->dtd.reg[0], plat->dtd.reg[1]);\n #endif\n #if IS_ENABLED(CONFIG_SPL_BUILD) || IS_ENABLED(CONFIG_TPL_BUILD)\n \trkclk_init(priv->cru);\n","prefixes":["U-Boot","RFC","1/4"]}