From 78edaac4a665a669bd7a0f8e4025f9618d1fdeee Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Mon, 12 Jun 2017 16:45:23 -0700 Subject: [PATCH] Tegra: bpmp: fix check to see if Atomics block is powered on This patch fixes the logic to check if Atomics hardware block is powered on during boot Reported by: Peter De Schrijver Change-Id: I4a6521bcee37225d1402321151c48fa631776b8a Signed-off-by: Varun Wadekar --- plat/nvidia/tegra/common/drivers/bpmp/bpmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/nvidia/tegra/common/drivers/bpmp/bpmp.c b/plat/nvidia/tegra/common/drivers/bpmp/bpmp.c index c78b91236..96e3667d9 100644 --- a/plat/nvidia/tegra/common/drivers/bpmp/bpmp.c +++ b/plat/nvidia/tegra/common/drivers/bpmp/bpmp.c @@ -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"); }