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/poppy/board.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'board/poppy') diff --git a/board/poppy/board.h b/board/poppy/board.h index fbdf6e86e3..033e6388e4 100644 --- a/board/poppy/board.h +++ b/board/poppy/board.h @@ -17,8 +17,7 @@ /* EC */ #define CONFIG_ADC #define CONFIG_BACKLIGHT_LID -#define CONFIG_BOARD_VERSION -#define CONFIG_BOARD_SPECIFIC_VERSION +#define CONFIG_BOARD_VERSION_CUSTOM #define CONFIG_BOARD_FORCE_RESET_PIN #define CONFIG_BUTTON_TRIGGERED_RECOVERY #define CONFIG_DPTF -- cgit v1.2.1