Browse Source

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: Konstantin Porotchkin <kostap@marvell.com>
Change-Id: I78c215606bde112f40429926c51f5fa1e4334c13
pull/1942/head
Konstantin Porotchkin 4 years ago
committed by Manish Pandey
parent
commit
dceac436f6
  1. 6
      plat/marvell/armada/common/mss/mss_scp_bootloader.c

6
plat/marvell/armada/common/mss/mss_scp_bootloader.c

@ -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 */
timeout = MSS_DMA_TIMEOUT;
while (timeout > 0U) {
if ((mmio_read_32(MSS_DMA_CTRLR(mss_regs)) >>
(MSS_DMA_CTRLR_ACK_OFFSET &
MSS_DMA_CTRLR_ACK_MASK))
if (((mmio_read_32(MSS_DMA_CTRLR(mss_regs)) >>
MSS_DMA_CTRLR_ACK_OFFSET) &
MSS_DMA_CTRLR_ACK_MASK)
== MSS_DMA_CTRLR_ACK_READY) {
break;
}

Loading…
Cancel
Save