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
c5a25e40
Commit
c5a25e40
authored
Jan 20, 2021
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jan 20, 2021
Browse files
Merge "plat: xilinx: versal: Remove code duplication" into integration
parents
6b2924bb
f621d5fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/xilinx/versal/pm_service/pm_api_sys.c
View file @
c5a25e40
...
...
@@ -832,6 +832,7 @@ enum pm_ret_status pm_feature_check(uint32_t api_id, unsigned int *version)
switch
(
api_id
)
{
case
PM_GET_CALLBACK_DATA
:
case
PM_GET_TRUSTZONE_VERSION
:
case
PM_LOAD_PDI
:
*
version
=
(
PM_API_BASE_VERSION
<<
16
);
return
PM_RET_SUCCESS
;
case
PM_GET_API_VERSION
:
...
...
@@ -857,11 +858,6 @@ enum pm_ret_status pm_feature_check(uint32_t api_id, unsigned int *version)
case
PM_PINCTRL_CONFIG_PARAM_GET
:
case
PM_PINCTRL_CONFIG_PARAM_SET
:
case
PM_IOCTL
:
*
version
=
(
PM_API_BASE_VERSION
<<
16
);
break
;
case
PM_QUERY_DATA
:
*
version
=
(
PM_API_QUERY_DATA_VERSION
<<
16
);
break
;
case
PM_CLOCK_ENABLE
:
case
PM_CLOCK_DISABLE
:
case
PM_CLOCK_GETSTATE
:
...
...
@@ -880,9 +876,9 @@ enum pm_ret_status pm_feature_check(uint32_t api_id, unsigned int *version)
case
PM_REGISTER_NOTIFIER
:
*
version
=
(
PM_API_BASE_VERSION
<<
16
);
break
;
case
PM_
LOAD_PDI
:
*
version
=
(
PM_API_
BASE
_VERSION
<<
16
);
re
turn
PM_RET_SUCCESS
;
case
PM_
QUERY_DATA
:
*
version
=
(
PM_API_
QUERY_DATA
_VERSION
<<
16
);
b
re
ak
;
default:
*
version
=
0U
;
return
PM_RET_ERROR_NOFEATURE
;
...
...
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