summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/cros_board_info.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cros_board_info.h b/include/cros_board_info.h
index 5d7f82fb40..6f2871916e 100644
--- a/include/cros_board_info.h
+++ b/include/cros_board_info.h
@@ -200,6 +200,11 @@ int cbi_create(void);
*/
void cbi_invalidate_cache(void);
+/**
+ * Return CBI cache status
+ */
+int cbi_get_cache_status(void);
+
#ifdef TEST_BUILD
/**
* Write the locally cached CBI to EEPROM.