mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +00:00
bdk: minerva: add custom option in table
This commit is contained in:
parent
6c518435ec
commit
1f30b8deb7
3 changed files with 7 additions and 4 deletions
|
@ -171,7 +171,7 @@ void minerva_prep_boot_freq()
|
||||||
minerva_change_freq(FREQ_800);
|
minerva_change_freq(FREQ_800);
|
||||||
}
|
}
|
||||||
|
|
||||||
void minerva_prep_boot_l4t(u32 oc_freq)
|
void minerva_prep_boot_l4t(u32 oc_freq, u32 opt_custom)
|
||||||
{
|
{
|
||||||
if (!minerva_cfg)
|
if (!minerva_cfg)
|
||||||
return;
|
return;
|
||||||
|
@ -188,6 +188,8 @@ void minerva_prep_boot_l4t(u32 oc_freq)
|
||||||
memcpy(&mtc_cfg->mtc_table[mtc_cfg->table_entries],
|
memcpy(&mtc_cfg->mtc_table[mtc_cfg->table_entries],
|
||||||
&mtc_cfg->mtc_table[mtc_cfg->table_entries - 1],
|
&mtc_cfg->mtc_table[mtc_cfg->table_entries - 1],
|
||||||
sizeof(emc_table_t));
|
sizeof(emc_table_t));
|
||||||
|
|
||||||
|
mtc_cfg->mtc_table[mtc_cfg->table_entries].opt_custom = opt_custom;
|
||||||
mtc_cfg->mtc_table[mtc_cfg->table_entries].rate_khz = oc_freq;
|
mtc_cfg->mtc_table[mtc_cfg->table_entries].rate_khz = oc_freq;
|
||||||
mtc_cfg->table_entries++;
|
mtc_cfg->table_entries++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(u32 oc_freq);
|
void minerva_prep_boot_l4t(u32 oc_freq, u32 opt_custom);
|
||||||
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();
|
||||||
|
|
|
@ -481,7 +481,8 @@ typedef struct
|
||||||
u32 rate_khz;
|
u32 rate_khz;
|
||||||
u32 min_volt;
|
u32 min_volt;
|
||||||
u32 gpu_min_volt;
|
u32 gpu_min_volt;
|
||||||
char clock_src[32];
|
char clock_src[28];
|
||||||
|
u32 opt_custom;
|
||||||
u32 clk_src_emc;
|
u32 clk_src_emc;
|
||||||
u32 needs_training;
|
u32 needs_training;
|
||||||
u32 training_pattern;
|
u32 training_pattern;
|
||||||
|
|
Loading…
Reference in a new issue