blob: 2be3f8852fd6ced7d9feafbfd9f2827869232728 [file] [log] [blame]
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05301/*
Chandni Cherukuri533b5542019-02-22 16:44:49 +05302 * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05303 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef PLATFORM_DEF_H
8#define PLATFORM_DEF_H
9
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000010#include <lib/utils_def.h>
11
Chandni Cherukuri626a52d2018-08-16 13:43:23 +053012#include <sgi_base_platform_def.h>
Chandni Cherukuri626a52d2018-08-16 13:43:23 +053013
Deepika Bhavnani4287c0c2019-12-13 10:23:18 -060014#define PLAT_ARM_CLUSTER_COUNT U(2)
15#define CSS_SGI_MAX_CPUS_PER_CLUSTER U(8)
16#define CSS_SGI_MAX_PE_PER_CPU U(2)
Chandni Cherukuri626a52d2018-08-16 13:43:23 +053017
18#define PLAT_CSS_MHU_BASE UL(0x45400000)
Masahisa Kojima0d316882019-03-07 11:23:42 +090019#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
Chandni Cherukuri626a52d2018-08-16 13:43:23 +053020
21/* Base address of DMC-620 instances */
Chandni Cherukuri533b5542019-02-22 16:44:49 +053022#define RDE1EDGE_DMC620_BASE0 UL(0x4e000000)
23#define RDE1EDGE_DMC620_BASE1 UL(0x4e100000)
Chandni Cherukuri626a52d2018-08-16 13:43:23 +053024
25#define PLAT_MAX_PWR_LVL ARM_PWR_LVL2
26
27#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL3
28
Manoj Kumar69bebd82019-06-21 17:07:13 +010029/*
30 * Physical and virtual address space limits for MMU in AARCH64 & AARCH32 modes
31 */
Julius Werner8e0ef0f2019-07-09 14:02:43 -070032#ifdef __aarch64__
Manoj Kumar69bebd82019-06-21 17:07:13 +010033#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 Cherukuri626a52d2018-08-16 13:43:23 +053040#endif /* PLATFORM_DEF_H */