mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
dtsi: Update the nv-counter node in the device tree
Created a header file defining the id of the various nv-counters used in the system. Also, updated the device tree to add 'id' property for the trusted and non-trusted nv-counters. Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: Ia41a557f7e56ad4ed536aee11c7a59e078ae07c0
This commit is contained in:
parent
e87c823102
commit
699d8a1265
2 changed files with 19 additions and 8 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <tools_share/tbbr_oid.h>
|
||||
#include <common/tbbr/tbbr_img_def.h>
|
||||
#include <common/nv_cntr_ids.h>
|
||||
|
||||
cot {
|
||||
manifests {
|
||||
|
@ -301,18 +302,19 @@ cot {
|
|||
};
|
||||
};
|
||||
|
||||
non-volatile-counters {
|
||||
non_volatile_counters: non_volatile_counters {
|
||||
compatible = "arm, non-volatile-counter";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
counters {
|
||||
trusted_nv_counter: trusted_nv_counter {
|
||||
id = <TRUSTED_NV_CTR_ID>;
|
||||
oid = TRUSTED_FW_NVCOUNTER_OID;
|
||||
};
|
||||
|
||||
non_trusted_nv_counter: non_trusted_nv_counter {
|
||||
id = <NON_TRUSTED_NV_CTR_ID>;
|
||||
oid = NON_TRUSTED_FW_NVCOUNTER_OID;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
9
include/common/nv_cntr_ids.h
Normal file
9
include/common/nv_cntr_ids.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#define TRUSTED_NV_CTR_ID U(0)
|
||||
#define NON_TRUSTED_NV_CTR_ID U(1)
|
||||
#define MAX_NV_CTR_IDS U(2)
|
Loading…
Add table
Reference in a new issue