xref: /rk3399_ARM-atf/plat/rockchip/rk3588/plat_sip_calls.c (revision e3ec6ff4b24c7daa4dfa82709c23a22829947160)
1 /*
2  * Copyright (c) 2024, Rockchip, Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <common/debug.h>
8 #include <common/runtime_svc.h>
9 
10 #include <plat_sip_calls.h>
11 #include <rockchip_sip_svc.h>
12 
13 uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid,
14 				    u_register_t x1,
15 				    u_register_t x2,
16 				    u_register_t x3,
17 				    u_register_t x4,
18 				    void *cookie,
19 				    void *handle,
20 				    u_register_t flags)
21 {
22 	switch (smc_fid) {
23 	default:
24 		ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid);
25 		SMC_RET1(handle, SMC_UNK);
26 	}
27 }
28