hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/linux/rockchip/rockchip_sip.h
....@@ -57,6 +57,7 @@
5757 #define SIP_WDT_CFG 0x82000026
5858 #define SIP_HDMIRX_CFG 0x82000027
5959 #define SIP_MCU_CFG 0x82000028
60
+#define SIP_PVTPLL_CFG 0x82000029
6061
6162 #define TRUSTED_OS_HDCPKEY_INIT 0xB7000003
6263
....@@ -226,6 +227,13 @@
226227 HDMIRX_INFO_NOTIFY = 2,
227228 };
228229
230
+/* SIP_PVTPLL_CFG child configs */
231
+enum {
232
+ PVTPLL_GET_INFO = 0,
233
+ PVTPLL_ADJUST_TABLE = 1,
234
+ PVTPLL_LOW_TEMP = 2,
235
+};
236
+
229237 struct pt_regs;
230238 typedef void (*sip_fiq_debugger_uart_irq_tf_cb_t)(struct pt_regs *_pt_regs, unsigned long cpu);
231239
....@@ -256,6 +264,9 @@
256264 struct dram_addrmap_info *sip_smc_get_dram_map(void);
257265 int sip_smc_amp_config(u32 sub_func_id, u32 arg1, u32 arg2, u32 arg3);
258266 struct arm_smccc_res sip_smc_get_amp_info(u32 sub_func_id, u32 arg1);
267
+struct arm_smccc_res sip_smc_get_pvtpll_info(u32 sub_func_id, u32 arg1);
268
+struct arm_smccc_res sip_smc_pvtpll_config(u32 sub_func_id, u32 arg1, u32 arg2,
269
+ u32 arg3, u32 arg4, u32 arg5, u32 arg6);
259270
260271 void __iomem *sip_hdcp_request_share_memory(int id);
261272 struct arm_smccc_res sip_hdcp_config(u32 arg0, u32 arg1, u32 arg2);
....@@ -365,6 +376,24 @@
365376 return tmp;
366377 }
367378
379
+static inline struct arm_smccc_res sip_smc_get_pvtpll_info(u32 sub_func_id,
380
+ u32 arg1)
381
+{
382
+ struct arm_smccc_res tmp = { .a0 = SIP_RET_NOT_SUPPORTED, };
383
+
384
+ return tmp;
385
+}
386
+
387
+static inline struct arm_smccc_res sip_smc_pvtpll_config(u32 sub_func_id,
388
+ u32 arg1, u32 arg2,
389
+ u32 arg3, u32 arg4,
390
+ u32 arg5, u32 arg6)
391
+{
392
+ struct arm_smccc_res tmp = { .a0 = SIP_RET_NOT_SUPPORTED, };
393
+
394
+ return tmp;
395
+}
396
+
368397 static inline void __iomem *sip_hdcp_request_share_memory(int id)
369398 {
370399 return NULL;