1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Fix register accesses

This commit is contained in:
Alex Forencich 2022-01-05 19:38:46 -08:00
parent ddd7e639da
commit 975ba91239

View File

@ -1258,8 +1258,8 @@ skip_flash:
// reload FPGA
printf("Triggering IPROG to reload FPGA...\n");
if (flash_rb)
mqnic_reg_write32(flash_rb, MQNIC_RB_BPI_FLASH_REG_FORMAT, 0xFEE1DEAD);
mqnic_reg_write32(dev->fw_id_rb, MQNIC_RB_FW_ID_REG_FPGA_ID, 0xFEE1DEAD);
mqnic_reg_write32(flash_rb->regs, MQNIC_RB_BPI_FLASH_REG_FORMAT, 0xFEE1DEAD);
mqnic_reg_write32(dev->fw_id_rb->regs, MQNIC_RB_FW_ID_REG_FPGA_ID, 0xFEE1DEAD);
// disconnect
mqnic_close(dev);