diff options
Diffstat (limited to 'chip')
-rw-r--r-- | chip/host/config_chip.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/chip/host/config_chip.h b/chip/host/config_chip.h index 8714b57891..f2b7e29416 100644 --- a/chip/host/config_chip.h +++ b/chip/host/config_chip.h @@ -9,15 +9,21 @@ #define __CROS_EC_CONFIG_CHIP_H /* Memory mapping */ +#if !defined(TEST_NVMEM) && !defined(TEST_CR50_FUZZ) #define CONFIG_FLASH_SIZE 0x00020000 +#define CONFIG_FLASH_BANK_SIZE 0x1000 +#else +#define CONFIG_FLASH_SIZE (512 * 1024) +#define CONFIG_FLASH_BANK_SIZE 0x800 +#endif + extern char __host_flash[CONFIG_FLASH_SIZE]; -#define CONFIG_PROGRAM_MEMORY_BASE ((uintptr_t)__host_flash) -#define CONFIG_FLASH_BANK_SIZE 0x1000 -#define CONFIG_FLASH_ERASE_SIZE 0x0010 /* erase bank size */ -#define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */ -#define CONFIG_FLASH_WRITE_IDEAL_SIZE 0x0080 /* ideal write size */ -#define CONFIG_RAM_BASE 0x0 /* Not supported */ +#define CONFIG_PROGRAM_MEMORY_BASE ((uintptr_t)__host_flash) +#define CONFIG_FLASH_ERASE_SIZE 0x0010 /* erase bank size */ +#define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */ +#define CONFIG_FLASH_WRITE_IDEAL_SIZE 0x0080 /* ideal write size */ +#define CONFIG_RAM_BASE 0x0 /* Not supported */ #define CONFIG_RAM_SIZE 0x0 /* Not supported */ #define CONFIG_FPU |