From 4af47d62b4af78f951b0f8b29a1a116277b94c10 Mon Sep 17 00:00:00 2001 From: Philip Chen Date: Thu, 1 Jul 2021 16:36:49 -0700 Subject: 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 Change-Id: Ibe3af7df4f04abe2d65b31f2d604dbb6044e5863 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3002448 Reviewed-by: Daisuke Nojiri Commit-Queue: Philip Chen Tested-by: Philip Chen --- include/cros_board_info.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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. -- cgit v1.2.1