nyx: Add alternate power saving modes

T210:
By default max power savings is enabled.
By changing `newpowersave=` to 0, it reverts to the old behavior of smaller power savings.

This was added to mitigate some strange DRAM chips, hanging from constant frequency change of a 800 MHz - 1600 MHz back and forth.

T210B01:
Defaults to a simple loop with no power savings. That's because of untrained ram.
This commit is contained in:
CTCaer
2020-12-02 02:07:31 +02:00
parent c13eabcde8
commit cf175fc00d
4 changed files with 40 additions and 7 deletions

View File

@@ -64,6 +64,7 @@ void set_nyx_default_configuration()
n_cfg.verification = 1;
n_cfg.ums_emmc_rw = 0;
n_cfg.jc_disable = 0;
n_cfg.new_powersave = 1;
}
int create_config_entry()
@@ -205,6 +206,9 @@ int create_nyx_config_entry()
f_puts("\njcdisable=", &fp);
itoa(n_cfg.jc_disable, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\nnewpowersave=", &fp);
itoa(n_cfg.new_powersave, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\n", &fp);
f_close(&fp);