summaryrefslogtreecommitdiff
path: root/board/fizz
diff options
context:
space:
mode:
Diffstat (limited to 'board/fizz')
-rw-r--r--board/fizz/board.c5
-rw-r--r--board/fizz/board.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c
index 2089777a01..9756aa05c0 100644
--- a/board/fizz/board.c
+++ b/board/fizz/board.c
@@ -17,6 +17,7 @@
#include "charger.h"
#include "chipset.h"
#include "console.h"
+#include "cros_board_info.h"
#include "driver/pmic_tps650x30.h"
#include "driver/temp_sensor/tmp432.h"
#include "driver/tcpm/ps8xxx.h"
@@ -449,6 +450,10 @@ DECLARE_HOOK(HOOK_AC_CHANGE, board_extpower, HOOK_PRIO_DEFAULT);
/* Initialize board. */
static void board_init(void)
{
+ uint32_t version;
+ if (cbi_get_board_version(&version) == EC_SUCCESS)
+ CPRINTS("Board Version: 0x%04x", version);
+
/* Provide AC status to the PCH */
board_extpower();
diff --git a/board/fizz/board.h b/board/fizz/board.h
index 9409cfffb3..67b7d20aad 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -18,6 +18,9 @@
/* EC */
#define CONFIG_ADC
#define CONFIG_BOARD_VERSION
+#define CONFIG_BOARD_SPECIFIC_VERSION
+#define CONFIG_CRC8
+#define CONFIG_CROS_BOARD_INFO
#define CONFIG_DEDICATED_RECOVERY_BUTTON
#define CONFIG_EMULATED_SYSRQ
#define CONFIG_LED_COMMON
@@ -130,6 +133,7 @@
/* I2C addresses */
#define I2C_ADDR_TCPC0 0x16
+#define I2C_ADDR_EEPROM 0xa0
/* Verify and jump to RW image on boot */
#define CONFIG_VBOOT_EFS