]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
plat/arm/sgi: move bl31_platform_setup to board file
authorVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
Mon, 23 Sep 2019 14:02:32 +0000 (19:32 +0530)
committerVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
Fri, 7 Feb 2020 13:54:17 +0000 (19:24 +0530)
For SGI-575 and RD platforms, move bl31_platform_setup handler to
individual board files to allow the platforms to perform board specific
bl31 setup.

Change-Id: Ia44bccc0a7f40a155b33909bcb438a0909b20d42
Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
plat/arm/board/rde1edge/rde1edge_plat.c
plat/arm/board/rdn1edge/rdn1edge_plat.c
plat/arm/board/sgi575/sgi575_plat.c
plat/arm/css/sgi/include/sgi_plat.h [new file with mode: 0644]
plat/arm/css/sgi/sgi_bl31_setup.c

index a1b8d621d63ba27fafd44f2ac9aa61a261a516cd..9eccbc43bdb1968e65bf6228d73cff7b1770c98b 100644 (file)
@@ -1,10 +1,11 @@
 /*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include <plat/common/platform.h>
+#include <sgi_plat.h>
 
 unsigned int plat_arm_sgi_get_platform_id(void)
 {
@@ -16,3 +17,8 @@ unsigned int plat_arm_sgi_get_config_id(void)
 {
        return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET);
 }
+
+void bl31_platform_setup(void)
+{
+       sgi_bl31_common_platform_setup();
+}
index 3b7e5ee4e4cfbf72d837a2a420b3a946d5f949ce..6f4c83c1d4fa084f4ed346a946932cc17e97bf1f 100644 (file)
@@ -1,10 +1,11 @@
 /*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include <plat/common/platform.h>
+#include <sgi_plat.h>
 
 unsigned int plat_arm_sgi_get_platform_id(void)
 {
@@ -16,3 +17,8 @@ unsigned int plat_arm_sgi_get_config_id(void)
 {
        return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET);
 }
+
+void bl31_platform_setup(void)
+{
+       sgi_bl31_common_platform_setup();
+}
index 0d3fd16ab626fc7ff97e61784307efbf6c63b905..ab4964a7d708c48051871c2e14bfc2d4b6dd7c8d 100644 (file)
@@ -1,11 +1,11 @@
 /*
- * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
 #include <plat/common/platform.h>
-
+#include <sgi_plat.h>
 #include <sgi_variant.h>
 
 unsigned int plat_arm_sgi_get_platform_id(void)
@@ -18,3 +18,8 @@ unsigned int plat_arm_sgi_get_config_id(void)
        return (mmio_read_32(SSC_VERSION) >> SSC_VERSION_CONFIG_SHIFT)
                        & SSC_VERSION_CONFIG_MASK;
 }
+
+void bl31_platform_setup(void)
+{
+       sgi_bl31_common_platform_setup();
+}
diff --git a/plat/arm/css/sgi/include/sgi_plat.h b/plat/arm/css/sgi/include/sgi_plat.h
new file mode 100644 (file)
index 0000000..a5fbded
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef SGI_PLAT_H
+#define SGI_PLAT_H
+
+/* BL31 platform setup common to all SGI based platforms */
+void sgi_bl31_common_platform_setup(void);
+
+#endif /* SGI_PLAT_H */
index ba050d5f1ced9eb909d9203cf8492b4d903ecbcf..a2caf7c418bfdb5e00bbb935f79fb8389798e705 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -55,7 +55,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
        arm_bl31_early_platform_setup((void *)arg0, arg1, arg2, (void *)arg3);
 }
 
-void bl31_platform_setup(void)
+void sgi_bl31_common_platform_setup(void)
 {
        arm_bl31_platform_setup();