diff --git a/fusee_cpp/program/source/fusee_sdram.cpp b/fusee_cpp/program/source/fusee_sdram.cpp index 377e7e4c2..8f0cbd970 100644 --- a/fusee_cpp/program/source/fusee_sdram.cpp +++ b/fusee_cpp/program/source/fusee_sdram.cpp @@ -153,7 +153,7 @@ namespace ams::nxboot { CLK_RST_REG_BITS_VALUE(PLLM_BASE_PLLM_DIVN, params->PllMFeedbackDivider), CLK_RST_REG_BITS_VALUE(PLLM_BASE_PLLM_DIVM, params->PllMInputDivider)); - /* Wait 300us ffor stability. */ + /* Wait 300us for stability. */ const auto stable_time = util::GetMicroSeconds() + 300; while (true) { if (reg::HasValue(CLKRST + CLK_RST_CONTROLLER_PLLM_BASE, CLK_RST_REG_BITS_ENUM(PLLM_BASE_PLLM_LOCK, LOCK))) { diff --git a/fusee_cpp/program/source/fusee_secure_initialize.cpp b/fusee_cpp/program/source/fusee_secure_initialize.cpp index 171430f74..48459e741 100644 --- a/fusee_cpp/program/source/fusee_secure_initialize.cpp +++ b/fusee_cpp/program/source/fusee_secure_initialize.cpp @@ -218,9 +218,9 @@ namespace ams::nxboot { /* Set HOLD_CKE_LOW_EN. */ reg::ReadWrite(PMC + APBDEV_PMC_CNTRL2, PMC_REG_BITS_ENUM(CNTRL2_HOLD_CKE_LOW_EN, ENABLE)); - /* Set bit 25 in APBDEV_PMC_SCRATCH188. */ - /* NOTE: This seems like a bug? It doesn't ever get used. */ - reg::ReadWrite(PMC + APBDEV_PMC_SCRATCH188, REG_BITS_VALUE(25, 1, 1)); + /* Set CFG2TMC_RAM_SVOP_PDP to 2. */ + /* NOTE: Nintendo acidentally writes this to the PMC instead of the APB due to a bug. */ + reg::ReadWrite(APB + APB_MISC_GP_ASDBGREG, APB_MISC_REG_BITS_VALUE(GP_ASDBGREG_CFG2TMC_RAM_SVOP_PDP, 2)); /* Set CLK_SYSTEM_RATE. */ reg::Write(CLKRST + CLK_RST_CONTROLLER_CLK_SYSTEM_RATE, CLK_RST_REG_BITS_VALUE(CLK_SYSTEM_RATE_HCLK_DIS, 0),