mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

Add supprot for Marvell platforms based on Armada-37xx SoC. This includes support for the official Armada-3720 modular development board and EspressoBin community board. The Armada-37xx SoC contains dual Cortex-A53 Application CPU, single secure CPU (Cortex-M3) and the following interfaces: - SATA 3.0 - USB 3.0 and USB 2.0 - PCIe - SDIO (supports boot from eMMC) - SPI - UART - I2c - Gigabit Ethernet Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
53 lines
968 B
C
53 lines
968 B
C
/*
|
|
* 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[] = {
|
|
MARVELL_MAP_SHARED_RAM,
|
|
MAP_DEVICE0,
|
|
{0}
|
|
};
|
|
#endif
|
|
#if IMAGE_BL2
|
|
const mmap_region_t plat_marvell_mmap[] = {
|
|
MARVELL_MAP_SHARED_RAM,
|
|
MAP_DEVICE0,
|
|
MARVELL_MAP_DRAM,
|
|
{0}
|
|
};
|
|
#endif
|
|
#if IMAGE_BL2U
|
|
const mmap_region_t plat_marvell_mmap[] = {
|
|
MAP_DEVICE0,
|
|
{0}
|
|
};
|
|
#endif
|
|
#if IMAGE_BL31
|
|
const mmap_region_t plat_marvell_mmap[] = {
|
|
MARVELL_MAP_SHARED_RAM,
|
|
MAP_DEVICE0,
|
|
MARVELL_MAP_DRAM,
|
|
{0}
|
|
};
|
|
#endif
|
|
#if IMAGE_BL32
|
|
const mmap_region_t plat_marvell_mmap[] = {
|
|
MAP_DEVICE0,
|
|
{0}
|
|
};
|
|
#endif
|
|
|
|
MARVELL_CASSERT_MMAP;
|