Browse Source

plat/arm, dts: Update platform device tree for CoT

Included cot_descriptors.dtsi in platform device tree
(fvp_tb_fw_config.dts).

Also, updated the maximum size of tb_fw_config to 0x1800
in order to accomodate the device tree for CoT descriptors.

Follow up patch will parse the device tree for these CoT descriptors
and fill the CoT descriptor structures at runtime instead of using
static CoT descriptor structures in the code base.

Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I90122bc713f6842b82fb019b04caf42629b4f45a
pull/1979/head
Manish V Badarkhe 4 years ago
committed by Sandrine Bailleux
parent
commit
2a0ef943b6
  1. 9
      include/plat/arm/common/arm_def.h
  2. 2
      plat/arm/board/fvp/fdts/fvp_fw_config.dts
  3. 18
      plat/arm/board/fvp/fdts/fvp_tb_fw_config.dts

9
include/plat/arm/common/arm_def.h

@ -350,14 +350,15 @@
* and limit. Leave enough space of BL2 meminfo.
*/
#define ARM_FW_CONFIG_BASE (ARM_BL_RAM_BASE + sizeof(meminfo_t))
#define ARM_FW_CONFIG_LIMIT (ARM_BL_RAM_BASE + PAGE_SIZE)
#define ARM_FW_CONFIG_LIMIT ((ARM_BL_RAM_BASE + PAGE_SIZE) \
+ (PAGE_SIZE / 2U))
/*
* Boot parameters passed from BL2 to BL31/BL32 are stored here
*/
#define ARM_BL2_MEM_DESC_BASE ARM_FW_CONFIG_LIMIT
#define ARM_BL2_MEM_DESC_LIMIT (ARM_BL2_MEM_DESC_BASE + \
(PAGE_SIZE / 2U))
#define ARM_BL2_MEM_DESC_BASE (ARM_FW_CONFIG_LIMIT)
#define ARM_BL2_MEM_DESC_LIMIT (ARM_BL2_MEM_DESC_BASE \
+ (PAGE_SIZE / 2U))
/*
* Define limit of firmware configuration memory:

2
plat/arm/board/fvp/fdts/fvp_fw_config.dts

@ -14,7 +14,7 @@
tb_fw-config {
load-address = <0x0 0x4001300>;
max-size = <0x200>;
max-size = <0x1800>;
id = <TB_FW_CONFIG_ID>;
};

18
plat/arm/board/fvp/fdts/fvp_tb_fw_config.dts

@ -85,4 +85,22 @@
load-address = <0x7100000>;
};
};
#if COT_DESC_IN_DTB
#include "cot_descriptors.dtsi"
#endif
};
#if COT_DESC_IN_DTB
#include "../fvp_def.h"
&trusted_nv_counter {
reg = <TFW_NVCTR_BASE>;
};
&non_trusted_nv_counter {
reg = <NTFW_CTR_BASE>;
};
#endif

Loading…
Cancel
Save