2016-06-21 07:44:01 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-06-21 07:44:01 +01:00
|
|
|
*/
|
|
|
|
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <common/debug.h>
|
|
|
|
#include <common/runtime_svc.h>
|
|
|
|
#include <lib/mmio.h>
|
|
|
|
|
2016-06-21 07:44:01 +01:00
|
|
|
#include <plat_sip_calls.h>
|
|
|
|
#include <rockchip_sip_svc.h>
|
|
|
|
|
2018-04-18 17:18:48 +01:00
|
|
|
uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid,
|
|
|
|
u_register_t x1,
|
|
|
|
u_register_t x2,
|
|
|
|
u_register_t x3,
|
|
|
|
u_register_t x4,
|
2016-06-21 07:44:01 +01:00
|
|
|
void *cookie,
|
|
|
|
void *handle,
|
2018-04-18 17:18:48 +01:00
|
|
|
u_register_t flags)
|
2016-06-21 07:44:01 +01:00
|
|
|
{
|
2018-03-14 15:24:00 +00:00
|
|
|
ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid);
|
|
|
|
SMC_RET1(handle, SMC_UNK);
|
2016-06-21 07:44:01 +01:00
|
|
|
}
|