]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
soc: rockchip: add header for suspend mode SIP interface
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 5 Feb 2025 06:15:51 +0000 (14:15 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 13 Feb 2025 13:47:48 +0000 (14:47 +0100)
Add ROCKCHIP_SIP_SUSPEND_MODE to pass down parameters to Trusted Firmware
in order to decide suspend mode. Currently only add ROCKCHIP_SLEEP_PD_CONFIG
which teaches firmware to power down controllers or not.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/1738736156-119203-3-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
include/soc/rockchip/rockchip_sip.h

index c46a9ae2a2abb656a08fc09ed83388bfd783df59..501ad1fedb20175b82dd5f176638f38eff9aa588 100644 (file)
@@ -6,6 +6,9 @@
 #ifndef __SOC_ROCKCHIP_SIP_H
 #define __SOC_ROCKCHIP_SIP_H
 
+#define ROCKCHIP_SIP_SUSPEND_MODE              0x82000003
+#define ROCKCHIP_SLEEP_PD_CONFIG               0xff
+
 #define ROCKCHIP_SIP_DRAM_FREQ                 0x82000008
 #define ROCKCHIP_SIP_CONFIG_DRAM_INIT          0x00
 #define ROCKCHIP_SIP_CONFIG_DRAM_SET_RATE      0x01