2018-04-10 01:48:58 +01:00
|
|
|
/*
|
2018-06-07 01:26:10 +01:00
|
|
|
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
2018-04-10 01:48:58 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arch.h>
|
|
|
|
#include <arch_helpers.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <common/bl_common.h>
|
|
|
|
#include <lib/el3_runtime/context_mgmt.h>
|
|
|
|
#include <common/debug.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <mce.h>
|
|
|
|
#include <memctrl.h>
|
|
|
|
#include <common/runtime_svc.h>
|
|
|
|
#include <tegra_private.h>
|
2017-05-26 00:27:42 +01:00
|
|
|
#include <tegra_platform.h>
|
|
|
|
#include <stdbool.h>
|
2018-04-10 01:48:58 +01:00
|
|
|
|
|
|
|
/*******************************************************************************
|
2017-11-10 19:04:42 +00:00
|
|
|
* Tegra194 SiP SMCs
|
2018-04-10 01:48:58 +01:00
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/*******************************************************************************
|
2017-11-10 19:04:42 +00:00
|
|
|
* This function is responsible for handling all T194 SiP calls
|
2018-04-10 01:48:58 +01:00
|
|
|
******************************************************************************/
|
2017-09-20 10:44:43 +01:00
|
|
|
int32_t plat_sip_handler(uint32_t smc_fid,
|
2018-04-10 01:48:58 +01:00
|
|
|
uint64_t x1,
|
|
|
|
uint64_t x2,
|
|
|
|
uint64_t x3,
|
|
|
|
uint64_t x4,
|
2017-04-29 02:15:09 +01:00
|
|
|
const void *cookie,
|
2018-04-10 01:48:58 +01:00
|
|
|
void *handle,
|
|
|
|
uint64_t flags)
|
|
|
|
{
|
2017-10-19 20:02:17 +01:00
|
|
|
int32_t ret = -ENOTSUP;
|
2017-09-20 10:44:43 +01:00
|
|
|
|
2018-06-07 01:26:10 +01:00
|
|
|
(void)smc_fid;
|
2017-10-19 20:02:17 +01:00
|
|
|
(void)x1;
|
2017-09-20 10:44:43 +01:00
|
|
|
(void)x4;
|
|
|
|
(void)cookie;
|
|
|
|
(void)flags;
|
2018-04-10 01:48:58 +01:00
|
|
|
|
2017-09-20 10:44:43 +01:00
|
|
|
return ret;
|
2018-04-10 01:48:58 +01:00
|
|
|
}
|