xref: /arm-trusted-firmware/plat/arm/board/arm_fpga/fpga_def.h (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu  */
6*91f16700Schasinglulu 
7*91f16700Schasinglulu #include <lib/utils_def.h>
8*91f16700Schasinglulu 
9*91f16700Schasinglulu #ifndef FPGA_DEF_H
10*91f16700Schasinglulu #define FPGA_DEF_H
11*91f16700Schasinglulu 
12*91f16700Schasinglulu /*
13*91f16700Schasinglulu  * These are set to large values to account for images describing systems with
14*91f16700Schasinglulu  * larger cluster configurations.
15*91f16700Schasinglulu  *
16*91f16700Schasinglulu  * For cases where the number of clusters, cores or threads is smaller than a
17*91f16700Schasinglulu  * maximum value below, this does not affect the PSCI functionality as any PEs
18*91f16700Schasinglulu  * that are present will still be indexed appropriately regardless of any empty
19*91f16700Schasinglulu  * entries in the array used to represent the topology.
20*91f16700Schasinglulu  */
21*91f16700Schasinglulu 
22*91f16700Schasinglulu #define FPGA_MAX_CLUSTER_COUNT			4
23*91f16700Schasinglulu #define FPGA_MAX_CPUS_PER_CLUSTER		8
24*91f16700Schasinglulu #define FPGA_MAX_PE_PER_CPU			4
25*91f16700Schasinglulu 
26*91f16700Schasinglulu #define FPGA_PRIMARY_CPU			0x0
27*91f16700Schasinglulu /*******************************************************************************
28*91f16700Schasinglulu  * FPGA image memory map related constants
29*91f16700Schasinglulu  ******************************************************************************/
30*91f16700Schasinglulu 
31*91f16700Schasinglulu /*
32*91f16700Schasinglulu  * UART base address, just for the crash console, as a fallback.
33*91f16700Schasinglulu  * The actual console UART address is taken from the DT.
34*91f16700Schasinglulu  */
35*91f16700Schasinglulu #define PLAT_FPGA_CRASH_UART_BASE		0x7ff80000
36*91f16700Schasinglulu 
37*91f16700Schasinglulu #define FPGA_DEFAULT_TIMER_FREQUENCY		10000000
38*91f16700Schasinglulu 
39*91f16700Schasinglulu #endif
40