fpga_def.h 1.13 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <lib/utils_def.h>

#ifndef FPGA_DEF_H
#define FPGA_DEF_H

/*
13
14
15
16
17
18
19
 * These are set to large values to account for images describing systems with
 * larger cluster configurations.
 *
 * For cases where the number of clusters, cores or threads is smaller than a
 * maximum value below, this does not affect the PSCI functionality as any PEs
 * that are present will still be indexed appropriately regardless of any empty
 * entries in the array used to represent the topology.
20
21
 */
#define FPGA_MAX_CLUSTER_COUNT			2
22
23
#define FPGA_MAX_CPUS_PER_CLUSTER		8
#define FPGA_MAX_PE_PER_CPU			4
24
25
26
27
28
29

#define FPGA_PRIMARY_CPU			0x0
/*******************************************************************************
 * FPGA image memory map related constants
 ******************************************************************************/

Andre Przywara's avatar
Andre Przywara committed
30
/* UART base address, as configured by the image */
31
32
33
#define PLAT_FPGA_BOOT_UART_BASE 		0x7ff80000
#define PLAT_FPGA_CRASH_UART_BASE		PLAT_FPGA_BOOT_UART_BASE

34
35
#define FPGA_TIMER_FREQUENCY			10000000

36
#endif