From ceae374357b85b4953f8462512412e2f4f1c3d76 Mon Sep 17 00:00:00 2001 From: Biwen Li Date: Mon, 8 Mar 2021 11:42:11 +0800 Subject: [PATCH] refactor(layerscape): refine comparison of inerconnection Refine the code to be compatible with new CCN504 which is used by ls2088a. Signed-off-by: Biwen Li Signed-off-by: Jiafei Pan Change-Id: I2e2b3bbb9392862b04bf8a89dfb9575bf4be974a --- plat/nxp/common/plat_make_helper/soc_common_def.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plat/nxp/common/plat_make_helper/soc_common_def.mk b/plat/nxp/common/plat_make_helper/soc_common_def.mk index 22cd39aef..52f2867b1 100644 --- a/plat/nxp/common/plat_make_helper/soc_common_def.mk +++ b/plat/nxp/common/plat_make_helper/soc_common_def.mk @@ -1,4 +1,4 @@ -# Copyright 2020-2021 NXP +# Copyright 2020-2022 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -11,14 +11,12 @@ $(eval CACHE_WRITEBACK_GRANULE=$(shell echo $$((1 << $(CACHE_LINE))))) $(eval $(call add_define_val,CACHE_WRITEBACK_GRANULE,$(CACHE_WRITEBACK_GRANULE))) endif -ifeq (${INTERCONNECT}, "CCI400") +ifneq (${INTERCONNECT},) $(eval $(call add_define,NXP_HAS_${INTERCONNECT})) +ifeq (${INTERCONNECT}, CCI400) ICNNCT_ID := 0x420 $(eval $(call add_define,ICNNCT_ID)) endif - -ifeq (${INTERCONNECT}, "CCN508") -$(eval $(call add_define,NXP_HAS_CCN508)) endif ifneq (${CHASSIS},)