{"id":819249,"url":"http://patchwork.ozlabs.org/api/patches/819249/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1506533594-9741-3-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-3-git-send-email-chakra.divi@openedev.com>","list_archive_url":null,"date":"2017-09-27T17:33:11","name":"[U-Boot,v2,2/5] armv7: rk3288: Move configure_l2ctlr to common","commit_ref":"a982d5156db0587f5118a118c7e9f18d4c70891d","pull_url":null,"state":"accepted","archived":false,"hash":"a37ac9cd3c6b6ac7d7e1263509c6bd045a82f4d0","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-3-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/819249/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/819249/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=\"WUD9H1vW\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2Q8Z4Nybz9tXs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 03:40:46 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 153C1C21DDE; Wed, 27 Sep 2017 17:40:00 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 35E5BC21C51;\n\tWed, 27 Sep 2017 17:39:58 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid A8014C21D5D; Wed, 27 Sep 2017 17:39:55 +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 D018DC21C51\n\tfor <u-boot@lists.denx.de>; Wed, 27 Sep 2017 17:39:52 +0000 (UTC)","by mail-pg0-f65.google.com with SMTP id m30so9890866pgn.5\n\tfor <u-boot@lists.denx.de>; Wed, 27 Sep 2017 10:39:52 -0700 (PDT)","from localhost.localdomain ([115.97.184.62])\n\tby smtp.gmail.com with ESMTPSA id\n\tq7sm24609290pgn.56.2017.09.27.10.39.48\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 27 Sep 2017 10:39:50 -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=E8iZ0/jYFCjQUZoVmrtqL2gVFs9mcTATSs0zNfjNTLA=;\n\tb=WUD9H1vWXFc41cdmzxxcmnWZ3sn0VQnywpphTwNuaveuhZiF4GYrnsK2zjbdggygAK\n\tmUPtzrVoF1k4+U/aIq0lO1X4PRY/XIgN4WG1gclwbKlwYFxyJOigEOysgVQ/To93IhTR\n\tEaSCyNeBOl9WMLgmlRAoXHIM0UJmt/9BYaNpVKkuMMoike92op6Adij7vyosWEfawvqx\n\t7JYLTxkfHsAau4A89x6G24NKbkusDYiL0eXx/caz/3FOdBO4BaTNsSwg6fnqOrQ6QhFv\n\tHUPdWu/qJ+UukObQkcODEnFqCpyFQ58EsYw2ZbxwfGPypag0muz72KuhuVTJKvwIgArx\n\tB2lg==","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=E8iZ0/jYFCjQUZoVmrtqL2gVFs9mcTATSs0zNfjNTLA=;\n\tb=LYzxr0xyEoz19O9v3PrRLx2RAUah7B9mHrW3jw/9PlIjD0LP6wALY4n5fPM0JkfZ58\n\txAZjv0EMSvyPhfcy1qFGt9X+nOBvSQesp9aZ2DMGghbn6Q/qzGWIBJEKm3aEoRb7sBB6\n\thNXQJOkKfTIlQfhsFvoZBjMP1dV/kvsdLc0EgFDmKumi5tk4szBi4SNCb8f+OfRDP/Q4\n\tE3FbqMXIkGQ7lgLiRl5RhWii+68uh4tsGHJtANJBpnW6EwAeX2vpfifmmRqa0gaCH4QB\n\tg8vPzMR1ubTVz/um9LsLZ3FH0vo9cr7rDH1BVHvA2BDSzEbnUGq5ObDNNCHDuB54Fbrg\n\tGTjw==","X-Gm-Message-State":"AHPjjUiX85xdvZanBMQifBcd3XISrOxPV+U/pO3XcM/UKOfARF+YEb2C\n\tiIb6IcxkvA7GQRMnDKQ4tjw=","X-Google-Smtp-Source":"AOwi7QA6K4hJWwZwR6Lhi1vTSKdiZpFd+G8duOzHM9RjTExbH1383dXYpc3sgLggSx/jyea1SgW73w==","X-Received":"by 10.98.57.196 with SMTP id u65mr1972658pfj.196.1506533991514; \n\tWed, 27 Sep 2017 10:39:51 -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:11 +0530","Message-Id":"<1506533594-9741-3-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 2/5] armv7: rk3288: Move configure_l2ctlr to\n\tcommon","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\nconfigure_l2ctlr will be shared between SPL and TPL so\nmove them into asm/arch/sys_proto.h\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\nChanges for v2:\n- New patch\n\n arch/arm/include/asm/arch-rockchip/sys_proto.h | 23 +++++++++++++++++++++++\n arch/arm/mach-rockchip/rk3288-board-spl.c      | 21 +--------------------\n 2 files changed, 24 insertions(+), 20 deletions(-)","diff":"diff --git a/arch/arm/include/asm/arch-rockchip/sys_proto.h b/arch/arm/include/asm/arch-rockchip/sys_proto.h\nindex 35423e1..e428d59 100644\n--- a/arch/arm/include/asm/arch-rockchip/sys_proto.h\n+++ b/arch/arm/include/asm/arch-rockchip/sys_proto.h\n@@ -7,4 +7,27 @@\n #ifndef _ASM_ARCH_SYS_PROTO_H\n #define _ASM_ARCH_SYS_PROTO_H\n \n+#ifdef CONFIG_ROCKCHIP_RK3288\n+#include <asm/armv7.h>\n+\n+static void configure_l2ctlr(void)\n+{\n+\tuint32_t l2ctlr;\n+\n+\tl2ctlr = read_l2ctlr();\n+\tl2ctlr &= 0xfffc0000; /* clear bit0~bit17 */\n+\n+\t/*\n+\t* Data RAM write latency: 2 cycles\n+\t* Data RAM read latency: 2 cycles\n+\t* Data RAM setup latency: 1 cycle\n+\t* Tag RAM write latency: 1 cycle\n+\t* Tag RAM read latency: 1 cycle\n+\t* Tag RAM setup latency: 1 cycle\n+\t*/\n+\tl2ctlr |= (1 << 3 | 1 << 0);\n+\twrite_l2ctlr(l2ctlr);\n+}\n+#endif /* CONFIG_ROCKCHIP_RK3288 */\n+\n #endif /* _ASM_ARCH_SYS_PROTO_H */\ndiff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c\nindex 8a1066c..23af653 100644\n--- a/arch/arm/mach-rockchip/rk3288-board-spl.c\n+++ b/arch/arm/mach-rockchip/rk3288-board-spl.c\n@@ -13,7 +13,6 @@\n #include <malloc.h>\n #include <ram.h>\n #include <spl.h>\n-#include <asm/armv7.h>\n #include <asm/gpio.h>\n #include <asm/io.h>\n #include <asm/arch/bootrom.h>\n@@ -21,6 +20,7 @@\n #include <asm/arch/hardware.h>\n #include <asm/arch/periph.h>\n #include <asm/arch/sdram.h>\n+#include <asm/arch/sys_proto.h>\n #include <asm/arch/timer.h>\n #include <dm/pinctrl.h>\n #include <dm/root.h>\n@@ -81,25 +81,6 @@ u32 spl_boot_mode(const u32 boot_device)\n \treturn MMCSD_MODE_RAW;\n }\n \n-static void configure_l2ctlr(void)\n-{\n-\tuint32_t l2ctlr;\n-\n-\tl2ctlr = read_l2ctlr();\n-\tl2ctlr &= 0xfffc0000; /* clear bit0~bit17 */\n-\n-\t/*\n-\t* Data RAM write latency: 2 cycles\n-\t* Data RAM read latency: 2 cycles\n-\t* Data RAM setup latency: 1 cycle\n-\t* Tag RAM write latency: 1 cycle\n-\t* Tag RAM read latency: 1 cycle\n-\t* Tag RAM setup latency: 1 cycle\n-\t*/\n-\tl2ctlr |= (1 << 3 | 1 << 0);\n-\twrite_l2ctlr(l2ctlr);\n-}\n-\n #ifdef CONFIG_SPL_MMC_SUPPORT\n static int configure_emmc(struct udevice *pinctrl)\n {\n","prefixes":["U-Boot","v2","2/5"]}