all: fix errors
This commit is contained in:
@@ -175,14 +175,14 @@ namespace ams::ldr::hoc::pcv {
|
|||||||
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.marikoGpuVoltArray[i] * 1000));
|
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.marikoGpuVoltArray[i] * 1000));
|
||||||
ClearCvbPllEntry(entry);
|
ClearCvbPllEntry(entry);
|
||||||
} else {
|
} else {
|
||||||
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (entry->cvb_pll_param.c0 - C.commonGpuVoltOffset * 1000));
|
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (u32)((s32)entry->cvb_pll_param.c0 + C.commonGpuVoltOffset * 1000));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (C.eristaGpuVoltArray[i] != 0) {
|
if (C.eristaGpuVoltArray[i] != 0) {
|
||||||
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.eristaGpuVoltArray[i] * 1000));
|
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.eristaGpuVoltArray[i] * 1000));
|
||||||
ClearCvbPllEntry(entry);
|
ClearCvbPllEntry(entry);
|
||||||
} else {
|
} else {
|
||||||
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (entry->cvb_pll_param.c0 - C.commonGpuVoltOffset * 1000));
|
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (u32)((s32)entry->cvb_pll_param.c0 + C.commonGpuVoltOffset * 1000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
++entry;
|
++entry;
|
||||||
@@ -190,7 +190,7 @@ namespace ams::ldr::hoc::pcv {
|
|||||||
if (C.commonGpuVoltOffset && !(isMariko ? C.marikoGpuUV : C.eristaGpuUV)) {
|
if (C.commonGpuVoltOffset && !(isMariko ? C.marikoGpuUV : C.eristaGpuUV)) {
|
||||||
cvb_entry_t *entry = static_cast<cvb_entry_t *>(gpu_cvb_table_head);
|
cvb_entry_t *entry = static_cast<cvb_entry_t *>(gpu_cvb_table_head);
|
||||||
for (size_t i = 0; i < customize_entry_count; ++i) {
|
for (size_t i = 0; i < customize_entry_count; ++i) {
|
||||||
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (entry->cvb_pll_param.c0 - C.commonGpuVoltOffset * 1000));
|
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (u32)((s32)entry->cvb_pll_param.c0 + C.commonGpuVoltOffset * 1000));
|
||||||
++entry;
|
++entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,57 +79,58 @@ namespace clockManager {
|
|||||||
if (module == HocClkModule_GPU) {
|
if (module == HocClkModule_GPU) {
|
||||||
if (profile < HocClkProfile_HandheldCharging) {
|
if (profile < HocClkProfile_HandheldCharging) {
|
||||||
switch (board::GetSocType()) {
|
switch (board::GetSocType()) {
|
||||||
case HocClkSocType_Erista:
|
case HocClkSocType_Erista:
|
||||||
return 460800000;
|
return 460800000;
|
||||||
case HocClkSocType_Mariko:
|
case HocClkSocType_Mariko:
|
||||||
if(board::GetConsoleType() == HocClkConsoleType_Hoag) {
|
if(board::GetConsoleType() == HocClkConsoleType_Hoag) {
|
||||||
switch (config::GetConfigValue(KipConfigValue_marikoGpuUV)) {
|
switch (config::GetConfigValue(KipConfigValue_marikoGpuUV)) {
|
||||||
case 0 ... 2:
|
case 0 ... 2:
|
||||||
return 614400000;
|
return 614400000;
|
||||||
case 3 ... 4:
|
case 3 ... 4:
|
||||||
return 768000000;
|
return 768000000;
|
||||||
default:
|
default:
|
||||||
return 614400000;
|
return 614400000;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
switch (config::GetConfigValue(KipConfigValue_marikoGpuUV)) {
|
||||||
|
case 0:
|
||||||
|
return 614400000;
|
||||||
|
case 1:
|
||||||
|
return 691200000;
|
||||||
|
case 2:
|
||||||
|
return 768000000;
|
||||||
|
case 3:
|
||||||
|
return 844800000;
|
||||||
|
case 4:
|
||||||
|
return 921600000;
|
||||||
|
default:
|
||||||
|
return 614400000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
default:
|
||||||
switch (config::GetConfigValue(KipConfigValue_marikoGpuUV)) {
|
return 460800000;
|
||||||
case 0:
|
}
|
||||||
return 614400000;
|
|
||||||
case 1:
|
|
||||||
return 691200000;
|
|
||||||
case 2:
|
|
||||||
return 768000000;
|
|
||||||
case 3:
|
|
||||||
return 844800000;
|
|
||||||
case 4:
|
|
||||||
return 921600000;
|
|
||||||
default:
|
|
||||||
return 614400000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
return 460800000;
|
|
||||||
} else if (profile <= HocClkProfile_HandheldChargingUSB) {
|
} else if (profile <= HocClkProfile_HandheldChargingUSB) {
|
||||||
switch (board::GetSocType()) {
|
switch (board::GetSocType()) {
|
||||||
case HocClkSocType_Erista:
|
case HocClkSocType_Erista:
|
||||||
return 768000000;
|
return 768000000;
|
||||||
case HocClkSocType_Mariko:
|
case HocClkSocType_Mariko:
|
||||||
switch (config::GetConfigValue(KipConfigValue_marikoGpuUV)) {
|
switch (config::GetConfigValue(KipConfigValue_marikoGpuUV)) {
|
||||||
case 0:
|
case 0:
|
||||||
return 844800000;
|
return 844800000;
|
||||||
case 1:
|
case 1:
|
||||||
return 921600000;
|
return 921600000;
|
||||||
case 2:
|
case 2:
|
||||||
return 998400000;
|
return 998400000;
|
||||||
case 3:
|
case 3:
|
||||||
return 1075200000;
|
return 1075200000;
|
||||||
case 4:
|
case 4:
|
||||||
return 1152000000;
|
return 1152000000;
|
||||||
default:
|
default:
|
||||||
return 844800000;
|
return 844800000;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return 768000000;
|
return 768000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (module == HocClkModule_CPU) {
|
} else if (module == HocClkModule_CPU) {
|
||||||
|
|||||||
BIN
dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp
vendored
BIN
dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp
vendored
Binary file not shown.
BIN
dist/atmosphere/kips/hoc.kip
vendored
BIN
dist/atmosphere/kips/hoc.kip
vendored
Binary file not shown.
BIN
dist/switch/.overlays/horizon-oc-overlay.ovl
vendored
BIN
dist/switch/.overlays/horizon-oc-overlay.ovl
vendored
Binary file not shown.
Reference in New Issue
Block a user