mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00

As secondary cores show up, they populate an array to announce themselves so plat_core_pos_by_mpidr() can return an invalid COREID code for any non-existing MPIDR that it is queried about. The Power Domain Tree Description is populated with a topology based on the maximum harcoded values. Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com> Change-Id: I8fd64761a2296714ce0f37c46544f3e6f13b5f61
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
/*
|
|
* 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
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
|
|
#define FPGA_MAX_CLUSTER_COUNT 4
|
|
#define FPGA_MAX_CPUS_PER_CLUSTER 8
|
|
#define FPGA_MAX_PE_PER_CPU 4
|
|
|
|
#define FPGA_PRIMARY_CPU 0x0
|
|
/*******************************************************************************
|
|
* FPGA image memory map related constants
|
|
******************************************************************************/
|
|
|
|
/*
|
|
* UART base address, just for the crash console, as a fallback.
|
|
* The actual console UART address is taken from the DT.
|
|
*/
|
|
#define PLAT_FPGA_CRASH_UART_BASE 0x7ff80000
|
|
|
|
#define FPGA_DEFAULT_TIMER_FREQUENCY 10000000
|
|
|
|
#endif
|