mmc_disk: disable currently non working code
Switching to 4 bit mode requires some more coordination as the host controller must also be switched, right after sending this command. I will revisit this, but the previous commit was accidentally pushed to master. At least we get the 25MHz clock instead of 400kHz, that should already be quite a performance improvement.
This commit is contained in:
parent
f8650bc2db
commit
2aa5a0353d
@ -170,6 +170,7 @@ mmc_block_get_geometry(mmc_disk_driver_info* info, device_geometry* geometry)
|
|||||||
geometry->read_only = false; // TODO check write protect switch?
|
geometry->read_only = false; // TODO check write protect switch?
|
||||||
geometry->write_once = false;
|
geometry->write_once = false;
|
||||||
|
|
||||||
|
#if 0
|
||||||
// This function will be called before all data transfers, so we use this
|
// This function will be called before all data transfers, so we use this
|
||||||
// opportunity to switch the card to 4-bit data transfers (instead of the
|
// opportunity to switch the card to 4-bit data transfers (instead of the
|
||||||
// default 1 bit mode)
|
// default 1 bit mode)
|
||||||
@ -179,6 +180,7 @@ mmc_block_get_geometry(mmc_disk_driver_info* info, device_geometry* geometry)
|
|||||||
info->rca << 16, &cardStatus);
|
info->rca << 16, &cardStatus);
|
||||||
info->mmc->execute_command(info->parent, info->rca, SD_SET_BUS_WIDTH,
|
info->mmc->execute_command(info->parent, info->rca, SD_SET_BUS_WIDTH,
|
||||||
k4BitMode, &cardStatus);
|
k4BitMode, &cardStatus);
|
||||||
|
#endif
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user