summaryrefslogtreecommitdiff
path: root/src/mainboard/google/gale/chromeos.c
diff options
context:
space:
mode:
authorKan Yan <kyan@google.com>2016-07-28 18:55:26 -0700
committerMartin Roth <martinroth@google.com>2016-08-03 18:23:47 +0200
commitd1a00515ffc9ebe60994843eb3c7ef4b19e6181b (patch)
tree59d69d44805820cdaa76799211e50707992b3f6f /src/mainboard/google/gale/chromeos.c
parent40d62f3db7c77bc4d48d3a584ac607b348c44d8c (diff)
google/gale: Add more board ID variants
EVT1 has two board IDs. Use binary first mode of base3 encoding for board ID. BUG=chrome-os-partner:55320 TEST=None. BRANCH=None Change-Id: I1cac1f74207f42616111d39db5c0494b7d1a0fb2 Signed-off-by: Martin Roth <martinroth@chromium.org> Original-Commit-Id: 2b16cc74c4c147315b7db345678bbaf536ab4a7b Original-Change-Id: I6e95c7be4a6d28a0aae38b0838bd2ab71d288ba1 Original-Signed-off-by: Kan Yan <kyan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/364623 Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> Original-Reviewed-by: Suresh Rajashekara <sureshraj@chromium.org> Reviewed-on: https://review.coreboot.org/16030 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/google/gale/chromeos.c')
-rw-r--r--src/mainboard/google/gale/chromeos.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainboard/google/gale/chromeos.c b/src/mainboard/google/gale/chromeos.c
index 01f1e03d9b..92a16b1cbe 100644
--- a/src/mainboard/google/gale/chromeos.c
+++ b/src/mainboard/google/gale/chromeos.c
@@ -33,10 +33,12 @@
static int get_rec_sw_gpio_pin(void)
{
uint8_t board_rev = board_id();
+
switch (board_rev) {
case BOARD_ID_GALE_PROTO:
case BOARD_ID_GALE_EVT:
- case BOARD_ID_GALE_EVT2:
+ case BOARD_ID_GALE_EVT2_0:
+ case BOARD_ID_GALE_EVT2_1:
return 7;
case BOARD_ID_GALE_EVT3:
default:
@@ -50,7 +52,8 @@ static int get_wp_status_gpio_pin(void)
switch (board_rev) {
case BOARD_ID_GALE_PROTO:
case BOARD_ID_GALE_EVT:
- case BOARD_ID_GALE_EVT2:
+ case BOARD_ID_GALE_EVT2_0:
+ case BOARD_ID_GALE_EVT2_1:
return 6;
case BOARD_ID_GALE_EVT3:
default: