]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
armv8: mmu: cleanup mm_region definition
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 8 Mar 2017 14:19:26 +0000 (15:19 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 13 Mar 2017 15:36:15 +0000 (16:36 +0100)
 - use more user-friendly 'size' value representation
 - remove duplicated comments

arch/arm/mach-snapdragon/sysmap-apq8016.c

index 580b9c7e6159a7e4f7aa07d893454c22b54835ec..a5cd3b1769b5407b84247a3bd960cabfac85b875 100644 (file)
 
 static struct mm_region apq8016_mem_map[] = {
        {
-               .virt = 0x0UL, /* Peripheral block */
                .phys = 0x0UL, /* Peripheral block */
-               .size = 0x8000000UL,
+               .virt = 0x0UL,
+               .size = SZ_256M,
                .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
                         PTE_BLOCK_NON_SHARE |
-                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
-       }, {
-               .virt = 0x80000000UL, /* DDR */
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN,
+       },
+       {
                .phys = 0x80000000UL, /* DDR */
-               .size = 0x80000000UL,
+               .virt = 0x80000000UL,
+               .size = SZ_1G,
                .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
-                        PTE_BLOCK_INNER_SHARE
-       }, {
-               /* List terminator */
-               0,
-       }
+                        PTE_BLOCK_INNER_SHARE,
+       },
+       { /* List terminator */ }
 };
 
 struct mm_region *mem_map = apq8016_mem_map;