From ff9248fbaabef72761728140c2e65d0aa02dc17c Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Tue, 17 Apr 2018 10:46:31 -0600 Subject: system: update board version to return an error if encountered Now that board version can come from CBI, we can have a real error reading it. We should pass that error to the console or to the AP on the host command and let the AP firmware (or user) decided how to handle that error case Also update the CONFIG_BOARD_VERSION to be derived instead of needed in most cases. BRANCH=none BUG=b:77972120 TEST=Error reported on EC console and AP console when CBI is invalid on yorp Change-Id: Ib8d80f610ea226265a61e68b61965150cdc9bb04 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/1015776 Reviewed-by: Aseda Aboagye --- board/oak/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/oak') diff --git a/board/oak/board.h b/board/oak/board.h index f7324effe1..3bba4a1f44 100644 --- a/board/oak/board.h +++ b/board/oak/board.h @@ -105,7 +105,7 @@ #define CONFIG_VBOOT_HASH #undef CONFIG_WATCHDOG_HELP #define CONFIG_SWITCH -#define CONFIG_BOARD_VERSION +#define CONFIG_BOARD_VERSION_GPIO #undef CONFIG_UART_CONSOLE #define CONFIG_UART_CONSOLE 1 #define CONFIG_TEMP_SENSOR -- cgit v1.2.1