summaryrefslogtreecommitdiff
path: root/core/cortex-m/mpu.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-11-19 16:15:57 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-15 22:46:21 +0000
commit91ca05cf3ac251c196397de8dc2d0cb8c91abd4c (patch)
tree8c295942d2e49073e61af3eb334de5441f802d11 /core/cortex-m/mpu.c
parent98a485bf439c6eeb83b90edb37dcf3c2e2e1213f (diff)
downloadchrome-ec-91ca05cf3ac251c196397de8dc2d0cb8c91abd4c.tar.gz
ryu_sh_loader: Add board directory for load image
Ryu sensor hub has asymectric RO/RW images. The first one is very limited (not i2c master, no sensor drivers, gesture recognition). Image size is alter to offer more space for the RW firmware image, compiled with ryu_sh board. To write RO image and basic RW image: flashrom -V -p ec:type=sh,block=0x800 --fast-verify -w /tmp/ryu_sh_loader/ec.bin To write the expected RW image: flashrom -V -p ec:type=sh,block=0x800 --fast-verify -w -i EC_RW:/tmp/ryu_sh/ec.bin BRANCH=ToT BUG=chrome-os-partner:33908 CQ-DEPEND=CL:231970,CL:233233 TEST=load on Ryu, confirmed limited operation. Change-Id: Ib976e2b048935adfb9b2b072c071db5be2bc1c09 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/231984 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/cortex-m/mpu.c')
-rw-r--r--core/cortex-m/mpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/mpu.c b/core/cortex-m/mpu.c
index 7b4deaa0a9..8513f972bd 100644
--- a/core/cortex-m/mpu.c
+++ b/core/cortex-m/mpu.c
@@ -147,7 +147,7 @@ int mpu_lock_ro_flash(void)
int mpu_lock_rw_flash(void)
{
return mpu_lock_region(REGION_FLASH_MEMORY, CONFIG_FW_RW_OFF,
- CONFIG_FW_IMAGE_SIZE, MPU_ATTR_FLASH_MEMORY);
+ CONFIG_FW_RW_SIZE, MPU_ATTR_FLASH_MEMORY);
}
int mpu_pre_init(void)