mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
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: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: I4cbc69c7b9307461de87b7c7bf200dd9b810e485
This commit is contained in:
parent
ee91cd2ed3
commit
53adebad8b
8 changed files with 21 additions and 6 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <drivers/arm/gic_common.h>
|
||||
#include <lib/utils_def.h>
|
||||
#include <lib/xlat_tables/xlat_tables_defs.h>
|
||||
#include <plat/arm/common/smccc_def.h>
|
||||
#include <plat/common/common_def.h>
|
||||
|
||||
/******************************************************************************
|
||||
|
|
|
@ -148,11 +148,6 @@ void arm_setup_romlib(void);
|
|||
#define ARM_ROTPK_DEVEL_RSA_ID 2
|
||||
#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 */
|
||||
int arm_io_setup(void);
|
||||
|
|
15
include/plat/arm/common/smccc_def.h
Normal file
15
include/plat/arm/common/smccc_def.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* 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 @@
|
|||
#include <lib/utils_def.h>
|
||||
#include <lib/xlat_tables/xlat_tables_defs.h>
|
||||
#include <plat/arm/board/common/v2m_def.h>
|
||||
#include <plat/arm/common/smccc_def.h>
|
||||
#include <plat/common/common_def.h>
|
||||
|
||||
/* Memory location options for TSP */
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
|
||||
#include <lib/utils_def.h>
|
||||
#include <lib/xlat_tables/xlat_tables_defs.h>
|
||||
|
||||
#include <plat/arm/board/common/v2m_def.h>
|
||||
#include <plat/arm/common/arm_spm_def.h>
|
||||
#include <plat/arm/common/smccc_def.h>
|
||||
#include <plat/common/common_def.h>
|
||||
|
||||
/* PL011 UART related constants */
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <lib/utils_def.h>
|
||||
#include <lib/xlat_tables/xlat_tables_defs.h>
|
||||
#include <plat/arm/board/common/v2m_def.h>
|
||||
#include <plat/arm/common/smccc_def.h>
|
||||
#include <plat/common/common_def.h>
|
||||
|
||||
#include "../fvp_ve_def.h"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#ifndef VERSAL_DEF_H
|
||||
#define VERSAL_DEF_H
|
||||
|
||||
#include <plat/arm/common/smccc_def.h>
|
||||
#include <plat/common/common_def.h>
|
||||
|
||||
/* List all consoles */
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#ifndef ZYNQMP_DEF_H
|
||||
#define ZYNQMP_DEF_H
|
||||
|
||||
#include <plat/arm/common/smccc_def.h>
|
||||
#include <plat/common/common_def.h>
|
||||
|
||||
#define ZYNQMP_CONSOLE_ID_cadence 1
|
||||
|
|
Loading…
Add table
Reference in a new issue