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/arch/arm/mach-rockchip/rockchip_smccc.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/u-boot/arch/arm/mach-rockchip/rockchip_smccc.c b/u-boot/arch/arm/mach-rockchip/rockchip_smccc.c
index 0cff596..cd02914 100644
--- a/u-boot/arch/arm/mach-rockchip/rockchip_smccc.c
+++ b/u-boot/arch/arm/mach-rockchip/rockchip_smccc.c
@@ -61,6 +61,15 @@
 	return res.a0;
 }
 
+int sip_smc_remotectl_config(unsigned long func, unsigned long data)
+{
+	struct arm_smccc_res res;
+
+	res = __invoke_sip_fn_smc(SIP_REMOTECTL_CFG, func, data, 0);
+
+	return res.a0;
+}
+
 int sip_smc_amp_cfg(unsigned long func, unsigned long arg0, unsigned long arg1,
 		    unsigned long arg2)
 {
@@ -142,3 +151,11 @@
 
 	return 0;
 }
+
+int sip_smc_mcu_config(unsigned long mcu_id, unsigned long func, unsigned long arg2)
+{
+	struct arm_smccc_res res;
+
+	res = __invoke_sip_fn_smc(SIP_MCU_CFG, mcu_id, func, arg2);
+	return res.a0;
+}

--
Gitblit v1.6.2