summaryrefslogtreecommitdiff
path: root/common/cbi_eeprom.c
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2021-07-01 16:36:49 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-03 02:35:18 +0000
commit4af47d62b4af78f951b0f8b29a1a116277b94c10 (patch)
tree60afd4182f21a5fcae24b49e4aead3dacb9a91db /common/cbi_eeprom.c
parentac22128c48651d330fc1ffdc69afee5ecc79b051 (diff)
downloadchrome-ec-4af47d62b4af78f951b0f8b29a1a116277b94c10.tar.gz
cbi: Add cbi_get_cache_status()
Implement a new API cbi_get_cache_status() for us to probe CBI cache status in unit tests and anywhere else. BRANCH=None BUG=b:186264627 TEST=make buildall -j Signed-off-by: Philip Chen <philipchen@google.com> Change-Id: Ibe3af7df4f04abe2d65b31f2d604dbb6044e5863 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3002448 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'common/cbi_eeprom.c')
-rw-r--r--common/cbi_eeprom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/cbi_eeprom.c b/common/cbi_eeprom.c
index 807b0ebc29..fe52bcd9f3 100644
--- a/common/cbi_eeprom.c
+++ b/common/cbi_eeprom.c
@@ -21,7 +21,6 @@
*/
#define EEPROM_PAGE_WRITE_SIZE 8
#define EEPROM_PAGE_WRITE_MS 5
-#define EC_ERROR_CBI_CACHE_INVALID EC_ERROR_INTERNAL_FIRST
static int eeprom_read(uint8_t offset, uint8_t *data, int len)
{