rockchip: px30: cleanup securing of ddr regions
So far the px30-related ddr security was loading data for regions to secure
from a pre-specified memory location and also setting region0 to secure
the first megabyte of memory in hard-coded setting (top=0, end=0, meaning
1MB).

To make things more explicit and easier to read add a function doing
the settings for specified memory areas, like other socs have and also
add an assert to make sure any descriptor read from memory does not
overlap the TZRAM security in region0 and TEE security in region1.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Change-Id: I78441875112bf66a62fde5f1789f4e52a78ef95f
1 parent d2483af commit f55ef85ebfd61d708f6c77465edf3f8d059ca93d
@Heiko Stuebner Heiko Stuebner authored on 11 Oct 2019
Showing 2 changed files
View
plat/rockchip/px30/drivers/secure/secure.c
View
plat/rockchip/px30/px30_def.h