diff options
Diffstat (limited to 'fuzz/fuzz_config.h')
-rw-r--r-- | fuzz/fuzz_config.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fuzz/fuzz_config.h b/fuzz/fuzz_config.h index ba4d9c8458..eb7fbc8401 100644 --- a/fuzz/fuzz_config.h +++ b/fuzz/fuzz_config.h @@ -23,7 +23,7 @@ /* From chip/g/config_chip.h */ #define CFG_FLASH_HALF (CONFIG_FLASH_SIZE >> 1) -#define CFG_TOP_SIZE 0x3800 +#define CFG_TOP_SIZE 0x3000 #define CFG_TOP_A_OFF (CFG_FLASH_HALF - CFG_TOP_SIZE) #define CFG_TOP_B_OFF (CONFIG_FLASH_SIZE - CFG_TOP_SIZE) @@ -35,16 +35,12 @@ #define CONFIG_FLASH_LOG #define CONFIG_FLASH_LOG_BASE CONFIG_PROGRAM_MEMORY_BASE #define CONFIG_FLASH_LOG_SPACE 0x800 -#define CONFIG_FLASH_NVCTR_SIZE CONFIG_FLASH_BANK_SIZE -#define CONFIG_FLASH_NVCTR_BASE_A (CONFIG_PROGRAM_MEMORY_BASE + \ - CFG_TOP_A_OFF) -#define CONFIG_FLASH_NVCTR_BASE_B (CONFIG_PROGRAM_MEMORY_BASE + \ - CFG_TOP_B_OFF) + /* We're using TOP_A for partition 0, TOP_B for partition 1 */ #define CONFIG_FLASH_NVMEM /* Offset to start of NvMem area from base of flash */ -#define CONFIG_FLASH_NVMEM_OFFSET_A (CFG_TOP_A_OFF + CONFIG_FLASH_NVCTR_SIZE) -#define CONFIG_FLASH_NVMEM_OFFSET_B (CFG_TOP_B_OFF + CONFIG_FLASH_NVCTR_SIZE) +#define CONFIG_FLASH_NVMEM_OFFSET_A (CFG_TOP_A_OFF) +#define CONFIG_FLASH_NVMEM_OFFSET_B (CFG_TOP_B_OFF) /* Address of start of Nvmem area */ #define CONFIG_FLASH_NVMEM_BASE_A \ (CONFIG_PROGRAM_MEMORY_BASE + CONFIG_FLASH_NVMEM_OFFSET_A) @@ -55,7 +51,7 @@ #define CONFIG_FLASH_NEW_NVMEM_BASE_B \ (CONFIG_FLASH_NVMEM_BASE_B + CONFIG_FLASH_BANK_SIZE) /* Size partition in NvMem */ -#define NVMEM_PARTITION_SIZE (CFG_TOP_SIZE - CONFIG_FLASH_NVCTR_SIZE) +#define NVMEM_PARTITION_SIZE (CFG_TOP_SIZE) /* Size in bytes of NvMem area */ #define CONFIG_FLASH_NVMEM_SIZE (NVMEM_PARTITION_SIZE * NVMEM_NUM_PARTITIONS) |