Commit dceac436 authored by Konstantin Porotchkin's avatar Konstantin Porotchkin Committed by Manish Pandey
Browse files

fix: plat: marvell: fix MSS loader for A8K family



Wrong brakets caused MSS FW load timeout error:
ERROR:   MSS DMA failed (timeout)
ERROR:   MSS FW chunk 0 load failed
ERROR:   SCP Image load failed

This patch fixes the operator precedence in MSS FW load.
Signed-off-by: default avatarKonstantin Porotchkin <kostap@marvell.com>
Change-Id: I78c215606bde112f40429926c51f5fa1e4334c13
parent 52c24e30
...@@ -85,9 +85,9 @@ static int mss_iram_dma_load(uint32_t src_addr, uint32_t size, ...@@ -85,9 +85,9 @@ static int mss_iram_dma_load(uint32_t src_addr, uint32_t size,
/* Poll DMA_ACK at MSS_DMACTLR until it is ready */ /* Poll DMA_ACK at MSS_DMACTLR until it is ready */
timeout = MSS_DMA_TIMEOUT; timeout = MSS_DMA_TIMEOUT;
while (timeout > 0U) { while (timeout > 0U) {
if ((mmio_read_32(MSS_DMA_CTRLR(mss_regs)) >> if (((mmio_read_32(MSS_DMA_CTRLR(mss_regs)) >>
(MSS_DMA_CTRLR_ACK_OFFSET & MSS_DMA_CTRLR_ACK_OFFSET) &
MSS_DMA_CTRLR_ACK_MASK)) MSS_DMA_CTRLR_ACK_MASK)
== MSS_DMA_CTRLR_ACK_READY) { == MSS_DMA_CTRLR_ACK_READY) {
break; break;
} }
......
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