blob: 5918d58ce038fec085fcdf5edee6950f04ffca30 [file] [log] [blame]
Caesar Wangc1bf6462016-06-21 14:44:01 +08001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Caesar Wangc1bf6462016-06-21 14:44:01 +08005 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <common/debug.h>
8#include <common/runtime_svc.h>
9#include <lib/mmio.h>
10
Caesar Wangc1bf6462016-06-21 14:44:01 +080011#include <plat_sip_calls.h>
12#include <rockchip_sip_svc.h>
Caesar Wangc1bf6462016-06-21 14:44:01 +080013
Masahiro Yamada5ac9d962018-04-19 01:18:48 +090014uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid,
15 u_register_t x1,
16 u_register_t x2,
17 u_register_t x3,
18 u_register_t x4,
Caesar Wangc1bf6462016-06-21 14:44:01 +080019 void *cookie,
20 void *handle,
Masahiro Yamada5ac9d962018-04-19 01:18:48 +090021 u_register_t flags)
Caesar Wangc1bf6462016-06-21 14:44:01 +080022{
Jonathan Wrightff957ed2018-03-14 15:24:00 +000023 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid);
24 SMC_RET1(handle, SMC_UNK);
Caesar Wangc1bf6462016-06-21 14:44:01 +080025}