summaryrefslogtreecommitdiff
path: root/board/cr50/build.mk
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2017-08-17 13:01:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-25 19:54:11 -0700
commit1154a307e1c4acee37aaf4e7a6beebe2d2ed67db (patch)
tree4b522d0865f35f94de84f8ee786ccfc64a1f7870 /board/cr50/build.mk
parent07d646ced0da75061ca6b977806954559eafa2b8 (diff)
downloadchrome-ec-1154a307e1c4acee37aaf4e7a6beebe2d2ed67db.tar.gz
cr50: Split EC state machine into its own file
The device state machines aren't quite similar enough to use common code. Split the EC state machine out, the way we split out BattPrsnt and CCD_MODE. BUG=b:35587387 BRANCH=cr50 TEST=manual Pull CCD_MODE_L high, so Cr50 detects/enables CCD Pull EC_DETECT high. reboot -> 'EC RX only', then 'EC on' at 1 second Pull EC_DETECT low --> See 'EC off' message ccd --> EC UART disabled Pull EC_DETECT high --> See 'EC on' message ccd --> EC UART RX+TX Pull EC_DETECT low for <1 sec then back high (don't see EC off/on messages) ccd --> EC UART RX+TX Reboot with EC_DETECT still low -> EC off at 1 second Reboot with EC_DETECT still low and then assert EC_DETECT within a second -> EC RX only, then EC connect at 1 second. Change-Id: I71687e651d625cadd656934f4cb2bbadc0b58816 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/619750 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'board/cr50/build.mk')
-rw-r--r--board/cr50/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk
index 1e882e9876..4babeef552 100644
--- a/board/cr50/build.mk
+++ b/board/cr50/build.mk
@@ -29,7 +29,7 @@ dirs-y += chip/$(CHIP)/dcrypto
dirs-y += $(BDIR)/tpm2
# Objects that we need to build
-board-y = board.o
+board-y = board.o ec_state.o
board-${CONFIG_RDD} += rdd.o
board-${CONFIG_USB_SPI} += usb_spi.o
board-${CONFIG_USB_I2C} += usb_i2c.o