From 5120b70231d305cd8ab86b60148d5fdaa1fc829d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 27 Oct 2020 22:43:39 -0700 Subject: [PATCH] sdmmc: fix vref sel --- .../sdmmc/impl/sdmmc_sdmmc_controller.board.nintendo_nx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libvapours/source/sdmmc/impl/sdmmc_sdmmc_controller.board.nintendo_nx.cpp b/libraries/libvapours/source/sdmmc/impl/sdmmc_sdmmc_controller.board.nintendo_nx.cpp index 0b6d1f00f..d69d498e1 100644 --- a/libraries/libvapours/source/sdmmc/impl/sdmmc_sdmmc_controller.board.nintendo_nx.cpp +++ b/libraries/libvapours/source/sdmmc/impl/sdmmc_sdmmc_controller.board.nintendo_nx.cpp @@ -262,7 +262,7 @@ namespace ams::sdmmc::impl { this->SetSlewCodes(); /* Set vref sel. */ - reg::ReadWrite(this->sdmmc_registers->sdmemcomppadctrl, SD_REG_BITS_VALUE(SDMEMCOMPPADCTRL_SDMMC2TMC_CFG_SDMEMCOMP_VREF_SEL, this->GetOutboundTapValue())); + reg::ReadWrite(this->sdmmc_registers->sdmemcomppadctrl, SD_REG_BITS_VALUE(SDMEMCOMPPADCTRL_SDMMC2TMC_CFG_SDMEMCOMP_VREF_SEL, this->GetVrefSelValue())); /* Perform drive strength calibration at the new power. */ this->SetDriveCodeOffsets(bus_power);