Caesar Wang | c1bf646 | 2016-06-21 14:44:01 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Caesar Wang | c1bf646 | 2016-06-21 14:44:01 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <debug.h> |
| 8 | #include <mmio.h> |
| 9 | #include <plat_sip_calls.h> |
| 10 | #include <rockchip_sip_svc.h> |
| 11 | #include <runtime_svc.h> |
| 12 | |
Masahiro Yamada | 5ac9d96 | 2018-04-19 01:18:48 +0900 | [diff] [blame] | 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, |
Caesar Wang | c1bf646 | 2016-06-21 14:44:01 +0800 | [diff] [blame] | 18 | void *cookie, |
| 19 | void *handle, |
Masahiro Yamada | 5ac9d96 | 2018-04-19 01:18:48 +0900 | [diff] [blame] | 20 | u_register_t flags) |
Caesar Wang | c1bf646 | 2016-06-21 14:44:01 +0800 | [diff] [blame] | 21 | { |
Jonathan Wright | ff957ed | 2018-03-14 15:24:00 +0000 | [diff] [blame] | 22 | ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); |
| 23 | SMC_RET1(handle, SMC_UNK); |
Caesar Wang | c1bf646 | 2016-06-21 14:44:01 +0800 | [diff] [blame] | 24 | } |