From patchwork Fri Mar 23 08:18:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 889802 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aosc.io Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 406xR91NbKz9s0w for ; Fri, 23 Mar 2018 19:24:37 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DC306C21E12; Fri, 23 Mar 2018 08:23:56 +0000 (UTC) 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 autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 04526C21E16; Fri, 23 Mar 2018 08:23:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6884CC21E29; Fri, 23 Mar 2018 08:23:43 +0000 (UTC) Received: from coral.maple.relay.mailchannels.net (coral.maple.relay.mailchannels.net [23.83.214.39]) by lists.denx.de (Postfix) with ESMTPS id 11860C21DB3 for ; Fri, 23 Mar 2018 08:23:39 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CF7635C15EF; Fri, 23 Mar 2018 08:23:37 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.17.70]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id E19835C10FB; Fri, 23 Mar 2018 08:23:36 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.18.43.43]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.14.1); Fri, 23 Mar 2018 08:23:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Cellar-Keen: 6335189c43f650b9_1521793417616_307847309 X-MC-Loop-Signature: 1521793417616:3132256064 X-MC-Ingress-Time: 1521793417615 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 7E0C559F1E; Fri, 23 Mar 2018 08:23:33 +0000 (UTC) From: Icenowy Zheng To: Jagan Teki , Maxime Ripard , Andre Przywara , Chen-Yu Tsai Date: Fri, 23 Mar 2018 16:18:52 +0800 Message-Id: <20180323081857.57138-2-icenowy@aosc.io> In-Reply-To: <20180323081857.57138-1-icenowy@aosc.io> References: <20180323081857.57138-1-icenowy@aosc.io> Cc: u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [U-Boot] [PATCH v2 1/6] sunxi: map DRAM part with 3G size on AArch64 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" All Allwinner 64-bit SoCs now are known to be able to access 3GiB of external DRAM, however the size of DRAM part in the MMU translation table is still 2GiB. Change the size of DRAM part in MMU table to 3GiB. Signed-off-by: Icenowy Zheng --- No changes in v2. arch/arm/mach-sunxi/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 1753faec1d..89696e0890 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -53,7 +53,7 @@ static struct mm_region sunxi_mem_map[] = { /* RAM */ .virt = 0x40000000UL, .phys = 0x40000000UL, - .size = 0x80000000UL, + .size = 0xC0000000UL, .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_INNER_SHARE }, {