summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Wu <yihui.wu@amlogic.com>2019-07-03 08:43:05 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-18 07:03:41 +0300
commit42cace3e87f00444a8fe8f107d8d685460c08da5 (patch)
tree117ddb7c335b33d9bfe431c636044ff4b75e1203
parent219729b117019299817b55062e7af451aa88e289 (diff)
downloadu-boot-42cace3e87f00444a8fe8f107d8d685460c08da5.tar.xz
factoryBurn: usb: fix not erase ddr parameters [1/1]
PD#SWPL-10674 Problem: ddr para not updated after usb burning Solution: add ddr para erasing if user choose erase flash Verify: test by ouyang with u200 Change-Id: I143b3a11eb584292400c31814e0f5fe95b2d109d
-rw-r--r--drivers/usb/gadget/v2_burning/v2_common/optimus_download.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/v2_burning/v2_common/optimus_download.c b/drivers/usb/gadget/v2_burning/v2_common/optimus_download.c
index 93e3782080..cdbe2e06c6 100644
--- a/drivers/usb/gadget/v2_burning/v2_common/optimus_download.c
+++ b/drivers/usb/gadget/v2_burning/v2_common/optimus_download.c
@@ -859,6 +859,14 @@ int optimus_storage_init(int toErase)
// if (fdtsz < _dtb_is_loaded)
memmove((char*)dtbLoadedAddr, (char*)fdtAddr, fdtsz);
}
+ if (toErase > 0) {
+ extern int store_ddr_parameter_erase(void);
+ DWN_MSG("to erase ddr parameters\n");
+ if (store_ddr_parameter_erase()) {
+ DWN_ERR("Fail in erase ddr parameters\n");
+ return -__LINE__;
+ }
+ }
}
return ret;