Skip to content

Commit

Permalink
EB
Browse files Browse the repository at this point in the history
Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Sep 24, 2024
1 parent aa1cd6a commit 2eb720d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions sw/device/lib/testing/test_rom/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ cc_library(
"//hw/ip/entropy_src/data:entropy_src_c_regs",
"//hw/ip/otp_ctrl/data:otp_ctrl_c_regs",
"//hw/ip/sram_ctrl/data:sram_ctrl_c_regs",
"//hw/top_earlgrey/ip/ast/data:ast_c_regs",
"//hw/top_earlgrey/ip/sensor_ctrl/data:sensor_ctrl_c_regs",
"//hw/top_earlgrey/ip_autogen/clkmgr:clkmgr_c_regs",
"//hw/top_earlgrey/ip_autogen/flash_ctrl:flash_ctrl_c_regs",
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//hw/top:ast_c_regs",
"//hw/top:sensor_ctrl_c_regs",
"//hw/top:clkmgr_c_regs",
"//hw/top:flash_ctrl_c_regs",
"//hw/top:top_lib",
"//sw/device/lib/arch:device",
"//sw/device/lib/base:abs_mmio",
"//sw/device/lib/base:bitfield",
Expand Down
4 changes: 3 additions & 1 deletion sw/device/silicon_creator/lib/drivers/flash_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ enum {
*/
#ifdef OT_IS_ENGLISH_BREAKFAST
kBase = TOP_ENGLISHBREAKFAST_FLASH_CTRL_CORE_BASE_ADDR,
kBaseMem = TOP_ENGLISHBREAKFAST_FLASH_CTRL_MEM_BASE_ADDR
#else
kBase = TOP_EARLGREY_FLASH_CTRL_CORE_BASE_ADDR,
kBaseMem = TOP_EARLGREY_FLASH_CTRL_MEM_BASE_ADDR
#endif
};

Expand Down Expand Up @@ -425,7 +427,7 @@ rom_error_t flash_ctrl_data_erase_verify(uint32_t addr,
for (; launder32(i) < byte_count && launder32(r) < byte_count;
i += sizeof(uint32_t), r -= sizeof(uint32_t)) {
uint32_t word =
abs_mmio_read32(TOP_EARLGREY_FLASH_CTRL_MEM_BASE_ADDR + addr + i);
abs_mmio_read32(kBaseMem + addr + i);
mask &= word;
error &= word;
}
Expand Down

0 comments on commit 2eb720d

Please sign in to comment.