1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-26 18:15:20 +00:00

bdk: minerva: do not handle oc freq

Arachne already handles it.
This commit is contained in:
CTCaer 2023-08-22 16:44:41 +03:00
parent 01a8f30925
commit ce42e27f45
2 changed files with 6 additions and 3 deletions

View File

@ -171,7 +171,7 @@ void minerva_prep_boot_freq()
minerva_change_freq(FREQ_800); minerva_change_freq(FREQ_800);
} }
void minerva_prep_boot_l4t(int oc_freq) void minerva_prep_boot_l4t(u32 oc_freq)
{ {
if (!minerva_cfg) if (!minerva_cfg)
return; return;
@ -201,7 +201,10 @@ void minerva_prep_boot_l4t(int oc_freq)
{ {
mtc_cfg->rate_to = mtc_cfg->mtc_table[i].rate_khz; mtc_cfg->rate_to = mtc_cfg->mtc_table[i].rate_khz;
// Skip already trained frequencies. // Skip already trained frequencies.
if (mtc_cfg->rate_to == FREQ_204 || mtc_cfg->rate_to == FREQ_800 || mtc_cfg->rate_to == FREQ_1600) if (mtc_cfg->rate_to == FREQ_204 ||
mtc_cfg->rate_to == FREQ_800 ||
mtc_cfg->rate_to == FREQ_1600 ||
mtc_cfg->rate_to == oc_freq) // Skip OC freq since Arachne handles it.
continue; continue;
// Train frequency. // Train frequency.

View File

@ -63,7 +63,7 @@ u32 minerva_init();
void minerva_change_freq(minerva_freq_t freq); void minerva_change_freq(minerva_freq_t freq);
void minerva_sdmmc_la_program(void *table, bool t210b01); void minerva_sdmmc_la_program(void *table, bool t210b01);
void minerva_prep_boot_freq(); void minerva_prep_boot_freq();
void minerva_prep_boot_l4t(int oc_freq); void minerva_prep_boot_l4t(u32 oc_freq);
void minerva_periodic_training(); void minerva_periodic_training();
emc_table_t *minerva_get_mtc_table(); emc_table_t *minerva_get_mtc_table();
int minerva_get_mtc_table_entries(); int minerva_get_mtc_table_entries();