commit | 0c6211d26e818b6f9ec38b63c851d1a56ed18875 | [log] [tgz] |
---|---|---|
author | Timothy Chen <timothytim@google.com> | Fri Sep 13 15:53:45 2019 -0700 |
committer | tjaychen <timothytim@google.com> | Fri Sep 13 16:25:51 2019 -0700 |
tree | c09d920cf23a64e66ea5000b4fc6ee51a63b0092 | |
parent | 3da4af571a694cea3eccbb133c4978a821206427 [diff] |
Update rom flash usage
diff --git a/sw/boot_rom/flash_ctrl.c b/sw/boot_rom/flash_ctrl.c index ed60ec1..2a83663 100644 --- a/sw/boot_rom/flash_ctrl.c +++ b/sw/boot_rom/flash_ctrl.c
@@ -80,7 +80,7 @@ (size - 1) << FLASH_CTRL_CONTROL_NUM_OFFSET | 0x1 << FLASH_CTRL_CONTROL_START); for (int i = 0; i < size; ++i) { - REG32(FLASH_CTRL_PROG_FIFO(FLASH_CTRL0_BASE_ADDR)) = data[i]; + REG32(FLASH_CTRL_PROG_FIFO(0)) = data[i]; } wait_done_and_ack(); return 0;