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
388c1fa2
Commit
388c1fa2
authored
Feb 27, 2020
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
Feb 27, 2020
Browse files
Merge "intel: Update RSU driver return code" into integration
parents
1f22a8ba
960896eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/intel/soc/common/include/socfpga_sip_svc.h
View file @
388c1fa2
...
...
@@ -10,9 +10,11 @@
/* SiP status response */
#define INTEL_SIP_SMC_STATUS_OK 0
#define INTEL_SIP_SMC_STATUS_ERROR 0x4
#define INTEL_SIP_SMC_STATUS_BUSY 0x1
#define INTEL_SIP_SMC_STATUS_REJECTED 0x2
#define INTEL_SIP_SMC_STATUS_ERROR 0x4
#define INTEL_SIP_SMC_RSU_ERROR 0x7
/* SMC SiP service function identifier */
#define INTEL_SIP_SMC_FPGA_CONFIG_START 0xC2000001
...
...
plat/intel/soc/common/socfpga_sip_svc.c
View file @
388c1fa2
...
...
@@ -374,7 +374,7 @@ uint64_t intel_rsu_update_address;
static
uint32_t
intel_rsu_status
(
uint64_t
*
respbuf
,
uint32_t
respbuf_sz
)
{
if
(
mailbox_rsu_status
((
uint32_t
*
)
respbuf
,
respbuf_sz
)
<
0
)
return
INTEL_SIP_SMC_
STATUS
_ERROR
;
return
INTEL_SIP_SMC_
RSU
_ERROR
;
return
INTEL_SIP_SMC_STATUS_OK
;
}
...
...
@@ -388,7 +388,7 @@ static uint32_t intel_rsu_update(uint64_t update_address)
static
uint32_t
intel_rsu_notify
(
uint64_t
execution_stage
)
{
if
(
mailbox_hps_stage_notify
(
execution_stage
)
<
0
)
return
INTEL_SIP_SMC_
STATUS
_ERROR
;
return
INTEL_SIP_SMC_
RSU
_ERROR
;
return
INTEL_SIP_SMC_STATUS_OK
;
}
...
...
@@ -397,7 +397,7 @@ static uint32_t intel_rsu_retry_counter(uint32_t *respbuf, uint32_t respbuf_sz,
uint32_t
*
ret_stat
)
{
if
(
mailbox_rsu_status
((
uint32_t
*
)
respbuf
,
respbuf_sz
)
<
0
)
return
INTEL_SIP_SMC_
STATUS
_ERROR
;
return
INTEL_SIP_SMC_
RSU
_ERROR
;
*
ret_stat
=
respbuf
[
8
];
return
INTEL_SIP_SMC_STATUS_OK
;
...
...
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