sysclk: fix erista cpu uv

This commit is contained in:
souldbminersmwc
2026-02-23 18:45:39 -05:00
parent 749e5147df
commit eca6ab2297

View File

@@ -766,7 +766,7 @@ void ClockManager::HandleFreqReset(SysClkModule module, bool isBoost) {
case SysClkModule_CPU:
if(!(isBoost || (this->config->GetConfigValue(HocClkConfigValue_OverwriteBoostMode) && isBoost)))
Board::ResetToStockCpu();
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv)) {
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (this->config->GetConfigValue(KipConfigValue_eristaCpuUV) && Board::GetSocType() == SysClkSocType_Erista)) {
if(Board::GetSocType() == SysClkSocType_Erista)
Board::SetCpuUvLevel(this->config->GetConfigValue(KipConfigValue_eristaCpuUV), 0, 1581000000);
else
@@ -860,7 +860,7 @@ void ClockManager::SetClocks(bool isBoost) {
Board::SetHz((SysClkModule)module, nearestHz);
this->context->freqs[module] = nearestHz;
if(module == SysClkModule_CPU && this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv))
if(module == SysClkModule_CPU && this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (this->config->GetConfigValue(KipConfigValue_eristaCpuUV) && Board::GetSocType() == SysClkSocType_Erista))
{
HandleCpuUv();
}
@@ -896,7 +896,7 @@ void ClockManager::Tick()
void ClockManager::ResetToStockClocks() {
Board::ResetToStockCpu();
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv))
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (this->config->GetConfigValue(KipConfigValue_eristaCpuUV) && Board::GetSocType() == SysClkSocType_Erista))
{
if(Board::GetSocType() == SysClkSocType_Erista)
Board::SetCpuUvLevel(this->config->GetConfigValue(KipConfigValue_eristaCpuUV), 0, 1581000000);