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