diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2017-08-26 16:05:30 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@linaro.org> | 2017-08-26 16:05:30 +0800 |
commit | 1793ce7aeae2e104a500e1dd4709ecd06d11a0ff (patch) | |
tree | 88f2fb7484d3be55c9a57d7ed81cb5a25af541e7 /Platforms/Hisilicon/HiKey | |
parent | 11911fa90a86f79696f581cce9e699f4e22b4809 (diff) | |
download | device_linaro_bootloader_OpenPlatformPkg-1793ce7aeae2e104a500e1dd4709ecd06d11a0ff.tar.gz device_linaro_bootloader_OpenPlatformPkg-1793ce7aeae2e104a500e1dd4709ecd06d11a0ff.tar.bz2 device_linaro_bootloader_OpenPlatformPkg-1793ce7aeae2e104a500e1dd4709ecd06d11a0ff.zip |
Platforms/HiKey: fix to clear reboot reason
Flush caches after reboot reason is cleared. Otherwise, the clearing
feature doesn't work in release mode.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Diffstat (limited to 'Platforms/Hisilicon/HiKey')
-rw-r--r-- | Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c b/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c index 2137b0e..952e3ef 100644 --- a/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c +++ b/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c @@ -323,6 +323,7 @@ VirtualKeyboardClear ( } if (MmioRead32 (ADB_REBOOT_ADDRESS) == ADB_REBOOT_BOOTLOADER) { MmioWrite32 (ADB_REBOOT_ADDRESS, ADB_REBOOT_NONE); + WriteBackInvalidateDataCacheRange ((VOID *)ADB_REBOOT_ADDRESS, 4); } return EFI_SUCCESS; } |