diff options
author | Louis Collard <louiscollard@chromium.org> | 2019-08-12 16:21:02 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-23 09:09:18 +0000 |
commit | ba6067286a1659fc946dbbbe511b5c6413dc2138 (patch) | |
tree | 81db43a2c728b0ec3c104fd9ea6bc001adac23f1 /include | |
parent | 84ba4bb756187dac279c70fe6915e3437199d040 (diff) | |
download | chrome-ec-ba6067286a1659fc946dbbbe511b5c6413dc2138.tar.gz |
cr50: Delete non-volatile counter API
This counter was only used by the legacy U2F
implementation, which is no longer required.
This change deletes the code for the counter,
but does not update the flash config to make use
of the pages previously occupied by the counter.
Since this code is already unused, and therefore
already dropped from built firmware images, this
change does not have any impact on image size.
A follow up change can alter the flash config
to reclaim and repurpose the 2KB per partition
previously used by the counter.
BRANCH=none
BUG=b:138459918
TEST=make buildall -j
Signed-off-by: Louis Collard <louiscollard@chromium.org>
Change-Id: I18892e1eb0224b96caa531293403b0b02f28a32b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1748848
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 2 | ||||
-rw-r--r-- | include/nvcounter.h | 20 |
2 files changed, 0 insertions, 22 deletions
diff --git a/include/config.h b/include/config.h index 66b23526b4..c168381834 100644 --- a/include/config.h +++ b/include/config.h @@ -1752,8 +1752,6 @@ #undef CONFIG_EC_WRITABLE_STORAGE_OFF #undef CONFIG_EC_WRITABLE_STORAGE_SIZE -/* Enable robust non-volatile counter in flash */ -#undef CONFIG_FLASH_NVCOUNTER /* Address of start of the NVcounter flash page */ #undef CONFIG_FLASH_NVCTR_BASE_A #undef CONFIG_FLASH_NVCTR_BASE_B diff --git a/include/nvcounter.h b/include/nvcounter.h deleted file mode 100644 index c523d6bd2d..0000000000 --- a/include/nvcounter.h +++ /dev/null @@ -1,20 +0,0 @@ -/* Copyright 2017 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef __EC_INCLUDE_NVCOUNTER_H -#define __EC_INCLUDE_NVCOUNTER_H - -/* - * CONFIG_FLASH_NVCOUNTER provides a robust, non-volatile incrementing counter. - * - * It is currently uses 2 physical pages of flash for its underlying storage - * which are configured by CONFIG_FLASH_NVCTR_BASE_A and - * CONFIG_FLASH_NVCTR_BASE_B in board.h - */ - -/* return the value of the counter after incrementing it */ -uint32_t nvcounter_incr(void); - -#endif /* __EC_INCLUDE_NVCOUNTER_H */ |