diff options
author | John Stultz <john.stultz@linaro.org> | 2017-11-08 09:57:39 -0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2017-11-08 09:57:39 -0800 |
commit | cf17095317ae5a2704c439e93459595e8f249579 (patch) | |
tree | 0169d848937191cf10d3432ba578659062e8738d | |
parent | e6478d47bb7040fd687b2ae9c24db38e84bbf6ab (diff) | |
parent | 460637eb3eacc7056830cedc5e85806ee9384f73 (diff) | |
download | device_linaro_bootloader_OpenPlatformPkg-cf17095317ae5a2704c439e93459595e8f249579.tar.gz device_linaro_bootloader_OpenPlatformPkg-cf17095317ae5a2704c439e93459595e8f249579.tar.bz2 device_linaro_bootloader_OpenPlatformPkg-cf17095317ae5a2704c439e93459595e8f249579.zip |
Merge commit '460637eb3eacc7056830cedc5e85806ee9384f73' into bootloader-update
-rw-r--r-- | Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c index d18115f..7e62ebb 100644 --- a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c +++ b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.c @@ -47,6 +47,7 @@ #define ADB_REBOOT_BOOTLOADER 0x77665500
#define MMC_BLOCK_SIZE 512
+#define HIKEY_ERASE_SIZE 4096
typedef struct _FASTBOOT_PARTITION_LIST {
LIST_ENTRY Link;
@@ -517,9 +518,9 @@ HiKeyFastbootPlatformGetVar ( AsciiStrCpy (Value, "raw");
}
} else if ( !AsciiStrCmp (Name, "erase-block-size")) {
- AsciiSPrint (Value, 12, "0x%llx", MMC_BLOCK_SIZE);
+ AsciiSPrint (Value, 12, "0x%llx", HIKEY_ERASE_SIZE);
} else if ( !AsciiStrCmp (Name, "logical-block-size")) {
- AsciiSPrint (Value, 12, "0x%llx", MMC_BLOCK_SIZE);
+ AsciiSPrint (Value, 12, "0x%llx", HIKEY_ERASE_SIZE);
} else {
*Value = '\0';
}
|