[U-Boot] [PATCH v2 10/12] jetson-tk1: Add PSCI configuration options and reserve secure code

Stephen Warren
2015-02-17T21:05:42Z

On 02/16/2015 05:54 AM, Jan Kiszka wrote:
> The secure world code is relocated to the MB just below the top of 4G, we
> reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is
> not protected in h/w. See next patch.

> diff --git a/include/configs/jetson-tk1.h b/include/configs/jetson-tk1.h

> +#define CONFIG_ARMV7_PSCI 1
> +/* Reserve top 1M for secure RAM */
> +#define CONFIG_ARMV7_SECURE_BASE 0xfff00000

Can that not be dynamic? What if the system only has 1GB RAM not 2GB.
It's true that all shipped/public versions of this board do have 2GB
AFAIK, but we have had internal versions with different amounts of RAM,
and I don't think there's anything else in Tegra U-Boots that hard-codes
RAM sizes.

> +#define CONFIG_ARMV7_SECURE_RESERVE_SIZE 0x00100000