Commit 53adebad authored by Manish V Badarkhe's avatar Manish V Badarkhe Committed by Manish V Badarkhe
Browse files

Create separate header for ARM specific SMCCC defines



Moved SMCCC defines from plat_arm.h to new <smccc_def.h> header
and include this header in all ARM platforms.
Signed-off-by: default avatarManish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I4cbc69c7b9307461de87b7c7bf200dd9b810e485
parent ee91cd2e
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <drivers/arm/gic_common.h> #include <drivers/arm/gic_common.h>
#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/common/smccc_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
/****************************************************************************** /******************************************************************************
......
...@@ -148,11 +148,6 @@ void arm_setup_romlib(void); ...@@ -148,11 +148,6 @@ void arm_setup_romlib(void);
#define ARM_ROTPK_DEVEL_RSA_ID 2 #define ARM_ROTPK_DEVEL_RSA_ID 2
#define ARM_ROTPK_DEVEL_ECDSA_ID 3 #define ARM_ROTPK_DEVEL_ECDSA_ID 3
/* Defines used to retrieve ARM SOC revision */
#define ARM_SOC_CONTINUATION_CODE U(0x4)
#define ARM_SOC_IDENTIFICATION_CODE U(0x3B)
#define ARM_SOC_CONTINUATION_SHIFT U(24)
#define ARM_SOC_IDENTIFICATION_SHIFT U(16)
/* IO storage utility functions */ /* IO storage utility functions */
int arm_io_setup(void); int arm_io_setup(void);
......
/*
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef SMCCC_DEF_H
#define SMCCC_DEF_H
/* Defines used to retrieve ARM SOC revision */
#define ARM_SOC_CONTINUATION_CODE U(0x4)
#define ARM_SOC_IDENTIFICATION_CODE U(0x3B)
#define ARM_SOC_CONTINUATION_SHIFT U(24)
#define ARM_SOC_IDENTIFICATION_SHIFT U(16)
#endif /* SMCCC_DEF_H */
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#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/v2m_def.h> #include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/smccc_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
/* Memory location options for TSP */ /* Memory location options for TSP */
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +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/v2m_def.h> #include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/arm_spm_def.h> #include <plat/arm/common/arm_spm_def.h>
#include <plat/arm/common/smccc_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
/* PL011 UART related constants */ /* PL011 UART related constants */
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#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/v2m_def.h> #include <plat/arm/board/common/v2m_def.h>
#include <plat/arm/common/smccc_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
#include "../fvp_ve_def.h" #include "../fvp_ve_def.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#ifndef VERSAL_DEF_H #ifndef VERSAL_DEF_H
#define VERSAL_DEF_H #define VERSAL_DEF_H
#include <plat/arm/common/smccc_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
/* List all consoles */ /* List all consoles */
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#ifndef ZYNQMP_DEF_H #ifndef ZYNQMP_DEF_H
#define ZYNQMP_DEF_H #define ZYNQMP_DEF_H
#include <plat/arm/common/smccc_def.h>
#include <plat/common/common_def.h> #include <plat/common/common_def.h>
#define ZYNQMP_CONSOLE_ID_cadence 1 #define ZYNQMP_CONSOLE_ID_cadence 1
......
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