mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
sdmmc: fix wrong mode select for GcAsic(Fpga)Speed
This commit is contained in:
parent
59a295db79
commit
77cc53227a
1 changed files with 6 additions and 2 deletions
|
@ -388,12 +388,16 @@ namespace ams::sdmmc::impl {
|
||||||
break;
|
break;
|
||||||
case SpeedMode_SdCardSdr50:
|
case SpeedMode_SdCardSdr50:
|
||||||
case SpeedMode_SdCardSdr104:
|
case SpeedMode_SdCardSdr104:
|
||||||
case SpeedMode_GcAsicFpgaSpeed:
|
|
||||||
case SpeedMode_GcAsicSpeed:
|
|
||||||
/* Set as SDR104, 1.8V. */
|
/* Set as SDR104, 1.8V. */
|
||||||
reg::ReadWrite(m_sdmmc_registers->sd_host_standard_registers.host_control2, SD_REG_BITS_ENUM(HOST_CONTROL2_UHS_MODE_SELECT, SDR104));
|
reg::ReadWrite(m_sdmmc_registers->sd_host_standard_registers.host_control2, SD_REG_BITS_ENUM(HOST_CONTROL2_UHS_MODE_SELECT, SDR104));
|
||||||
reg::ReadWrite(m_sdmmc_registers->sd_host_standard_registers.host_control2, SD_REG_BITS_ENUM(HOST_CONTROL2_1_8V_SIGNALING_ENABLE, 1_8V_SIGNALING));
|
reg::ReadWrite(m_sdmmc_registers->sd_host_standard_registers.host_control2, SD_REG_BITS_ENUM(HOST_CONTROL2_1_8V_SIGNALING_ENABLE, 1_8V_SIGNALING));
|
||||||
break;
|
break;
|
||||||
|
case SpeedMode_GcAsicFpgaSpeed:
|
||||||
|
case SpeedMode_GcAsicSpeed:
|
||||||
|
/* Set as HS200, 1.8V. */
|
||||||
|
reg::ReadWrite(m_sdmmc_registers->sd_host_standard_registers.host_control2, SD_REG_BITS_ENUM(HOST_CONTROL2_UHS_MODE_SELECT, HS200));
|
||||||
|
reg::ReadWrite(m_sdmmc_registers->sd_host_standard_registers.host_control2, SD_REG_BITS_ENUM(HOST_CONTROL2_1_8V_SIGNALING_ENABLE, 1_8V_SIGNALING));
|
||||||
|
break;
|
||||||
AMS_UNREACHABLE_DEFAULT_CASE();
|
AMS_UNREACHABLE_DEFAULT_CASE();
|
||||||
}
|
}
|
||||||
SdHostStandardController::EnsureControl();
|
SdHostStandardController::EnsureControl();
|
||||||
|
|
Loading…
Reference in a new issue