summaryrefslogtreecommitdiff
path: root/board/pegatron/chagall/chagall.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/pegatron/chagall/chagall.c')
-rw-r--r--board/pegatron/chagall/chagall.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/board/pegatron/chagall/chagall.c b/board/pegatron/chagall/chagall.c
new file mode 100644
index 00000000000..1412c4f9b60
--- /dev/null
+++ b/board/pegatron/chagall/chagall.c
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * (C) Copyright 2010-2013
+ * NVIDIA Corporation <www.nvidia.com>
+ *
+ * (C) Copyright 2021
+ * Svyatoslav Ryhel <clamor95@gmail.com>
+ */
+
+/* Chagall derives from Cardhu board */
+
+#include <fdt_support.h>
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, struct bd_info *bd)
+{
+ /* Remove TrustZone nodes */
+ fdt_del_node_and_alias(blob, "/firmware");
+ fdt_del_node_and_alias(blob, "/reserved-memory/trustzone@bfe00000");
+
+ return 0;
+}
+#endif