Skip to content

Commit

Permalink
Merge pull request #36 from johnstultz-work/hikey-aosp
Browse files Browse the repository at this point in the history
HiKeyFastboot: Add short delay after flush to avoid reboot hang
  • Loading branch information
hzhuang1 authored Oct 26, 2016
2 parents c9c1278 + e3076d9 commit f70886c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/PrintLib.h>
#include <Library/TimerLib.h>

#include <Guid/HiKeyVariable.h>

Expand Down Expand Up @@ -557,6 +558,7 @@ HiKeyFastbootPlatformFlashPartition (
}

BlockIo->FlushBlocks(BlockIo);
MicroSecondDelay (50000);

return Status;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
UefiBootServicesTableLib
UefiRuntimeServicesTableLib
UefiDriverEntryPoint
TimerLib

[Protocols]
gAndroidFastbootPlatformProtocolGuid
Expand Down

0 comments on commit f70886c

Please sign in to comment.