mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-26 13:52:21 +00:00
warmboot: implement cluster_power_on_cpu
This commit is contained in:
parent
7a704827f1
commit
f6bc4abfd0
1 changed files with 9 additions and 2 deletions
|
@ -133,9 +133,16 @@ void cluster_initialize_cpu(void) {
|
||||||
/* Perform RAM repair if necessary. */
|
/* Perform RAM repair if necessary. */
|
||||||
flow_perform_ram_repair();
|
flow_perform_ram_repair();
|
||||||
|
|
||||||
/* TODO: This function is enormous */
|
/* Enable power to the C0NC partition. */
|
||||||
|
cluster_pmc_enable_partition(0x8000, 0x10F);
|
||||||
|
|
||||||
|
/* TODO: other shit */
|
||||||
}
|
}
|
||||||
|
|
||||||
void cluster_power_on_cpu(void) {
|
void cluster_power_on_cpu(void) {
|
||||||
/* TODO */
|
/* Enable power to CE0 partition. */
|
||||||
|
cluster_pmc_enable_partition(0x4000, 0x10E);
|
||||||
|
|
||||||
|
/* Clear CPU reset. */
|
||||||
|
CLK_RST_CONTROLLER_RST_CPUG_CMPLX_CLR_0 = 0x10001;
|
||||||
}
|
}
|
Loading…
Reference in a new issue