diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2016-10-26 22:30:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 22:30:55 +0800 |
commit | f70886cd45a12a0ce961752de55dc70a878f8a15 (patch) | |
tree | c6785b0272ab92e9fd5e0cc4f1d0fcf35cfc6918 | |
parent | c9c12781952831bb1924b79ad3a1035398a18cd5 (diff) | |
parent | e3076d9f7365d94aaf8e94836d58a7f624122a7e (diff) | |
download | OpenPlatformPkg-f70886cd45a12a0ce961752de55dc70a878f8a15.tar.gz |
Merge pull request #36 from johnstultz-work/hikey-aosp
HiKeyFastboot: Add short delay after flush to avoid reboot hang
-rw-r--r-- | Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c | 2 | ||||
-rw-r--r-- | Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c index d4176fe..49551ae 100644 --- a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c +++ b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c @@ -33,6 +33,7 @@ #include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/PrintLib.h>
+#include <Library/TimerLib.h>
#include <Guid/HiKeyVariable.h>
@@ -557,6 +558,7 @@ HiKeyFastbootPlatformFlashPartition ( }
BlockIo->FlushBlocks(BlockIo);
+ MicroSecondDelay (50000);
return Status;
}
diff --git a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf index e59b2fc..25c09d2 100644 --- a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf +++ b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf @@ -35,6 +35,7 @@ UefiBootServicesTableLib
UefiRuntimeServicesTableLib
UefiDriverEntryPoint
+ TimerLib
[Protocols]
gAndroidFastbootPlatformProtocolGuid
|