summaryrefslogtreecommitdiff
path: root/board/cr50/u2f.c
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2019-12-09 14:34:55 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-22 01:46:39 +0000
commit5a8a856b0a942d3b982ef28324a924db3c7d9f40 (patch)
treeac82cccef343c83adc300d1e7c2c9bb41df095e0 /board/cr50/u2f.c
parent9d9c4ca2342d09ccf241173d36d3cf2b16ed3c41 (diff)
downloadchrome-ec-5a8a856b0a942d3b982ef28324a924db3c7d9f40.tar.gz
EC-CR50 communication
This patch supports EC-CR50 communication. EC activates EC-CR50 communication by setting high DIOB3, and send a command packet to CR50 through UART_EC_TX_CR50_RX. Cr50 processes the packet, and sends a response packet back to EC. EC deactivates EC-CR50 communication by putting low DIOB3. This patch supports two kinds of EC-CR50 commands: - CR50_COMM_CMD_SET_BOOT_MODE - CR50_COMM_CMD_VERIFY_HASH Cr50 stores some of EC-EFS context in a powerdown register before deep sleep and restores it after wakeup. This patch increases flash usage by 1456 bytes. BUG=b:119329144 BRANCH=cr50 TEST=Checked "ec_comm" console command on Octopus and reworked Helios. Checked uart_stress_tester.py running without character loss. Change-Id: I23e90b9f3e860a3d198dcee718d7d11080d06e40 Signed-off-by: Namyoon Woo <namyoon@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1961145 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/cr50/u2f.c')
0 files changed, 0 insertions, 0 deletions