Aditya Angadi | cdd7f63 | 2020-04-06 17:11:23 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef PLATFORM_DEF_H |
| 8 | #define PLATFORM_DEF_H |
| 9 | |
| 10 | #include <lib/utils_def.h> |
| 11 | #include <sgi_base_platform_def.h> |
| 12 | |
| 13 | #define PLAT_ARM_CLUSTER_COUNT U(4) |
| 14 | #define CSS_SGI_MAX_CPUS_PER_CLUSTER U(1) |
| 15 | #define CSS_SGI_MAX_PE_PER_CPU U(1) |
| 16 | |
| 17 | #define PLAT_CSS_MHU_BASE UL(0x45400000) |
| 18 | #define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE |
| 19 | |
| 20 | #define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2 |
| 21 | #define PLAT_MAX_PWR_LVL ARM_PWR_LVL1 |
| 22 | |
| 23 | /* Virtual address used by dynamic mem_protect for chunk_base */ |
| 24 | #define PLAT_ARM_MEM_PROTEC_VA_FRAME UL(0xC0000000) |
| 25 | |
| 26 | /* Physical and virtual address space limits for MMU in AARCH64 mode */ |
| 27 | #define PLAT_PHY_ADDR_SPACE_SIZE CSS_SGI_REMOTE_CHIP_MEM_OFFSET( \ |
| 28 | CSS_SGI_CHIP_COUNT) |
| 29 | #define PLAT_VIRT_ADDR_SPACE_SIZE CSS_SGI_REMOTE_CHIP_MEM_OFFSET( \ |
| 30 | CSS_SGI_CHIP_COUNT) |
| 31 | |
| 32 | /* GIC related constants */ |
| 33 | #define PLAT_ARM_GICD_BASE UL(0x30000000) |
| 34 | #define PLAT_ARM_GICC_BASE UL(0x2C000000) |
| 35 | #define PLAT_ARM_GICR_BASE UL(0x30140000) |
| 36 | |
| 37 | #endif /* PLATFORM_DEF_H */ |