a8k_common.c 1.09 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (C) 2018 Marvell International Ltd.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 * https://spdx.org/licenses
 */

#include <plat_marvell.h>


/* MMU entry for internal (register) space access */
#define MAP_DEVICE0	MAP_REGION_FLAT(DEVICE0_BASE,			\
					DEVICE0_SIZE,			\
					MT_DEVICE | MT_RW | MT_SECURE)

/*
 * Table of regions for various BL stages to map using the MMU.
 */
#if IMAGE_BL1
const mmap_region_t plat_marvell_mmap[] = {
21
	MARVELL_MAP_SECURE_RAM,
22
23
24
25
26
27
	MAP_DEVICE0,
	{0}
};
#endif
#if IMAGE_BL2
const mmap_region_t plat_marvell_mmap[] = {
28
	MARVELL_MAP_SECURE_RAM,
29
30
31
32
33
34
35
36
	MAP_DEVICE0,
	MARVELL_MAP_DRAM,
	{0}
};
#endif

#if IMAGE_BL2U
const mmap_region_t plat_marvell_mmap[] = {
37
	MARVELL_MAP_SECURE_RAM,
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	MAP_DEVICE0,
	{0}
};
#endif

#if IMAGE_BLE
const mmap_region_t plat_marvell_mmap[] = {
	MAP_DEVICE0,
	{0}
};
#endif

#if IMAGE_BL31
const mmap_region_t plat_marvell_mmap[] = {
52
	MARVELL_MAP_SECURE_RAM,
53
54
55
56
57
58
59
	MAP_DEVICE0,
	MARVELL_MAP_DRAM,
	{0}
};
#endif
#if IMAGE_BL32
const mmap_region_t plat_marvell_mmap[] = {
60
	MARVELL_MAP_SECURE_RAM,
61
62
63
64
65
66
	MAP_DEVICE0,
	{0}
};
#endif

MARVELL_CASSERT_MMAP;