fix live uv
This commit is contained in:
@@ -1249,8 +1249,6 @@ MarikoCpuUvEntry marikoCpuUvHigh[12] = {
|
|||||||
{0x0, 0xdfff, 0, 0x27f07ff},
|
{0x0, 0xdfff, 0, 0x27f07ff},
|
||||||
};
|
};
|
||||||
void Board::SetCpuUvLevel(u32 levelLow, u32 levelHigh, u32 tbreakPoint) {
|
void Board::SetCpuUvLevel(u32 levelLow, u32 levelHigh, u32 tbreakPoint) {
|
||||||
return;
|
|
||||||
|
|
||||||
u32* tune0_ptr = (u32*)(cldvfs + CL_DVFS_TUNE0_0);
|
u32* tune0_ptr = (u32*)(cldvfs + CL_DVFS_TUNE0_0);
|
||||||
u32* tune1_ptr = (u32*)(cldvfs + CL_DVFS_TUNE1_0);
|
u32* tune1_ptr = (u32*)(cldvfs + CL_DVFS_TUNE1_0);
|
||||||
if(Board::GetSocType() == SysClkSocType_Mariko) {
|
if(Board::GetSocType() == SysClkSocType_Mariko) {
|
||||||
|
|||||||
@@ -766,7 +766,7 @@ void ClockManager::HandleFreqReset(SysClkModule module, bool isBoost) {
|
|||||||
case SysClkModule_CPU:
|
case SysClkModule_CPU:
|
||||||
if(!(isBoost || (this->config->GetConfigValue(HocClkConfigValue_OverwriteBoostMode) && isBoost)))
|
if(!(isBoost || (this->config->GetConfigValue(HocClkConfigValue_OverwriteBoostMode) && isBoost)))
|
||||||
Board::ResetToStockCpu();
|
Board::ResetToStockCpu();
|
||||||
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (this->config->GetConfigValue(KipConfigValue_eristaCpuUV) && Board::GetSocType() == SysClkSocType_Erista)) {
|
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (kipAvailable && Board::GetSocType() == SysClkSocType_Erista)) {
|
||||||
if(Board::GetSocType() == SysClkSocType_Erista)
|
if(Board::GetSocType() == SysClkSocType_Erista)
|
||||||
Board::SetCpuUvLevel(this->config->GetConfigValue(KipConfigValue_eristaCpuUV), 0, 1581000000);
|
Board::SetCpuUvLevel(this->config->GetConfigValue(KipConfigValue_eristaCpuUV), 0, 1581000000);
|
||||||
else
|
else
|
||||||
@@ -860,7 +860,7 @@ void ClockManager::SetClocks(bool isBoost) {
|
|||||||
Board::SetHz((SysClkModule)module, nearestHz);
|
Board::SetHz((SysClkModule)module, nearestHz);
|
||||||
this->context->freqs[module] = nearestHz;
|
this->context->freqs[module] = nearestHz;
|
||||||
|
|
||||||
if(module == SysClkModule_CPU && this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (this->config->GetConfigValue(KipConfigValue_eristaCpuUV) && Board::GetSocType() == SysClkSocType_Erista))
|
if(module == SysClkModule_CPU && (this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (kipAvailable && Board::GetSocType() == SysClkSocType_Erista)))
|
||||||
{
|
{
|
||||||
HandleCpuUv();
|
HandleCpuUv();
|
||||||
}
|
}
|
||||||
@@ -896,7 +896,7 @@ void ClockManager::Tick()
|
|||||||
|
|
||||||
void ClockManager::ResetToStockClocks() {
|
void ClockManager::ResetToStockClocks() {
|
||||||
Board::ResetToStockCpu();
|
Board::ResetToStockCpu();
|
||||||
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (this->config->GetConfigValue(KipConfigValue_eristaCpuUV) && Board::GetSocType() == SysClkSocType_Erista))
|
if(this->config->GetConfigValue(HorizonOCConfigValue_LiveCpuUv) || (kipAvailable && Board::GetSocType() == SysClkSocType_Erista))
|
||||||
{
|
{
|
||||||
if(Board::GetSocType() == SysClkSocType_Erista)
|
if(Board::GetSocType() == SysClkSocType_Erista)
|
||||||
Board::SetCpuUvLevel(this->config->GetConfigValue(KipConfigValue_eristaCpuUV), 0, 1581000000);
|
Board::SetCpuUvLevel(this->config->GetConfigValue(KipConfigValue_eristaCpuUV), 0, 1581000000);
|
||||||
|
|||||||
Reference in New Issue
Block a user