From 0cf817a591e05cc69726df8025b576c2ca146071 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 4 May 2022 12:48:57 +0200 Subject: [PATCH] libpit: MMC4096 is really UFS Change name to better describe the hardware. --- heimdall/source/FlashAction.cpp | 4 ++-- heimdall/source/Interface.cpp | 4 ++-- libpit/source/libpit.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/heimdall/source/FlashAction.cpp b/heimdall/source/FlashAction.cpp index 095822c..0fd05fe 100644 --- a/heimdall/source/FlashAction.cpp +++ b/heimdall/source/FlashAction.cpp @@ -303,11 +303,11 @@ static bool flashPartitions(BridgeManager *bridgeManager, const vectorFindEntry(it->argumentName); if (part->GetDeviceType() != PitEntry::kDeviceTypeMMC && - part->GetDeviceType() != PitEntry::kDeviceTypeMMC4096) + part->GetDeviceType() != PitEntry::kDeviceTypeUFS) continue; unsigned long partitionSize = part->GetBlockCount(); unsigned int blockSize = 512; - if (part->GetDeviceType() == PitEntry::kDeviceTypeMMC4096) + if (part->GetDeviceType() == PitEntry::kDeviceTypeUFS) blockSize = 4096; if (partitionSize > 0 && it->fileSize > partitionSize*blockSize) { diff --git a/heimdall/source/Interface.cpp b/heimdall/source/Interface.cpp index 8ea7845..a9b5ee0 100644 --- a/heimdall/source/Interface.cpp +++ b/heimdall/source/Interface.cpp @@ -257,8 +257,8 @@ void Interface::PrintPit(const PitData *pitData) Interface::Print("All (?)"); break; - case PitEntry::kDeviceTypeMMC4096: - Interface::Print("MMC 4096"); + case PitEntry::kDeviceTypeUFS: + Interface::Print("UFS"); break; default: diff --git a/libpit/source/libpit.h b/libpit/source/libpit.h index ef84806..3ec90ee 100644 --- a/libpit/source/libpit.h +++ b/libpit/source/libpit.h @@ -62,7 +62,7 @@ namespace libpit kDeviceTypeFile, // FAT kDeviceTypeMMC, kDeviceTypeAll, // ? - kDeviceTypeMMC4096 = 8 // block size 4096 + kDeviceTypeUFS = 8 }; enum