Sheetal Tigadoli | 13680c9 | 2019-12-13 10:39:06 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2016 - 2020, Broadcom |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <brcm_def.h> |
| 8 | #include <plat_brcm.h> |
| 9 | |
| 10 | #if IMAGE_BL2 |
| 11 | const mmap_region_t plat_brcm_mmap[] = { |
| 12 | HSLS_REGION, |
| 13 | BRCM_MAP_SHARED_RAM, |
| 14 | BRCM_MAP_NAND_RO, |
| 15 | BRCM_MAP_QSPI_RO, |
| 16 | #ifdef PERIPH0_REGION |
| 17 | PERIPH0_REGION, |
| 18 | #endif |
| 19 | #ifdef PERIPH1_REGION |
| 20 | PERIPH1_REGION, |
| 21 | #endif |
| 22 | #ifdef USE_DDR |
| 23 | BRCM_MAP_NS_DRAM1, |
| 24 | #if BRCM_BL31_IN_DRAM |
| 25 | BRCM_MAP_BL31_SEC_DRAM, |
| 26 | #endif |
| 27 | #else |
| 28 | #ifdef BRCM_MAP_EXT_SRAM |
| 29 | BRCM_MAP_EXT_SRAM, |
| 30 | #endif |
| 31 | #endif |
| 32 | #if defined(USE_CRMU_SRAM) && defined(CRMU_SRAM_BASE) |
| 33 | CRMU_SRAM_REGION, |
| 34 | #endif |
| 35 | {0} |
| 36 | }; |
| 37 | #endif |
| 38 | |
| 39 | CASSERT((ARRAY_SIZE(plat_brcm_mmap) - 1) <= PLAT_BRCM_MMAP_ENTRIES, |
| 40 | assert_plat_brcm_mmap_mismatch); |
| 41 | CASSERT((PLAT_BRCM_MMAP_ENTRIES + BRCM_BL_REGIONS) <= MAX_MMAP_REGIONS, |
| 42 | assert_max_mmap_regions); |