plat/arm: allow RESET_TO_BL31 for CSS-based platforms
authorDeepak Pandey <Deepak.Pandey@arm.com>
Fri, 25 May 2018 07:13:30 +0000 (12:43 +0530)
committerDeepak Pandey <Deepak.Pandey@arm.com>
Wed, 10 Oct 2018 08:15:10 +0000 (13:45 +0530)
This lets any future CSS platforms to use RESET_TO_BL31 flag.

Change-Id: I32a90fce43cb0c6f4d33589653a0fd6a7ecc9577
Signed-off-by: Deepak Pandey <Deepak.Pandey@arm.com>
plat/arm/board/juno/platform.mk
plat/arm/css/common/css_common.mk
plat/arm/css/sgi/sgi-common.mk
plat/arm/css/sgm/sgm-common.mk

index 90fa938a3991928f2af36b1bdb70994ca274731e..e6c44bb4f76f83b4eafc2ec809d9ff82b334bf80 100644 (file)
@@ -90,6 +90,11 @@ endif
 
 endif
 
+ifneq (${RESET_TO_BL31},0)
+  $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
+  Please set RESET_TO_BL31 to 0.")
+endif
+
 # Errata workarounds for Cortex-A53:
 ERRATA_A53_826319              :=      1
 ERRATA_A53_835769              :=      1
index 984c1da04804e1eb3ffd2932d06acd98a537af1a..ca1edab1754ca3cd72d56a34abf5ad43a6862c6c 100644 (file)
@@ -39,11 +39,6 @@ BL31_SOURCES         +=      plat/arm/css/drivers/scp/css_pm_scmi.c          \
                                plat/arm/css/drivers/mhu/css_mhu_doorbell.c
 endif
 
-ifneq (${RESET_TO_BL31},0)
-  $(error "Using BL31 as the reset vector is not supported on CSS platforms. \
-  Please set RESET_TO_BL31 to 0.")
-endif
-
 # Process CSS_LOAD_SCP_IMAGES flag
 $(eval $(call assert_boolean,CSS_LOAD_SCP_IMAGES))
 $(eval $(call add_define,CSS_LOAD_SCP_IMAGES))
index 28f97b1f19b9b81148e18ff6306c80cb01be8846..24f03dd4b0edc2b3b8bf1eb9409d77481a2894bf 100644 (file)
@@ -67,6 +67,11 @@ HW_CONFIG            :=      ${BUILD_PLAT}/fdts/${PLAT}.dtb
 # Add the HW_CONFIG to FIP and specify the same to certtool
 $(eval $(call TOOL_ADD_PAYLOAD,${HW_CONFIG},--hw-config))
 
+ifneq (${RESET_TO_BL31},0)
+  $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
+  Please set RESET_TO_BL31 to 0.")
+endif
+
 $(eval $(call add_define,SGI_PLAT))
 
 override CSS_LOAD_SCP_IMAGES   :=      0
index b10e14cb16b7e13a8adb07cfb93959da339c4135..3eb484038c6c33bfb98004016a44b504990f3cff 100644 (file)
@@ -45,6 +45,11 @@ BL31_SOURCES         +=      $(SGM_CPU_SOURCES)                      \
                                ${CSS_SGM_BASE}/sgm_bl31_setup.c        \
                                ${CSS_SGM_BASE}/sgm_plat_config.c
 
+ifneq (${RESET_TO_BL31},0)
+  $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
+  Please set RESET_TO_BL31 to 0.")
+endif
+
 # sgm uses CCI-500 as Cache Coherent Interconnect
 ARM_CCI_PRODUCT_ID     :=      500