summaryrefslogtreecommitdiff
path: root/board/fizz
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-04-17 10:46:31 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-04-19 12:46:14 -0700
commitff9248fbaabef72761728140c2e65d0aa02dc17c (patch)
tree88852a7a496d55dfafedd683d579e9fdffba2d44 /board/fizz
parentd9386134c156775a3c0b0c6d4638643a4f190aa3 (diff)
downloadchrome-ec-ff9248fbaabef72761728140c2e65d0aa02dc17c.tar.gz
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 <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1015776 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/fizz')
-rw-r--r--board/fizz/board.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/fizz/board.h b/board/fizz/board.h
index 464b517db8..b4ed5a19ae 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -17,8 +17,7 @@
/* EC */
#define CONFIG_ADC
-#define CONFIG_BOARD_VERSION
-#define CONFIG_BOARD_SPECIFIC_VERSION
+#define CONFIG_BOARD_VERSION_CBI
#define CONFIG_CRC8
#define CONFIG_CROS_BOARD_INFO
#define CONFIG_DEDICATED_RECOVERY_BUTTON
@@ -239,7 +238,6 @@ enum mft_channel {
#define PD_MAX_VOLTAGE_MV 20000
/* Board specific handlers */
-int board_get_version(void);
void board_reset_pd_mcu(void);
void board_set_tcpc_power_mode(int port, int mode);
int board_get_battery_soc(void);