Commit ffe1efb8 authored by Angus Ainslie's avatar Angus Ainslie
Browse files

librem5: helper.c: disable the m4 clock



After the m4 has loaded the DDR firmware we don't need the clock running.
Signed-off-by: default avatarAngus Ainslie <angus@akkea.ca>
parent 783971ff
......@@ -264,6 +264,7 @@ void M4_load_firmware( enum fw_type type )
}*/
}
printf("M4 complete: %s\n", (status == ST_SUCCESS) ? "success" : "fail" );
/*
printf("ddr trainging code loaded - type 0x%x\n", type);
writel(0, TCMU_CMD_A53);
......@@ -447,6 +448,9 @@ void ddr_load_train_code(enum fw_type type)
//if( boot_M4() == ST_READY )
M4_load_firmware( type );
printf("Disabling Cortex M4 clock\n");
clock_enable(CCGR_M4, 0);
}
#else /* !defined(CONFIG_M4_LOAD_DDR_TRAINING) */
void ddr_load_train_code(enum fw_type type)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment