Commit 60f995fd authored by Aditya Angadi's avatar Aditya Angadi
Browse files

plat/arm/sgi: refactor header file inclusions



Upcoming RD platforms have deviations in various definitions of
platform macros from that of the exisiting platforms. In preparation
for adding support for those upcoming RD platforms, refactor the
header file inclusion to allow newer platforms to use a different
set of platform macros.

Change-Id: Ic80283ddadafaa7f766f300652cb0d4e507efdb6
Signed-off-by: default avatarAditya Angadi <aditya.angadi@arm.com>
parent db2aeddc
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT U(16) #define PLAT_ARM_CLUSTER_COUNT U(16)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER U(1) #define CSS_SGI_MAX_CPUS_PER_CLUSTER U(1)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define PLATFORM_DEF_H #define PLATFORM_DEF_H
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT U(4) #define PLAT_ARM_CLUSTER_COUNT U(4)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER U(1) #define CSS_SGI_MAX_CPUS_PER_CLUSTER U(1)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <drivers/arm/gic600_multichip.h> #include <drivers/arm/gic600_multichip.h>
#include <plat/arm/common/plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#include <sgi_plat.h> #include <sgi_plat.h>
#if defined(IMAGE_BL31) #if defined(IMAGE_BL31)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT U(2) #define PLAT_ARM_CLUSTER_COUNT U(2)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER U(8) #define CSS_SGI_MAX_CPUS_PER_CLUSTER U(8)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT U(2) #define PLAT_ARM_CLUSTER_COUNT U(2)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER U(4) #define CSS_SGI_MAX_CPUS_PER_CLUSTER U(4)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <drivers/arm/gic600_multichip.h> #include <drivers/arm/gic600_multichip.h>
#include <plat/arm/common/plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#include <sgi_plat.h> #include <sgi_plat.h>
#if defined(IMAGE_BL31) #if defined(IMAGE_BL31)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <sgi_base_platform_def.h> #include <sgi_soc_platform_def.h>
#define PLAT_ARM_CLUSTER_COUNT U(2) #define PLAT_ARM_CLUSTER_COUNT U(2)
#define CSS_SGI_MAX_CPUS_PER_CLUSTER U(4) #define CSS_SGI_MAX_CPUS_PER_CLUSTER U(4)
......
...@@ -9,12 +9,9 @@ ...@@ -9,12 +9,9 @@
#include <lib/utils_def.h> #include <lib/utils_def.h>
#include <lib/xlat_tables/xlat_tables_defs.h> #include <lib/xlat_tables/xlat_tables_defs.h>
#include <plat/arm/board/common/board_css_def.h>
#include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/arm_def.h> #include <plat/arm/common/arm_def.h>
#include <plat/arm/common/arm_spm_def.h> #include <plat/arm/common/arm_spm_def.h>
#include <plat/arm/css/common/css_def.h> #include <plat/arm/css/common/css_def.h>
#include <plat/arm/soc/common/soc_css_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
#define PLATFORM_CORE_COUNT (CSS_SGI_CHIP_COUNT * \ #define PLATFORM_CORE_COUNT (CSS_SGI_CHIP_COUNT * \
......
/*
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef SGI_SOC_PLATFORM_DEF_H
#define SGI_SOC_PLATFORM_DEF_H
#include <sgi_base_platform_def.h>
#include <plat/arm/board/common/board_css_def.h>
#include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/soc/common/soc_css_def.h>
#endif /* SGI_SOC_PLATFORM_DEF_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment