summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/board.c4
-rw-r--r--board/cr50/build.mk4
2 files changed, 8 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 20c5de0030..36af6c0ffe 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -1329,6 +1329,10 @@ static uint32_t get_properties(void)
return BOARD_SLAVE_CONFIG_SPI;
}
+#ifdef H1_RED_BOARD
+ CPRINTS("Unconditionally enabling SPI and platform reset");
+ return (BOARD_SLAVE_CONFIG_SPI | BOARD_USE_PLT_RESET);
+#endif
if (get_strap_config(&config) != EC_SUCCESS) {
/*
* No pullups were detected on any of the strap pins so there
diff --git a/board/cr50/build.mk b/board/cr50/build.mk
index b12bdc5f8b..87d1f93423 100644
--- a/board/cr50/build.mk
+++ b/board/cr50/build.mk
@@ -62,6 +62,10 @@ board-y += tpm_nvmem_ops.o
board-y += wp.o
board-$(CONFIG_U2F) += u2f.o
+ifneq ($(H1_RED_BOARD),)
+CPPFLAGS += -DH1_RED_BOARD
+endif
+
# Build and link with an external library
EXTLIB := $(realpath ../../third_party/tpm2)
CFLAGS += -I$(EXTLIB)