summaryrefslogtreecommitdiff
path: root/common/store_interface.c
diff options
context:
space:
mode:
authorWenjie Li <wenjie.li@amlogic.com>2016-04-10 19:39:41 +0800
committerWenjie Li <wenjie.li@amlogic.com>2016-04-10 19:41:43 +0800
commit78238cf26914a08016f3c27ac385d7e2dc43ed03 (patch)
treebaa1034d9f8990a02e337ccda73c80055c8dbf55 /common/store_interface.c
parent82d7f8904a4eb349b4149046d20cf6fe5f1fb2c3 (diff)
downloadu-boot-odroid-c1-78238cf26914a08016f3c27ac385d7e2dc43ed03.tar.gz
PD#119319: sd/emmc: fixed store rom_write command offset 512 bytes
Change-Id: I8311f78334d965e4019910dfe1fc17c3331ca7b7
Diffstat (limited to 'common/store_interface.c')
-rw-r--r--common/store_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/store_interface.c b/common/store_interface.c
index 0b7f487ce0..72e13c9952 100644
--- a/common/store_interface.c
+++ b/common/store_interface.c
@@ -1008,7 +1008,7 @@ static int do_store_rom_write(cmd_tbl_t * cmdtp, int flag, int argc, char * cons
#endif
#endif// #if defined(CONFIG_AML_SECU_BOOT_V2)
if (cpu_id.family_id >= MESON_CPU_MAJOR_ID_GXL)
- off += 1;
+ off += 512;
sprintf(str, "amlmmc write bootloader 0x%llx 0x%llx 0x%llx", addr, off, size);
store_dbg("command: %s\n", str);
ret = run_command(str, 0);