mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-12-02 15:47:10 +00:00
003faaa59f
This patch adds support for passing FVP platform's topology configuration to DTS files for compilation, which allows to build DTBs with correct number of clusters and CPUs. This removes non-existing clusters/CPUs from the compiled device tree blob and fixes reported Linux errors when trying to power on absent CPUs/PEs. If DTS file is passed using FVP_HW_CONFIG_DTS build option from the platform's makefile, FVP_CLUSTER_COUNT, FVP_MAX_CPUS_PER_CLUSTER and FVP_MAX_PE_PER_CPU parameters are used, otherwise CI script will use the default values from the corresponding DTS file. Change-Id: Idcb45dc6ad5e3eaea18573aff1a01c9344404ab3 Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
19 lines
422 B
Plaintext
19 lines
422 B
Plaintext
/*
|
|
* Copyright (c) 2019-2020, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/* DynamIQ configuration: 1 cluster with up to 8 CPUs with 2 threads per each */
|
|
|
|
/* Set default value if not passed from platform's makefile */
|
|
#ifdef FVP_MAX_PE_PER_CPU
|
|
#define PE_PER_CPU FVP_MAX_PE_PER_CPU
|
|
#else
|
|
#define PE_PER_CPU 2
|
|
#endif
|
|
|
|
/dts-v1/;
|
|
|
|
#include "fvp-base-gicv3-psci-dynamiq-common.dtsi"
|