mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
boot: use correct clock out setting on < 6.0
This commit is contained in:
parent
625ac5b357
commit
a4ee4d20ad
1 changed files with 4 additions and 2 deletions
|
@ -18,9 +18,11 @@
|
|||
#include "boot_registers_pmc.hpp"
|
||||
|
||||
static constexpr u32 PmcClkOutCntrl = PmcBase + APBDEV_PMC_CLK_OUT_CNTRL;
|
||||
static constexpr u32 InitialClockOutMask = 0xC4C4;
|
||||
static constexpr u32 InitialClockOutMask1x = 0x00C4;
|
||||
static constexpr u32 InitialClockOutMask6x = 0xC4C4;
|
||||
|
||||
void Boot::SetInitialClockConfiguration() {
|
||||
/* Write mask to APBDEV_PMC_PWR_DET, then clear APBDEV_PMC_PWR_DET_VAL. */
|
||||
WritePmcRegister(PmcClkOutCntrl, InitialClockOutMask, InitialClockOutMask);
|
||||
const u32 mask = GetRuntimeFirmwareVersion() >= FirmwareVersion_600 ? InitialClockOutMask6x : InitialClockOutMask1x;
|
||||
WritePmcRegister(PmcClkOutCntrl, mask, mask);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue