Browse Source

fix(tc): tc2 bl1 start address shifted by one page

Change [1] is specific to TC2 model and breaks former TC0/TC1 test
configs.
BL1 start address is 0x0 on TC0/TC1 and 0x1000 from TC2 onwards.
Fix by adding conditional defines depending on TARGET_PLATFORM build
flag.

[1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/15917

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: I51f77e6a61ca8eaa6871c19cabe9deb1288f5a9d
pull/1986/head
Olivier Deprez 2 years ago
parent
commit
8597a8cbc2
  1. 8
      plat/arm/board/tc/include/platform_def.h
  2. 4
      plat/arm/board/tc/platform.mk

8
plat/arm/board/tc/include/platform_def.h

@ -177,8 +177,14 @@
#define PLAT_ARM_NSTIMER_FRAME_ID 0
#if (TARGET_PLATFORM >= 2)
#define PLAT_ARM_TRUSTED_ROM_BASE 0x1000
#define PLAT_ARM_TRUSTED_ROM_SIZE 0x00080000 /* 512KB */
#else
#define PLAT_ARM_TRUSTED_ROM_BASE 0x0
#endif
/* PLAT_ARM_TRUSTED_ROM_SIZE 512KB minus ROM base. */
#define PLAT_ARM_TRUSTED_ROM_SIZE (0x00080000 - PLAT_ARM_TRUSTED_ROM_BASE)
#define PLAT_ARM_NSRAM_BASE 0x06000000
#define PLAT_ARM_NSRAM_SIZE 0x00080000 /* 512KB */

4
plat/arm/board/tc/platform.mk

@ -1,4 +1,4 @@
# Copyright (c) 2021, Arm Limited. All rights reserved.
# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@ -9,6 +9,8 @@ ifeq ($(filter ${TARGET_PLATFORM}, 0 1),)
$(error TARGET_PLATFORM must be 0 or 1)
endif
$(eval $(call add_define,TARGET_PLATFORM))
CSS_LOAD_SCP_IMAGES := 1
CSS_USE_SCMI_SDS_DRIVER := 1

Loading…
Cancel
Save