]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-rockchip/rk3328/rk3328.c
rockchip: rk3328: correct mem_region
[u-boot] / arch / arm / mach-rockchip / rk3328 / rk3328.c
1 /*
2  * Copyright (c) 2016 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.h>
8 #include <asm/arch/hardware.h>
9 #include <asm/armv8/mmu.h>
10 #include <asm/io.h>
11
12 static struct mm_region rk3328_mem_map[] = {
13         {
14                 .virt = 0x0UL,
15                 .phys = 0x0UL,
16                 .size = 0xff000000UL,
17                 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
18                          PTE_BLOCK_INNER_SHARE
19         }, {
20                 .virt = 0xff000000UL,
21                 .phys = 0xff000000UL,
22                 .size = 0x1000000UL,
23                 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
24                          PTE_BLOCK_NON_SHARE |
25                          PTE_BLOCK_PXN | PTE_BLOCK_UXN
26         }, {
27                 /* List terminator */
28                 0,
29         }
30 };
31
32 struct mm_region *mem_map = rk3328_mem_map;
33
34 int arch_cpu_init(void)
35 {
36         /* We do some SoC one time setting here. */
37
38         return 0;
39 }