summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLouis Collard <louiscollard@chromium.org>2019-08-12 16:21:02 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-23 09:09:18 +0000
commitba6067286a1659fc946dbbbe511b5c6413dc2138 (patch)
tree81db43a2c728b0ec3c104fd9ea6bc001adac23f1 /board
parent84ba4bb756187dac279c70fe6915e3437199d040 (diff)
downloadchrome-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 'board')
-rw-r--r--board/cr50/board.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index c7a6c2d5f2..a16bb89b1f 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -49,8 +49,7 @@
#define CONFIG_CRC8
-/* Non-volatile counter storage for U2F */
-#define CONFIG_FLASH_NVCOUNTER
+/* Non-volatile counter storage for U2F (deprecated) */
#define CONFIG_FLASH_NVCTR_SIZE CONFIG_FLASH_BANK_SIZE
#define CONFIG_FLASH_NVCTR_BASE_A (CONFIG_PROGRAM_MEMORY_BASE + \
CFG_TOP_A_OFF)