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 <dehrenberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/225460 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
parent
d3c737951f
commit
7e055ef27e
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue