mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 11:02:45 +02:00
fusee_cpp: add logic for loading mtc overlays
This commit is contained in:
parent
797c61b066
commit
4043c52691
@ -153,7 +153,6 @@ namespace ams::clkrst {
|
|||||||
|
|
||||||
reg::ReadWrite(g_register_address + CLK_RST_CONTROLLER_PLLC_BASE, CLK_RST_REG_BITS_ENUM(PLLC_BASE_PLLC_ENABLE, DISABLE));
|
reg::ReadWrite(g_register_address + CLK_RST_CONTROLLER_PLLC_BASE, CLK_RST_REG_BITS_ENUM(PLLC_BASE_PLLC_ENABLE, DISABLE));
|
||||||
reg::ReadWrite(g_register_address + CLK_RST_CONTROLLER_PLLC_BASE, CLK_RST_REG_BITS_ENUM(PLLC_BASE_PLLC_REF_DIS, REF_DISABLE));
|
reg::ReadWrite(g_register_address + CLK_RST_CONTROLLER_PLLC_BASE, CLK_RST_REG_BITS_ENUM(PLLC_BASE_PLLC_REF_DIS, REF_DISABLE));
|
||||||
reg::ReadWrite(g_register_address + CLK_RST_CONTROLLER_PLLC_BASE, CLK_RST_REG_BITS_ENUM(PLLC_BASE_PLLC_REF_DIS, REF_DISABLE));
|
|
||||||
reg::SetBits(g_register_address + CLK_RST_CONTROLLER_PLLC_MISC1, (1u << 27));
|
reg::SetBits(g_register_address + CLK_RST_CONTROLLER_PLLC_MISC1, (1u << 27));
|
||||||
reg::SetBits(g_register_address + CLK_RST_CONTROLLER_PLLC_MISC, (1u << 30));
|
reg::SetBits(g_register_address + CLK_RST_CONTROLLER_PLLC_MISC, (1u << 30));
|
||||||
util::WaitMicroSeconds(10);
|
util::WaitMicroSeconds(10);
|
||||||
@ -281,6 +280,11 @@ namespace ams::clkrst {
|
|||||||
rate = BpmpClockRate_589MHz;
|
rate = BpmpClockRate_589MHz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Change the rate, if we need to. */
|
||||||
|
if (rate == prev_rate) {
|
||||||
|
return prev_rate;
|
||||||
|
}
|
||||||
|
|
||||||
/* Configure the rate. */
|
/* Configure the rate. */
|
||||||
if (rate != BpmpClockRate_408MHz) {
|
if (rate != BpmpClockRate_408MHz) {
|
||||||
/* If we were previously overclocked, restore to PLLP_OUT. */
|
/* If we were previously overclocked, restore to PLLP_OUT. */
|
||||||
|
Loading…
Reference in New Issue
Block a user