summaryrefslogtreecommitdiff
path: root/board/cr50/board.h
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2019-12-13 14:20:01 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-14 20:56:39 +0000
commit3d758ca131e71ffc8d407776255bff4b2ed3bce0 (patch)
tree6eb03cfc1010768dfcd6f906326f915db3a75598 /board/cr50/board.h
parent6bfa838a0d5fd9498ac0c298bfb08b99b5fe4a7e (diff)
downloadchrome-ec-3d758ca131e71ffc8d407776255bff4b2ed3bce0.tar.gz
add BOARD_EC_CR50_COMM_SUPPORT to board properties
This CL add a board property indicating EC-CR50 communication support. The target boards are Volteer,Dedede,Puff, and Zork. It shall be detected if the H1 strap configuration value is either 0x0E or 0xE0. BUG=b:146567516, chromium:1027660 BRANCH=cr50 TEST=Flashed AP firmware through CCD on Grunt, Octopus, Scarlet and Atlas. This is the captured console log: --- UART initialized after reboot --- ... strap pin readings: a1:2 a9:2 a6:0 a12:0 [0.005886 Valid strap: 0xa properties: 0x41] > brdprop properties = 0x1141 > brdprop properties = 0x201141 > pinmux ... 400600b0: DIOB2 2 IN GPIO0_GPIO1 400600b8: DIOB3 3 IN GPIO0_GPIO2 400600c0: DIOB4 0 IN PD ... 40060100: GPIO0_GPIO2 7 DIOB3 ... 40060120: GPIO0_GPIO10 6 DIOB4 Flashed AP firmware on a reworked board with 1M ohm on DIOA1 and 5k ohm on DIOA9. This is the captured console log: --- UART initialized after reboot --- ... strap pin readings: a1:2 a9:3 a6:0 a12:0 [0.005886 Valid strap: 0xe properties: 0x200041] > brdprop properties = 0x201141 > pinmux ... 400600b0: DIOB2 2 IN GPIO0_GPIO1 400600c0: DIOB4 3 IN PD GPIO0_GPIO2 ... 40060100: GPIO0_GPIO2 6 DIOB4 ... 40060120: GPIO0_GPIO10 6 DIOB4 Change-Id: If60765190a385a0e728177911b1ec738c6a00d99 Signed-off-by: Namyoon Woo <namyoon@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1979612 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r--board/cr50/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index 12b2e72a1b..43bc6abd78 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -320,6 +320,8 @@ int board_uses_closed_loop_reset(void);
int board_has_ina_support(void);
/* The board allows vendor commands to enable/disable tpm. */
int board_tpm_mode_change_allowed(void);
+/* The board supports EC-CR50 communication. */
+int board_has_ec_cr50_comm_support(void);
int board_id_is_mismatched(void);
/* Allow for deep sleep to be enabled on AP shutdown */
int board_deep_sleep_allowed(void);