• Heiko Stuebner's avatar
    rockchip: really use base+size for secure ddr regions · 7f0b2e78
    Heiko Stuebner authored
    
    
    The calls to secure ddr regions on rk3288 and rk3399 use parameters of
    base and size - as it custom for specifying memory regions, but the
    functions themself expect start and endpoints of the area.
    
    This only works by chance for the TZRAM, as it starts a 0x0 and therefore
    its end location is the same as its size.
    
    To not fall into a trap later on adapt the functions to really take
    base+size parameters.
    Signed-off-by: default avatarHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
    Change-Id: Idb9fab38aa081f3335a4eca971e7b7f6757fbbab
    7f0b2e78
secure.c 5.17 KB