summaryrefslogtreecommitdiff
path: root/board/zinger/runtime.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/runtime.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/runtime.c')
-rw-r--r--board/zinger/runtime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/zinger/runtime.c b/board/zinger/runtime.c
index 4dda979d46..0724c68c81 100644
--- a/board/zinger/runtime.c
+++ b/board/zinger/runtime.c
@@ -231,6 +231,14 @@ void panic_reboot(void)
cpu_reset();
}
+enum system_image_copy_t system_get_image_copy(void)
+{
+ if (is_ro_mode())
+ return SYSTEM_IMAGE_RO;
+ else
+ return SYSTEM_IMAGE_RW;
+}
+
/* --- stubs --- */
void __hw_timer_enable_clock(int n, int enable)
{ /* Done in hardware init */ }