Commit d191eb24 authored by Abdul Halim, Muhammad Hadi Asyrafi's avatar Abdul Halim, Muhammad Hadi Asyrafi
Browse files

intel: common: Remove urgent from mailbox async



Remove urgent argument from asynchrounous mailbox command as any urgent
command should always be synchronous
Signed-off-by: default avatarAbdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: Iaa64335db24df3a562470d0d1c3d6a3a71493319
parent f8e6a09c
...@@ -141,7 +141,7 @@ void mailbox_set_qspi_direct(void); ...@@ -141,7 +141,7 @@ void mailbox_set_qspi_direct(void);
int mailbox_send_cmd(int job_id, unsigned int cmd, uint32_t *args, int mailbox_send_cmd(int job_id, unsigned int cmd, uint32_t *args,
int len, int urgent, uint32_t *response, int resp_len); int len, int urgent, uint32_t *response, int resp_len);
int mailbox_send_cmd_async(int job_id, unsigned int cmd, uint32_t *args, int mailbox_send_cmd_async(int job_id, unsigned int cmd, uint32_t *args,
int len, int urgent, int indirect); int len, int indirect);
int mailbox_read_response(int job_id, uint32_t *response, int resp_len); int mailbox_read_response(int job_id, uint32_t *response, int resp_len);
void mailbox_reset_cold(void); void mailbox_reset_cold(void);
void mailbox_clear_response(void); void mailbox_clear_response(void);
......
...@@ -168,11 +168,8 @@ int mailbox_poll_response(int job_id, int urgent, uint32_t *response, ...@@ -168,11 +168,8 @@ int mailbox_poll_response(int job_id, int urgent, uint32_t *response,
} }
int mailbox_send_cmd_async(int job_id, unsigned int cmd, uint32_t *args, int mailbox_send_cmd_async(int job_id, unsigned int cmd, uint32_t *args,
int len, int urgent, int indirect) int len, int indirect)
{ {
if (urgent)
mmio_write_32(MBOX_OFFSET + MBOX_URG, 1);
fill_mailbox_circular_buffer(MBOX_CLIENT_ID_CMD(MBOX_ATF_CLIENT_ID) | fill_mailbox_circular_buffer(MBOX_CLIENT_ID_CMD(MBOX_ATF_CLIENT_ID) |
MBOX_JOB_ID_CMD(job_id) | MBOX_JOB_ID_CMD(job_id) |
MBOX_CMD_LEN_CMD(len) | MBOX_CMD_LEN_CMD(len) |
......
...@@ -76,7 +76,7 @@ static int intel_fpga_sdm_write_buffer(struct fpga_config_info *buffer) ...@@ -76,7 +76,7 @@ static int intel_fpga_sdm_write_buffer(struct fpga_config_info *buffer)
buffer->size_written += args[2]; buffer->size_written += args[2];
mailbox_send_cmd_async(send_id++ % MBOX_MAX_JOB_ID, mailbox_send_cmd_async(send_id++ % MBOX_MAX_JOB_ID,
MBOX_RECONFIG_DATA, args, 3, MBOX_RECONFIG_DATA, args, 3,
CMD_CASUAL, CMD_INDIRECT); CMD_INDIRECT);
buffer->subblocks_sent++; buffer->subblocks_sent++;
max_blocks--; max_blocks--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment