Tegra: fix the NS DRAM address calculation logic
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 25 Jan 2017 21:35:27 +0000 (13:35 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 1 May 2017 22:33:44 +0000 (15:33 -0700)
commit14a1c0edf06bfe832ab7ca2d07bcc0547ddf40d5
treecc3cafb7acb0ec1dbfb0659ce0efafb5855d6b33
parent9d42d23a2cb1394d0c9cf396dda7a362908da020
Tegra: fix the NS DRAM address calculation logic

This patch fixes the logic used to calculate the end of NS memory
aperture. The functions allows zero sized NS apertures as that is
a valid requirement for some use cases. e.g. VPR resize.

Change-Id: Ie966e0ea2f9c6888d21c38e734003704094b3720
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/tegra_bl31_setup.c