plat_sip_calls.c 1.14 KB
Newer Older
1
/*
2
 * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 *
 * 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>
18
19
#include <tegra_platform.h>
#include <stdbool.h>
20
21

/*******************************************************************************
22
 * Tegra194 SiP SMCs
23
24
25
 ******************************************************************************/

/*******************************************************************************
26
 * This function is responsible for handling all T194 SiP calls
27
 ******************************************************************************/
28
int32_t plat_sip_handler(uint32_t smc_fid,
29
30
31
32
		     uint64_t x1,
		     uint64_t x2,
		     uint64_t x3,
		     uint64_t x4,
33
		     const void *cookie,
34
35
36
		     void *handle,
		     uint64_t flags)
{
37
	int32_t ret = -ENOTSUP;
38

39
	(void)smc_fid;
40
	(void)x1;
41
42
43
	(void)x4;
	(void)cookie;
	(void)flags;
44

45
	return ret;
46
}