libpit: MMC4096 is really UFS
Change name to better describe the hardware.
This commit is contained in:
parent
c3516307d2
commit
0cf817a591
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace libpit
|
|||
kDeviceTypeFile, // FAT
|
||||
kDeviceTypeMMC,
|
||||
kDeviceTypeAll, // ?
|
||||
kDeviceTypeMMC4096 = 8 // block size 4096
|
||||
kDeviceTypeUFS = 8
|
||||
};
|
||||
|
||||
enum
|
||||
|
|
Loading…
Reference in New Issue