mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00

The Arm(R) Ethos(TM)-N NPU driver now supports configuring the SMMU streams that the NPU shall use and will therefore no longer delegate access to these registers to the non-secure world. In order for the driver to support this, the device tree parsing has been updated to support parsing the allocators used by the NPU and what SMMU stream that is associated with each allocator. To keep track of what NPU device each allocator is associated with, the resulting config from the device tree parsing will now group the NPU cores and allocators into their respective NPU device. The SMC API has been changed to allow the caller to specify what allocator the NPU shall be configured to use and the API version has been bumped to indicate this change. Signed-off-by: Mikael Olsson <mikael.olsson@arm.com> Change-Id: I6ac43819133138614e3f55a014e93466fe3d5277
38 lines
957 B
C
38 lines
957 B
C
/*
|
|
* Copyright (c) 2016-2019,2021-2022, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef ARM_SIP_SVC_H
|
|
#define ARM_SIP_SVC_H
|
|
|
|
#include <lib/utils_def.h>
|
|
|
|
/* SMC function IDs for SiP Service queries */
|
|
|
|
#define ARM_SIP_SVC_CALL_COUNT U(0x8200ff00)
|
|
#define ARM_SIP_SVC_UID U(0x8200ff01)
|
|
/* U(0x8200ff02) is reserved */
|
|
#define ARM_SIP_SVC_VERSION U(0x8200ff03)
|
|
|
|
/* PMF_SMC_GET_TIMESTAMP_32 0x82000010 */
|
|
/* PMF_SMC_GET_TIMESTAMP_64 0xC2000010 */
|
|
|
|
/* Function ID for requesting state switch of lower EL */
|
|
#define ARM_SIP_SVC_EXE_STATE_SWITCH U(0x82000020)
|
|
|
|
/* DEBUGFS_SMC_32 0x82000030U */
|
|
/* DEBUGFS_SMC_64 0xC2000030U */
|
|
|
|
/*
|
|
* Arm(R) Ethos(TM)-N NPU SiP SMC function IDs
|
|
* 0xC2000050-0xC200005F
|
|
* 0x82000050-0x8200005F
|
|
*/
|
|
|
|
/* ARM SiP Service Calls version numbers */
|
|
#define ARM_SIP_SVC_VERSION_MAJOR U(0x0)
|
|
#define ARM_SIP_SVC_VERSION_MINOR U(0x2)
|
|
|
|
#endif /* ARM_SIP_SVC_H */
|