]> Git Repo - u-boot.git/commitdiff
ARM: rmobile: Mark 4-64GiB as DRAM on Gen3
authorMarek Vasut <[email protected]>
Tue, 2 Oct 2018 19:42:49 +0000 (21:42 +0200)
committerMarek Vasut <[email protected]>
Wed, 3 Oct 2018 10:56:13 +0000 (12:56 +0200)
Mark area 0x1_0000_0000 - 0x10_0000_0000 as DRAM on Gen3 as the
chip is capable of addressing that and U-Boot can make use of it.
This patch prevents exception when accessing those areas.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
arch/arm/mach-rmobile/memmap-gen3.c

index 57a2f88fc43ae2a3826c9a365034c34744212f3e..92c8f2e80db762ddc78f3702b9e85badf3201f74 100644 (file)
@@ -29,6 +29,12 @@ static struct mm_region gen3_mem_map[] = {
                .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
                         PTE_BLOCK_NON_SHARE |
                         PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
+               .virt = 0x100000000UL,
+               .phys = 0x100000000UL,
+               .size = 0xf00000000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                        PTE_BLOCK_INNER_SHARE
        }, {
                /* List terminator */
                0,
This page took 0.034694 seconds and 4 git commands to generate.