blob: a2e7402e61c3664bb70b816913483ad8397edf4d [file] [log] [blame]
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +03001/*
2 * Copyright (C) 2018 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
7
8#include <plat_marvell.h>
9
10
11/* MMU entry for internal (register) space access */
12#define MAP_DEVICE0 MAP_REGION_FLAT(DEVICE0_BASE, \
13 DEVICE0_SIZE, \
14 MT_DEVICE | MT_RW | MT_SECURE)
15
16/*
17 * Table of regions for various BL stages to map using the MMU.
18 */
19#if IMAGE_BL1
20const mmap_region_t plat_marvell_mmap[] = {
Konstantin Porotchkin5f8630b2020-06-19 17:48:48 +020021 MARVELL_MAP_SECURE_RAM,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030022 MAP_DEVICE0,
23 {0}
24};
25#endif
26#if IMAGE_BL2
27const mmap_region_t plat_marvell_mmap[] = {
Konstantin Porotchkin5f8630b2020-06-19 17:48:48 +020028 MARVELL_MAP_SECURE_RAM,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030029 MAP_DEVICE0,
30 MARVELL_MAP_DRAM,
31 {0}
32};
33#endif
34
35#if IMAGE_BL2U
36const mmap_region_t plat_marvell_mmap[] = {
Konstantin Porotchkin5f8630b2020-06-19 17:48:48 +020037 MARVELL_MAP_SECURE_RAM,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030038 MAP_DEVICE0,
39 {0}
40};
41#endif
42
43#if IMAGE_BLE
44const mmap_region_t plat_marvell_mmap[] = {
45 MAP_DEVICE0,
46 {0}
47};
48#endif
49
50#if IMAGE_BL31
51const mmap_region_t plat_marvell_mmap[] = {
Konstantin Porotchkin5f8630b2020-06-19 17:48:48 +020052 MARVELL_MAP_SECURE_RAM,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030053 MAP_DEVICE0,
54 MARVELL_MAP_DRAM,
55 {0}
56};
57#endif
58#if IMAGE_BL32
59const mmap_region_t plat_marvell_mmap[] = {
Konstantin Porotchkin5f8630b2020-06-19 17:48:48 +020060 MARVELL_MAP_SECURE_RAM,
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030061 MAP_DEVICE0,
62 {0}
63};
64#endif
65
66MARVELL_CASSERT_MMAP;