From 17d6c69b7be2aabe4188792a2d11d1b0bb4ddc4b Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Fri, 28 Sep 2018 10:37:59 -0700 Subject: DragonEgg: Add support to read board version from GPIO strappings In preparation for P1 boards, this CL adds support to report board version from gpio strapping pins. BUG=b:117120739 BRANCH=none TEST=Tested on DragonEgg P0 board: ver Chip: ite it8320 dx Board: 0 RO: dragonegg_v2.0.66-cd7027af7 RW: dragonegg_v2.0.66-cd7027af7 Build: dragonegg_v2.0.66-cd7027af7 2018-10-01 16:03:27 scollyer@scollyer.mtv.corp.google.com Change-Id: I62063d1c2e3dd685cc74beb42c962d112b9de4ae Signed-off-by: Scott Collyer Reviewed-on: https://chromium-review.googlesource.com/1256182 Commit-Ready: Scott Collyer Tested-by: Scott Collyer Reviewed-by: Furquan Shaikh --- board/dragonegg/board.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/dragonegg/board.h b/board/dragonegg/board.h index f0543a1247..039cdbbec5 100644 --- a/board/dragonegg/board.h +++ b/board/dragonegg/board.h @@ -18,6 +18,9 @@ #undef CONFIG_UART_TX_BUF_SIZE #define CONFIG_UART_TX_BUF_SIZE 4096 +/* EC */ +#define CONFIG_BOARD_VERSION_GPIO + /* Keyboard features */ #define CONFIG_PWM_KBLIGHT #define CONFIG_VOLUME_BUTTONS -- cgit v1.2.1