Juno: add basic support for dynamic config
authorLouis Mayencourt <louis.mayencourt@arm.com>
Mon, 29 Jul 2019 09:40:17 +0000 (10:40 +0100)
committerLouis Mayencourt <louis.mayencourt@arm.com>
Tue, 13 Aug 2019 10:50:42 +0000 (11:50 +0100)
Add the disable_auth dynamic parameter, that allows to disable the
authentication when TBBR is enabled. This parameter is for development
only.

Change-Id: Ic24ad16738517f7e07c4f506dcf69a1ae8df7d2d
Signed-off-by: Louis Mayencourt <louis.mayencourt@arm.com>
plat/arm/board/juno/fdts/juno_tb_fw_config.dts [new file with mode: 0644]
plat/arm/board/juno/platform.mk

diff --git a/plat/arm/board/juno/fdts/juno_tb_fw_config.dts b/plat/arm/board/juno/fdts/juno_tb_fw_config.dts
new file mode 100644 (file)
index 0000000..b16f5cc
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/dts-v1/;
+
+/ {
+       /* Platform Config */
+       compatible = "arm,tb_fw";
+       /* Disable authentication for development */
+       disable_auth = <0x0>;
+};
index ea7f8517219f70ee010d0798f8ad50ec7df7449a..bd6bae536dedab255e0604db342dd00c10891367 100644 (file)
@@ -150,8 +150,14 @@ else
     endif
 endif
 
+# Add the FDT_SOURCES and options for Dynamic Config
+FDT_SOURCES            +=      plat/arm/board/juno/fdts/${PLAT}_tb_fw_config.dts
+TB_FW_CONFIG           :=      ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
+
+# Add the TB_FW_CONFIG to FIP and specify the same to certtool
+$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
+
 include plat/arm/board/common/board_common.mk
 include plat/arm/common/arm_common.mk
 include plat/arm/soc/common/soc_css.mk
 include plat/arm/css/common/css_common.mk
-