blob: adb957e5dd548b851d3aa09549deebd2e85e5085 [file] [log] [blame]
Deepak Pandey9cbacf62018-08-08 10:32:51 +05301/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef PLATFORM_DEF_H
8#define PLATFORM_DEF_H
Deepak Pandey9cbacf62018-08-08 10:32:51 +05309
Antonio Nino Diazbd7b7402019-01-25 14:30:04 +000010#include <plat/arm/board/common/v2m_def.h>
11#include <plat/arm/common/arm_def.h>
12#include <plat/arm/css/common/css_def.h>
Deepak Pandey9cbacf62018-08-08 10:32:51 +053013
Deepak Pandeyb66a18e2018-12-18 17:10:24 +053014/* UART related constants */
15#define PLAT_ARM_BOOT_UART_BASE 0x2A400000
16#define PLAT_ARM_BOOT_UART_CLK_IN_HZ 50000000
17
Usama Arif81eb5ce2019-02-11 16:35:42 +000018#define PLAT_ARM_RUN_UART_BASE 0x2A410000
19#define PLAT_ARM_RUN_UART_CLK_IN_HZ 50000000
Deepak Pandeyb66a18e2018-12-18 17:10:24 +053020
21#define PLAT_ARM_SP_MIN_RUN_UART_BASE 0x2A410000
22#define PLAT_ARM_SP_MIN_RUN_UART_CLK_IN_HZ 50000000
23
Usama Arif81eb5ce2019-02-11 16:35:42 +000024#define PLAT_ARM_CRASH_UART_BASE PLAT_ARM_RUN_UART_BASE
25#define PLAT_ARM_CRASH_UART_CLK_IN_HZ PLAT_ARM_RUN_UART_CLK_IN_HZ
Deepak Pandeyb66a18e2018-12-18 17:10:24 +053026
27#define PLAT_ARM_DRAM2_SIZE ULL(0x780000000)
28
Deepak Pandey9cbacf62018-08-08 10:32:51 +053029#if CSS_USE_SCMI_SDS_DRIVER
30#define N1SDP_SCMI_PAYLOAD_BASE 0x45400000
31#else
32#define PLAT_CSS_SCP_COM_SHARED_MEM_BASE 0x45400000
33#endif
34
35#define PLAT_ARM_TRUSTED_SRAM_SIZE 0x00080000 /* 512 KB */
36#define PLAT_ARM_MAX_BL31_SIZE 0X20000
37
38
39/*******************************************************************************
40 * N1SDP topology related constants
41 ******************************************************************************/
42#define N1SDP_MAX_CPUS_PER_CLUSTER 2
43#define PLAT_ARM_CLUSTER_COUNT 2
44#define N1SDP_MAX_PE_PER_CPU 1
45
46#define PLATFORM_CORE_COUNT (PLAT_ARM_CLUSTER_COUNT * \
47 N1SDP_MAX_CPUS_PER_CLUSTER * \
48 N1SDP_MAX_PE_PER_CPU)
49
Chandni Cherukuri0fdcbc02018-10-16 15:19:54 +053050/* System power domain level */
51#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
Deepak Pandey9cbacf62018-08-08 10:32:51 +053052
53/*
54 * PLAT_ARM_MMAP_ENTRIES depends on the number of entries in the
55 * plat_arm_mmap array defined for each BL stage.
56 */
57#define PLAT_ARM_MMAP_ENTRIES 3
58#define MAX_XLAT_TABLES 4
59
60#define PLATFORM_STACK_SIZE 0x400
61
62#define PLAT_ARM_NSTIMER_FRAME_ID 0
63#define PLAT_CSS_MHU_BASE 0x45000000
Masahisa Kojima0d316882019-03-07 11:23:42 +090064#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
Deepak Pandey9cbacf62018-08-08 10:32:51 +053065#define PLAT_MAX_PWR_LVL 1
66
67#define PLAT_ARM_G1S_IRQS ARM_G1S_IRQS, \
68 CSS_IRQ_MHU
69#define PLAT_ARM_G0_IRQS ARM_G0_IRQS
70
71#define PLAT_ARM_G1S_IRQ_PROPS(grp) CSS_G1S_IRQ_PROPS(grp)
72#define PLAT_ARM_G0_IRQ_PROPS(grp) ARM_G0_IRQ_PROPS(grp)
73
74
75#define N1SDP_DEVICE_BASE (0x20000000)
Deepak Pandeyb66a18e2018-12-18 17:10:24 +053076#define N1SDP_DEVICE_SIZE (0x30000000)
Deepak Pandey9cbacf62018-08-08 10:32:51 +053077#define N1SDP_MAP_DEVICE MAP_REGION_FLAT( \
78 N1SDP_DEVICE_BASE, \
79 N1SDP_DEVICE_SIZE, \
80 MT_DEVICE | MT_RW | MT_SECURE)
81
82/* GIC related constants */
83#define PLAT_ARM_GICD_BASE 0x30000000
84#define PLAT_ARM_GICC_BASE 0x2C000000
85#define PLAT_ARM_GICR_BASE 0x300C0000
86
87/* Platform ID address */
88#define SSC_VERSION (SSC_REG_BASE + SSC_VERSION_OFFSET)
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000089
Aditya Angadi20b48412019-04-16 11:29:14 +053090/* Secure Watchdog Constants */
91#define SBSA_SECURE_WDOG_BASE UL(0x2A480000)
92#define SBSA_SECURE_WDOG_TIMEOUT UL(100)
93
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000094#endif /* PLATFORM_DEF_H */