summaryrefslogtreecommitdiff
path: root/board/zinger/hardware.c
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2014-10-30 18:38:09 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-05 01:09:39 +0000
commit2bc0b68c863693ae9e3e315aa3438829e59077ef (patch)
tree8c730a18b5c2cdfa56daa67c2cf871abe977437a /board/zinger/hardware.c
parent63704fd11b1858d9438f6bfefcc0b304c43644ad (diff)
downloadchrome-ec-2bc0b68c863693ae9e3e315aa3438829e59077ef.tar.gz
pd: move get_info to common file.
get_info command needs to be used by all type-C accessories that would entertain being updated in the field. This CL migrates function to common/usb_pd_protocol.c for other boards to use. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=samus BUG=chrome-os-partner:31192,chrome-os-partner:31193 TEST=manual, Using ectool --name=cros_pd infopddev <0|1> Port:1 Devid 1.1 Hash: 0x00ec9619 0x811f3e68 0x4b90c8e9 0xd5b98fa8 0xfd373777 Port:1 Devid 3.0 Hash: 0x682fd366 0x7213f55e 0xddefb802 0xbedfec42 0x5cdcc226 Port:0 Devid 4.0 Hash: 0x57b1e4e0 0x7204075f 0x65c0fa72 0xdcca15ed 0xf3231237 Change-Id: Iffa8699056351f62cf90fdecbc7ef5cee81e67bb Reviewed-on: https://chromium-review.googlesource.com/226891 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'board/zinger/hardware.c')
-rw-r--r--board/zinger/hardware.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/board/zinger/hardware.c b/board/zinger/hardware.c
index 59e2f8b24b..1238d31a0d 100644
--- a/board/zinger/hardware.c
+++ b/board/zinger/hardware.c
@@ -9,8 +9,6 @@
#include "common.h"
#include "cpu.h"
#include "registers.h"
-#include "rsa.h"
-#include "sha256.h"
#include "task.h"
#include "timer.h"
#include "util.h"
@@ -409,12 +407,3 @@ exit_er:
return res;
}
-
-static struct sha256_ctx ctx;
-uint8_t *flash_hash_rw(void)
-{
- SHA256_init(&ctx);
- SHA256_update(&ctx, (void *)CONFIG_FLASH_BASE + CONFIG_FW_RW_OFF,
- CONFIG_FW_RW_SIZE - RSANUMBYTES);
- return SHA256_final(&ctx);
-}