Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
6346dfce
Commit
6346dfce
authored
Jul 28, 2020
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jul 28, 2020
Browse files
Merge "plat/nvidia: tegra: Enable SMCCC_ARCH_SOC_ID feature" into integration
parents
25a76126
0a2126a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/nvidia/tegra/common/tegra_platform.c
View file @
6346dfce
/*
* Copyright (c) 2016-20
17
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2016-20
20
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
...
...
@@ -8,6 +8,8 @@
#include <arch_helpers.h>
#include <assert.h>
#include <lib/mmio.h>
#include <lib/smccc.h>
#include <services/arm_arch_svc.h>
#include <tegra_def.h>
#include <tegra_platform.h>
#include <tegra_private.h>
...
...
@@ -286,3 +288,21 @@ int32_t plat_get_soc_revision(void)
{
return
(
int32_t
)((
tegra_get_chipid_major
()
<<
8
)
|
tegra_get_chipid_minor
());
}
/*****************************************************************************
* plat_smccc_feature_available() - This function checks whether SMCCC feature
* is availabile for the platform or not.
* @fid: SMCCC function id
*
* Return SMC_ARCH_CALL_SUCCESS if SMCCC feature is available and
* SMC_ARCH_CALL_NOT_SUPPORTED otherwise.
*****************************************************************************/
int32_t
plat_smccc_feature_available
(
u_register_t
fid
)
{
switch
(
fid
)
{
case
SMCCC_ARCH_SOC_ID
:
return
SMC_ARCH_CALL_SUCCESS
;
default:
return
SMC_ARCH_CALL_NOT_SUPPORTED
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment