From f6bc4abfd0950ea116fcdc5603d32fddf4f0e946 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 17 Dec 2018 17:17:19 -0800 Subject: [PATCH] warmboot: implement cluster_power_on_cpu --- exosphere/lp0fw/src/cluster.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/exosphere/lp0fw/src/cluster.c b/exosphere/lp0fw/src/cluster.c index f29239502..a3040216b 100644 --- a/exosphere/lp0fw/src/cluster.c +++ b/exosphere/lp0fw/src/cluster.c @@ -133,9 +133,16 @@ void cluster_initialize_cpu(void) { /* Perform RAM repair if necessary. */ 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) { - /* TODO */ + /* Enable power to CE0 partition. */ + cluster_pmc_enable_partition(0x4000, 0x10E); + + /* Clear CPU reset. */ + CLK_RST_CONTROLLER_RST_CPUG_CMPLX_CLR_0 = 0x10001; } \ No newline at end of file