diff options
Diffstat (limited to 'chip/it83xx')
-rw-r--r-- | chip/it83xx/registers.h | 7 | ||||
-rw-r--r-- | chip/it83xx/system.c | 7 |
2 files changed, 1 insertions, 13 deletions
diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h index 483eabe346..c465263217 100644 --- a/chip/it83xx/registers.h +++ b/chip/it83xx/registers.h @@ -1449,13 +1449,8 @@ enum bram_indices { BRAM_IDX_SCRATCHPAD1 = 9, BRAM_IDX_SCRATCHPAD2 = 0xa, BRAM_IDX_SCRATCHPAD3 = 0xb, - /* index 0xc ~ 0xf are reserved */ - /* NVCONTEXT uses 16 bytes */ - BRAM_IDX_NVCONTEXT = 0x10, - BRAM_IDX_NVCONTEXT_END = 0x1F, - - /* offset 0x20 ~ 0x7b are reserved for future use. */ + /* offset 0x0c ~ 0x7b are reserved for future use. */ /* This field is used to indicate BRAM is valid or not. */ BRAM_IDX_VALID_FLAGS0 = 0x7c, diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c index 44f94258ec..ecdb36203e 100644 --- a/chip/it83xx/system.c +++ b/chip/it83xx/system.c @@ -388,10 +388,6 @@ const char *system_get_chip_revision(void) static int bram_idx_lookup(enum system_bbram_idx idx) { - if (idx >= SYSTEM_BBRAM_IDX_VBNVBLOCK0 && - idx <= SYSTEM_BBRAM_IDX_VBNVBLOCK15) - return BRAM_IDX_NVCONTEXT + - idx - SYSTEM_BBRAM_IDX_VBNVBLOCK0; if (idx == SYSTEM_BBRAM_IDX_PD0) return BRAM_IDX_PD0; if (idx == SYSTEM_BBRAM_IDX_PD1) @@ -423,9 +419,6 @@ int system_set_bbram(enum system_bbram_idx idx, uint8_t value) return EC_SUCCESS; } -#define BRAM_NVCONTEXT_SIZE (BRAM_IDX_NVCONTEXT_END - BRAM_IDX_NVCONTEXT + 1) -BUILD_ASSERT(EC_VBNV_BLOCK_SIZE <= BRAM_NVCONTEXT_SIZE); - uintptr_t system_get_fw_reset_vector(uintptr_t base) { /* |