Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 1 | /* |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, Arm Limited. All rights reserved. |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef PLATFORM_DEF_H |
| 8 | #define PLATFORM_DEF_H |
| 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <lib/utils_def.h> |
| 11 | |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 12 | #include <sgi_base_platform_def.h> |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 13 | |
| 14 | #define PLAT_ARM_CLUSTER_COUNT 2 |
| 15 | #define CSS_SGI_MAX_CPUS_PER_CLUSTER 8 |
| 16 | #define CSS_SGI_MAX_PE_PER_CPU 2 |
| 17 | |
| 18 | #define PLAT_CSS_MHU_BASE UL(0x45400000) |
Masahisa Kojima | 0d31688 | 2019-03-07 11:23:42 +0900 | [diff] [blame] | 19 | #define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 20 | |
| 21 | /* Base address of DMC-620 instances */ |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 22 | #define RDE1EDGE_DMC620_BASE0 UL(0x4e000000) |
| 23 | #define RDE1EDGE_DMC620_BASE1 UL(0x4e100000) |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 24 | |
| 25 | #define PLAT_MAX_PWR_LVL ARM_PWR_LVL2 |
| 26 | |
| 27 | #define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL3 |
| 28 | |
Manoj Kumar | 69bebd8 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 29 | /* |
| 30 | * Physical and virtual address space limits for MMU in AARCH64 & AARCH32 modes |
| 31 | */ |
| 32 | #ifndef AARCH32 |
| 33 | #define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 36) |
| 34 | #define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 36) |
| 35 | #else |
| 36 | #define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32) |
| 37 | #define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32) |
| 38 | #endif |
| 39 | |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 40 | #endif /* PLATFORM_DEF_H */ |