summaryrefslogtreecommitdiff
path: root/test/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/flash.c')
-rw-r--r--test/flash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/flash.c b/test/flash.c
index 5db8a6196c..cf6ee659fd 100644
--- a/test/flash.c
+++ b/test/flash.c
@@ -292,9 +292,9 @@ static int test_write_protect(void)
ASSERT_WP_FLAGS(EC_FLASH_PROTECT_ALL_NOW | EC_FLASH_PROTECT_RO_AT_BOOT);
/* Check we cannot erase anything */
- TEST_ASSERT(flash_physical_erase(CONFIG_SECTION_RO_OFF,
+ TEST_ASSERT(flash_physical_erase(CONFIG_FW_RO_OFF,
CONFIG_FLASH_ERASE_SIZE) != EC_SUCCESS);
- TEST_ASSERT(flash_physical_erase(CONFIG_SECTION_RW_OFF,
+ TEST_ASSERT(flash_physical_erase(CONFIG_FW_RW_OFF,
CONFIG_FLASH_ERASE_SIZE) != EC_SUCCESS);
return EC_SUCCESS;
@@ -304,7 +304,7 @@ static int test_boot_write_protect(void)
{
/* Check write protect state persists through reboot */
ASSERT_WP_FLAGS(EC_FLASH_PROTECT_RO_NOW | EC_FLASH_PROTECT_RO_AT_BOOT);
- TEST_ASSERT(flash_physical_erase(CONFIG_SECTION_RO_OFF,
+ TEST_ASSERT(flash_physical_erase(CONFIG_FW_RO_OFF,
CONFIG_FLASH_ERASE_SIZE) != EC_SUCCESS);
return EC_SUCCESS;