diff options
author | Takeshi Kihara <takeshi.kihara.df@renesas.com> | 2018-12-04 12:51:01 +0900 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-12-07 16:31:15 +0100 |
commit | 10854bcc25e1375e472a9bda73406a15b79600a4 (patch) | |
tree | ff5c2e1c2f86cb39e9e8ada8e926528863b4a86e /arch | |
parent | 23b9b36ae39ab3fb6987d1994bf8ab47d449b566 (diff) | |
download | u-boot-10854bcc25e1375e472a9bda73406a15b79600a4.zip u-boot-10854bcc25e1375e472a9bda73406a15b79600a4.tar.gz u-boot-10854bcc25e1375e472a9bda73406a15b79600a4.tar.bz2 |
ARM: rcar_gen3: fix protection area access error
This patch fixes the problem that "main memory domain AXI secure access
protection error" occurs. Exclude the area (0x43f00000 to 0x47DFFFFF)
set by DBSC from the map area.
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-rmobile/memmap-gen3.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-rmobile/memmap-gen3.c b/arch/arm/mach-rmobile/memmap-gen3.c index 0429a2a..3c0f354 100644 --- a/arch/arm/mach-rmobile/memmap-gen3.c +++ b/arch/arm/mach-rmobile/memmap-gen3.c @@ -82,8 +82,16 @@ void enable_caches(void) /* Mark memory reserved by ATF as cacheable too. */ if (start == 0x48000000) { - start = 0x40000000ULL; - size += 0x08000000ULL; + /* Unmark protection area (0x43F00000 to 0x47DFFFFF) */ + gen3_mem_map[i].virt = 0x40000000ULL; + gen3_mem_map[i].phys = 0x40000000ULL; + gen3_mem_map[i].size = 0x03F00000ULL; + gen3_mem_map[i].attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE; + i++; + + start = 0x47E00000ULL; + size += 0x00200000ULL; } gen3_mem_map[i].virt = start; |