]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg/TZASC: Allow specifying subregions to be disabled
authorBhupesh Sharma <bhupesh.linux@gmail.com>
Fri, 20 Jan 2017 11:40:45 +0000 (17:10 +0530)
committerLeif Lindholm <leif.lindholm@linaro.org>
Thu, 26 Jan 2017 14:31:37 +0000 (14:31 +0000)
commit465663e9f128428323e6c6e4431dd15ac287a24c
tree6c3d31fd6232a6f7be01d56dfce400fb37982ee4
parentc1b0828b3ba8fa203033ede0c3329c0d5573719e
ArmPlatformPkg/TZASC: Allow specifying subregions to be disabled

ARM TZASC-380 IP provides a mechanism to split memory regions being
protected via it into eight equal-sized sub-regions. A bit-setting
allows the corresponding subregion to be disabled.

Several NXP/FSL SoCs support the TZASC-380 IP block and allow
the DDR connected via the TZASC to be partitioned into regions
having different security settings and also allow subregions
to be disabled.

This patch enables this support and can be used for SoCs which
support such a partition of DDR regions.

Details of the 'subregion_disable' register can be viewed here:
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0431c/CHDIGDCI.html

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@nxp.com>
[bhupesh.linux@gmail.com : Added gmail ID as NXP one is no longer valid]
Signed-off-by: Bhupesh Sharma <bhupesh.linux@gmail.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibCTA9x4/CTA9x4Sec.c
ArmPlatformPkg/Drivers/ArmTrustZone/ArmTrustZone.c
ArmPlatformPkg/Include/Drivers/ArmTrustzone.h