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:
Pan Xiuli 2021-01-26 08:24:20 +00:00 committed by Liam Girdwood
parent e163bf1513
commit 1602cba5f3
1 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ int ipc_platform_send_msg(struct ipc_msg *msg)
ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header); ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header);
#else #else
ipc_write(IPC_DIPCIDD, 0); ipc_write(IPC_DIPCIDD, 0);
ipc_write(IPC_DIPCIDR, 0x80000000 | msg->header); ipc_write(IPC_DIPCIDR, IPC_DIPCIDR_BUSY | msg->header);
#endif #endif
platform_shared_commit(msg, sizeof(*msg)); 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); ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header);
#else #else
ipc_write(IPC_DIPCIDD, 0); ipc_write(IPC_DIPCIDD, 0);
ipc_write(IPC_DIPCIDR, 0x80000000 | msg->header); ipc_write(IPC_DIPCIDR, IPC_DIPCIDR_BUSY | msg->header);
#endif #endif
/* message sent */ /* message sent */