mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
fusee-cpp: minor fixes (thanks @hexkyz)
This commit is contained in:
parent
349a16ce39
commit
3b460e94d4
2 changed files with 4 additions and 4 deletions
|
@ -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))) {
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue