]> git.sur5r.net Git - u-boot/commitdiff
rockchip: rk3328: correct mem_region
authorKever Yang <kever.yang@rock-chips.com>
Tue, 13 Jun 2017 13:00:12 +0000 (21:00 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 11 Jul 2017 10:13:44 +0000 (12:13 +0200)
According to rk3328 TRM:
0~0xff000000 is ddr space;
0xff000000~0xffffffff is device space.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/mach-rockchip/rk3328/rk3328.c

index 857f0142b01398af27b55bd83e01ef10ad0dbf51..cec6f905f6ca819f0f211ef438fb63a1b4e02a79 100644 (file)
@@ -13,13 +13,13 @@ static struct mm_region rk3328_mem_map[] = {
        {
                .virt = 0x0UL,
                .phys = 0x0UL,
-               .size = 0x80000000UL,
+               .size = 0xff000000UL,
                .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
                         PTE_BLOCK_INNER_SHARE
        }, {
-               .virt = 0xf0000000UL,
-               .phys = 0xf0000000UL,
-               .size = 0x10000000UL,
+               .virt = 0xff000000UL,
+               .phys = 0xff000000UL,
+               .size = 0x1000000UL,
                .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
                         PTE_BLOCK_NON_SHARE |
                         PTE_BLOCK_PXN | PTE_BLOCK_UXN