From 7e055ef27ef1e07be09d80b2298384889214bf0d Mon Sep 17 00:00:00 2001 From: Dan Ehrenberg Date: Fri, 24 Oct 2014 13:22:05 -0700 Subject: [PATCH] coreboot: Minor board ID changes - Add the Whirlwind board ID to the enum - Replace comparisons of the board ID with 0 to the proto0 constant TEST=Booted Storm with this coreboot version BUG=none BRANCH=none Change-Id: I75c7c98732c3d4569611de54d7aa149dd3b0fb7d Signed-off-by: Dan Ehrenberg Reviewed-on: https://chromium-review.googlesource.com/225460 Reviewed-by: Vadim Bendebury --- src/mainboard/google/storm/mainboard.c | 4 ++-- src/soc/qualcomm/ipq806x/include/soc/cdp.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/storm/mainboard.c b/src/mainboard/google/storm/mainboard.c index f93a965200..d7849d8592 100644 --- a/src/mainboard/google/storm/mainboard.c +++ b/src/mainboard/google/storm/mainboard.c @@ -75,7 +75,7 @@ static void setup_mmu(void) #define TPM_RESET_GPIO 22 static void setup_tpm(void) { - if (board_id() != 0) + if (board_id() != BOARD_ID_PROTO_0) return; /* Only proto0 have TPM reset connected to GPIO22 */ gpio_tlmm_config_set(TPM_RESET_GPIO, FUNC_SEL_GPIO, GPIO_PULL_UP, @@ -93,7 +93,7 @@ static void setup_tpm(void) #define SW_RESET_GPIO 26 static void assert_sw_reset(void) { - if (board_id() == 0) + if (board_id() == BOARD_ID_PROTO_0) return; /* diff --git a/src/soc/qualcomm/ipq806x/include/soc/cdp.h b/src/soc/qualcomm/ipq806x/include/soc/cdp.h index bb2151cd2d..b705f3e909 100644 --- a/src/soc/qualcomm/ipq806x/include/soc/cdp.h +++ b/src/soc/qualcomm/ipq806x/include/soc/cdp.h @@ -109,6 +109,7 @@ typedef struct { enum storm_board_id { BOARD_ID_PROTO_0 = 0, BOARD_ID_PROTO_0_2 = 1, + BOARD_ID_WHIRLWIND = 2, BOARD_ID_PROTO_0_2_NAND = 26, };