]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
morello: Add changes to fix build of Morello Platform
authorChandni Cherukuri <chandni.cherukuri@arm.com>
Thu, 1 Oct 2020 04:41:44 +0000 (10:11 +0530)
committerChandni Cherukuri <chandni.cherukuri@arm.com>
Fri, 2 Oct 2020 06:55:09 +0000 (12:25 +0530)
This patch makes changes required to get the morello
platform working with the tip of TF-A.

Change-Id: I095006615c9959bba49fcc75b52e1de7d7486309
Signed-off-by: Chandni Cherukuri <chandni.cherukuri@arm.com>
plat/arm/board/morello/include/platform_def.h
plat/arm/board/morello/morello_bl31_setup.c
plat/arm/board/morello/platform.mk

index 07c06a10cfff831ca57f5e15a781499f2251bff5..9ca75ffe791eaba44cde059ceb1bd6d99fe2246e 100644 (file)
@@ -93,4 +93,7 @@
 #define PLAT_ARM_GICC_BASE                     UL(0x2C000000)
 #define PLAT_ARM_GICR_BASE                     UL(0x300C0000)
 
+/* Number of SCMI channels on the platform */
+#define PLAT_ARM_SCMI_CHANNEL_COUNT            U(1)
+
 #endif /* PLATFORM_DEF_H */
index 43f5f7fc711cdf8c699ff280d0e9ca8a47c51934..5b91e87e1b9e80b670b6b8971d0dbbfba12bbb55 100644 (file)
@@ -48,7 +48,7 @@ static scmi_channel_plat_info_t morello_scmi_plat_info = {
        .ring_doorbell = &mhu_ring_doorbell
 };
 
-scmi_channel_plat_info_t *plat_css_get_scmi_info()
+scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
 {
        return &morello_scmi_plat_info;
 }
index f62cd67491b9ea1dbc70a5d7e9b920cc904d5272..2a23bc60fee9d1a00cdea1c05ad6196610164be5 100644 (file)
@@ -12,12 +12,15 @@ PLAT_INCLUDES               :=      -I${MORELLO_BASE}/include
 
 MORELLO_CPU_SOURCES    :=      lib/cpus/aarch64/rainier.S
 
-MORELLO_GIC_SOURCES    :=      drivers/arm/gic/common/gic_common.c     \
-                               drivers/arm/gic/v3/gicv3_main.c         \
-                               drivers/arm/gic/v3/gicv3_helpers.c      \
+# GIC-600 configuration
+GICV3_SUPPORT_GIC600   :=      1
+
+# Include GICv3 driver files
+include drivers/arm/gic/v3/gicv3.mk
+
+MORELLO_GIC_SOURCES    :=      ${GICV3_SOURCES}                        \
                                plat/common/plat_gicv3.c                \
                                plat/arm/common/arm_gicv3.c             \
-                               drivers/arm/gic/v3/gic600.c
 
 PLAT_BL_COMMON_SOURCES :=      ${MORELLO_BASE}/morello_plat.c          \
                                ${MORELLO_BASE}/aarch64/morello_helper.S