~grimler/Heimdall

0cf817a591e05cc69726df8025b576c2ca146071 — Henrik Grimler 2 years ago c351630
libpit: MMC4096 is really UFS

Change name to better describe the hardware.
3 files changed, 5 insertions(+), 5 deletions(-)

M heimdall/source/FlashAction.cpp
M heimdall/source/Interface.cpp
M libpit/source/libpit.h
M heimdall/source/FlashAction.cpp => heimdall/source/FlashAction.cpp +2 -2
@@ 303,11 303,11 @@ static bool flashPartitions(BridgeManager *bridgeManager, const vector<Partition
		{
			const PitEntry *part = pitData->FindEntry(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)
			{

M heimdall/source/Interface.cpp => heimdall/source/Interface.cpp +2 -2
@@ 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:

M libpit/source/libpit.h => libpit/source/libpit.h +1 -1
@@ 62,7 62,7 @@ namespace libpit
				kDeviceTypeFile, // FAT
				kDeviceTypeMMC,
				kDeviceTypeAll, // ?
				kDeviceTypeMMC4096 = 8 // block size 4096
				kDeviceTypeUFS = 8
			};

			enum