sc7: Add T210B01 SC7/LP0 (deep sleep) support

Note to future self: Almost a month passed and nothing changed, have fun cleaning that in the end...
This commit is contained in:
CTCaer
2020-06-26 19:00:30 +03:00
parent 29dc122dd4
commit d0a73bdc72
10 changed files with 2786 additions and 31 deletions

View File

@@ -1522,7 +1522,9 @@ void ipl_main()
h_cfg.errors |= !sd_mount() ? ERR_SD_BOOT_EN : 0;
// Save sdram lp0 config.
if (!ianos_loader("bootloader/sys/libsys_lp0.bso", DRAM_LIB, (void *)sdram_get_params_patched()))
void *sdram_params =
hw_get_chip_id() == GP_HIDREV_MAJOR_T210 ? sdram_get_params_patched() : sdram_get_params_t210b01();
if (!ianos_loader("bootloader/sys/libsys_lp0.bso", DRAM_LIB, sdram_params))
h_cfg.errors |= ERR_LIBSYS_LP0;
// Train DRAM and switch to max frequency.