Tegra: bpmp: fix check to see if Atomics block is powered on
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 12 Jun 2017 23:45:23 +0000 (16:45 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 16 Jan 2019 18:20:12 +0000 (10:20 -0800)
This patch fixes the logic to check if Atomics hardware block is powered
on during boot

Reported by: Peter De Schrijver <pdeschrijver@nvidia.com>

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

index c78b91236855e6991f7d0c8fecd2488c5934791c..96e3667d95ec80d2f448f46ee1b2f9547d94657b 100644 (file)
@@ -136,7 +136,7 @@ int tegra_bpmp_init(void)
 
                /* check if the atomics block is out of reset */
                val = mmio_read_32(TEGRA_CAR_RESET_BASE + TEGRA_RST_DEV_CLR_V);
-               if ((val & CAR_ENABLE_ATOMICS) == 0) {
+               if ((val & CAR_ENABLE_ATOMICS) == CAR_ENABLE_ATOMICS) {
                        ERROR("Reset to the atomics block is asserted\n");
                }