From 95ea672601681d01166cf2b8c6cbd297dcc9295a Mon Sep 17 00:00:00 2001 From: Mulin Chao Date: Thu, 17 Sep 2015 21:21:00 +0800 Subject: nuc: Fixed flash layout issue for npcx Fixed flash layout issue for npcx Modified drivers: 1. config_flash_layout.h: Fixed layout issue for npcx 2. flash_ec: add flashrom support for boards without JTAG in servo connector BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: I0b9b679c52b8a8e2a26c278b5024d0350fb77338 Reviewed-on: https://chromium-review.googlesource.com/300392 Commit-Ready: Mulin Chao Tested-by: Mulin Chao Reviewed-by: Mulin Chao Reviewed-by: Shawn N --- chip/npcx/spiflashfw/ec_npcxflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/npcx/spiflashfw') diff --git a/chip/npcx/spiflashfw/ec_npcxflash.c b/chip/npcx/spiflashfw/ec_npcxflash.c index ef62ac97dc..6f46a4374a 100644 --- a/chip/npcx/spiflashfw/ec_npcxflash.c +++ b/chip/npcx/spiflashfw/ec_npcxflash.c @@ -220,7 +220,7 @@ int sspi_flash_verify(int offset, int size, const char *data) uint8_t *ptr_flash; uint8_t *ptr_mram; - ptr_flash = (uint8_t *)(CONFIG_PROGRAM_MEMORY_BASE + offset); + ptr_flash = (uint8_t *)(CONFIG_MAPPED_STORAGE_BASE + offset); ptr_mram = (uint8_t *)data; result = 1; -- cgit v1.2.1