summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
authorDivya Jyothi <divya.jyothi@intel.com>2015-05-14 10:11:13 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-14 22:18:34 +0000
commitb99f00b7f974faec2329f21100f72e0a332be1f2 (patch)
treec7602436bf5724e9dc841edb12caca752339c017 /common/system.c
parent5ea69a7b3b06d8877fc0d420a6892b1db42cd290 (diff)
downloadchrome-ec-b99f00b7f974faec2329f21100f72e0a332be1f2.tar.gz
mec1322: Added support for sysjump.stabilize-7173.B
changes added to support flashrom are: sysjump support to be able to copy the RO/RW image and jump to it without causing AP to reboot while its alreday ON. LPC init should be reinitialized on sysjump corrected gpio_set_flags_by_mask to make sure we update the register only for GPIO_LOW condition and not all else conditions. BUG=chrome-os-partner:38103 TEST=commands : flashrom -p ec -w ec.bin flashrom -p ec -r ec.bin BRANCH=none Change-Id: I23892f0378d756052030e73034c3acdd41477e34 Signed-off-by: Divya Jyothi <divya.jyothi@intel.com> Signed-off-by: Shamile Khan <shamile.khan@intel.com> Reviewed-on: https://chromium-review.googlesource.com/272000 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/system.c b/common/system.c
index 821cfd7cd3..64f2b24579 100644
--- a/common/system.c
+++ b/common/system.c
@@ -494,7 +494,9 @@ int system_run_image_copy(enum system_image_copy_t copy)
#ifdef CONFIG_CODERAM_ARCH
/* Jump to little FW for code ram architecture */
- init_addr = system_get_lfw_address(base);
+ init_addr = system_get_lfw_address();
+
+ system_set_image_copy(copy);
#else
/* Make sure the reset vector is inside the destination image */
init_addr = *(uintptr_t *)(base + 4);