Reserve some DDR DRAM for secure use on FVP platforms
authorJuan Castillo <juan.castillo@arm.com>
Fri, 16 May 2014 14:33:15 +0000 (15:33 +0100)
committerJuan Castillo <juan.castillo@arm.com>
Thu, 22 May 2014 16:27:28 +0000 (17:27 +0100)
commit364daf93208b7344b9618922004997f341ff1ca3
treedaa53d30dcb80ce6f3161154a18545bbabc1e722
parentdbad1bacba0a7adfd3c7c559f0fd0805087aeddd
Reserve some DDR DRAM for secure use on FVP platforms

TZC-400 is configured to set the last 16MB of DRAM1 as secure memory and
the rest of DRAM as non-secure. Non-secure software must not attempt to
access the 16MB secure area.

Device tree files (sources and binaries) have been updated to match this
configuration, removing that memory from the Linux physical memory map.

To use UEFI and Linux with this patch, the latest version of UEFI and
the updated device tree files are required. Check the user guide in the
documentation for more details.

Replaced magic numbers with #define for memory region definition in the
platform security initialization function.

Fixes ARM-software/tf-issues#149

Change-Id: Ia5d070244aae6c5288ea0e6c8e89d92859522bfe
17 files changed:
docs/user-guide.md
fdts/fvp-base-gicv2-psci.dtb
fdts/fvp-base-gicv2-psci.dts
fdts/fvp-base-gicv2legacy-psci.dtb
fdts/fvp-base-gicv2legacy-psci.dts
fdts/fvp-base-gicv3-psci.dtb
fdts/fvp-base-gicv3-psci.dts
fdts/fvp-foundation-gicv2-psci.dtb
fdts/fvp-foundation-gicv2-psci.dts
fdts/fvp-foundation-gicv2legacy-psci.dtb
fdts/fvp-foundation-gicv2legacy-psci.dts
fdts/fvp-foundation-gicv3-psci.dtb
fdts/fvp-foundation-gicv3-psci.dts
plat/fvp/aarch64/plat_common.c
plat/fvp/bl2_plat_setup.c
plat/fvp/plat_security.c
plat/fvp/platform.h