From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 20 Feb 2024 01:18:26 +0000
Subject: [PATCH] write in 30M
---
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