mirror of https://github.com/thesofproject/sof.git
drivers: cavs: ipc: change hard code value to defined macro
change 0x80000000 value to IPC_DIPCIDR_BUSY to increase the code readablity Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
parent
e163bf1513
commit
1602cba5f3
|
@ -278,7 +278,7 @@ int ipc_platform_send_msg(struct ipc_msg *msg)
|
|||
ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header);
|
||||
#else
|
||||
ipc_write(IPC_DIPCIDD, 0);
|
||||
ipc_write(IPC_DIPCIDR, 0x80000000 | msg->header);
|
||||
ipc_write(IPC_DIPCIDR, IPC_DIPCIDR_BUSY | msg->header);
|
||||
#endif
|
||||
|
||||
platform_shared_commit(msg, sizeof(*msg));
|
||||
|
@ -446,7 +446,7 @@ int ipc_platform_poll_tx_host_msg(struct ipc_msg *msg)
|
|||
ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header);
|
||||
#else
|
||||
ipc_write(IPC_DIPCIDD, 0);
|
||||
ipc_write(IPC_DIPCIDR, 0x80000000 | msg->header);
|
||||
ipc_write(IPC_DIPCIDR, IPC_DIPCIDR_BUSY | msg->header);
|
||||
#endif
|
||||
|
||||
/* message sent */
|
||||
|
|
Loading…
Reference in New Issue