Tegra: memctrl_v2: fix logic to calculate TZRAM_ADDR_HI bits
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 26 Apr 2016 18:14:46 +0000 (11:14 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 27 Mar 2017 16:10:38 +0000 (09:10 -0700)
commite2b2603c55659998108c9242eb424ecfd56bd217
tree5ed4772c526fb934d5708d19ba9f4093d7e41c82
parent3d93f05a07cd0729d135da11d015f5f7a5fea853
Tegra: memctrl_v2: fix logic to calculate TZRAM_ADDR_HI bits

This patch fixes the logic to calculate the higher bits for TZRAM's base/end
addresses.

Fixes coverity error "31853: Wrong operator used (CONSTANT_EXPRESSION_RESULT)"

Change-Id: Iff62ef18cba59cd41ad63a5c71664872728356a8
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c