From 645e752c5a84baeb21015cdc85fc05b7d16312c8 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Sat, 11 May 2024 01:13:52 +0000 Subject: [PATCH] disable i2c1 --- 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