From edb545ca50b4127530a7ba5b0da8d950fb7f40f6 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sat, 16 Apr 2022 22:00:16 -0700 Subject: [PATCH] utils/mqnic-fw: Fix width detection for BPI flash Signed-off-by: Alex Forencich --- utils/mqnic-fw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/mqnic-fw.c b/utils/mqnic-fw.c index b9c8d896b..f532916b6 100644 --- a/utils/mqnic-fw.c +++ b/utils/mqnic-fw.c @@ -814,8 +814,10 @@ int main(int argc, char *argv[]) } // determine data width + mqnic_reg_write32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_CTRL, 0x0001010f); mqnic_reg_write32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_DATA, 0xffffffff); reg_val = mqnic_reg_read32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_DATA); + mqnic_reg_write32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_CTRL, 0x0000000f); mqnic_reg_write32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_DATA, 0x00000000); flash_data_width = 0;