From ee930fffee469d076998274a2ca55e13dc1efb67 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 08:50:54 +0000
Subject: [PATCH] enable tun/tap/iptables

---
 u-boot/drivers/cpu/amp.its |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/u-boot/drivers/cpu/amp.its b/u-boot/drivers/cpu/amp.its
index 26ed969..e1d3ed0 100644
--- a/u-boot/drivers/cpu/amp.its
+++ b/u-boot/drivers/cpu/amp.its
@@ -1,20 +1,22 @@
 /*
  * Copyright (C) 2021 Fuzhou Rockchip Electronics Co., Ltd
+ *
  * SPDX-License-Identifier: GPL-2.0
  */
 
 /dts-v1/;
 / {
-	description = "FIT source file for rockchip AMP";
+	description = "Rockchip AMP FIT Image";
 	#address-cells = <1>;
 
 	images {
+		/* ARM cortex-A core */
 		amp1 {
 			description  = "bare-mental-core1";
 			data         = /incbin/("./amp1.bin");
-			type         = "firmware";
+			type         = "firmware";	// must be "firmware"
 			compression  = "none";
-			arch         = "arm";		// "arm64" or "arm"
+			arch         = "arm";		// "arm64" or "arm", the same as U-Boot state
 			cpu          = <0x100>;		// mpidr
 			thumb        = <0>;		// 0: arm or thumb2; 1: thumb
 			hyp          = <0>;		// 0: el1/svc; 1: el2/hyp
@@ -56,6 +58,20 @@
 				algo = "sha256";
 			};
 		};
+
+		/* Other core */
+		amp4 {
+			description  = "standalone-mcu1";
+			data         = /incbin/("./mcu1.bin");
+			type         = "standalone";	// must be "standalone"
+			compression  = "none";
+			arch         = "arm";		// "arm64" or "arm", the same as U-Boot state
+			load         = <0x06800000>;
+			udelay       = <1000000>;
+			hash {
+				algo = "sha256";
+			};
+		};
 	};
 
 	configurations {
@@ -63,7 +79,7 @@
 		conf {
 			description = "Rockchip AMP images";
 			rollback-index = <0x0>;
-			loadables = "amp1", "amp2", "amp3";
+			loadables = "amp1", "amp2", "amp3", "amp4";
 
 			signature {
 				algo = "sha256,rsa2048";

--
Gitblit v1.6.2