From: Marek Vasut Date: Thu, 27 Sep 2018 00:59:29 +0200 Subject: [U-Boot] [PATCH v2 1/1] ARM: meson: Extend mem_map to support 3GiB of RAM In-Reply-To: <20180925143035.20621-1-ldevulder@suse.de> References: <20180925143035.20621-1-ldevulder@suse.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/25/2018 04:30 PM, Loic Devulder wrote: > The current mem_map definition for Meson SoCs has support for up > to 2GiB of RAM. According to S905, S905X, S912 and S805X datasheets > the DDR region is set from 0x00000000 to 0xBFFFFFFF, so mem_map's > definition should be changed accordingly. > > It is also needed to be able to boot Khadas VIM2 board with S912 > SoC. > > Signed-off-by: Loic Devulder Acked-by: Marek Vasut Thanks > --- > v2: set the correct size for devices memory map > > arch/arm/mach-meson/board.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/mach-meson/board.c b/arch/arm/mach-meson/board.c > index 1ef7e5a6d1..48096ca7cf 100644 > --- a/arch/arm/mach-meson/board.c > +++ b/arch/arm/mach-meson/board.c > @@ -111,13 +111,13 @@ static struct mm_region gx_mem_map[] = { > { > .virt = 0x0UL, > .phys = 0x0UL, > - .size = 0x80000000UL, > + .size = 0xc0000000UL, > .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | > PTE_BLOCK_INNER_SHARE > }, { > - .virt = 0x80000000UL, > - .phys = 0x80000000UL, > - .size = 0x80000000UL, > + .virt = 0xc0000000UL, > + .phys = 0xc0000000UL, > + .size = 0x30000000UL, > .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | > PTE_BLOCK_NON_SHARE | > PTE_BLOCK_PXN | PTE_BLOCK_UXN > -- Best regards, Marek Vasut