diff options
Diffstat (limited to 'chip/lm4/mock_flash.c')
-rw-r--r-- | chip/lm4/mock_flash.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chip/lm4/mock_flash.c b/chip/lm4/mock_flash.c index 8e46d52bfc..de9b278044 100644 --- a/chip/lm4/mock_flash.c +++ b/chip/lm4/mock_flash.c @@ -57,8 +57,13 @@ int flash_physical_get_protect(int block) return mock_protect[block]; } +void flash_physical_set_protect(int start_bank, int bank_count) +{ + for (; bank_count > 0; bank_count--) + mock_protect[start_bank++] = 1; +} -void flash_physical_set_protect(int block) +int flash_physical_pre_init(void) { - mock_protect[block] = 1; + return EC_SUCCESS; } |