From a885040ce9504f9dcc7fc4db46ee8656378610eb Mon Sep 17 00:00:00 2001 From: souldbminersmwc Date: Sat, 27 Sep 2025 13:43:13 -0400 Subject: [PATCH] loader: add mariko cpu vmin --- Source/Atmosphere/stratosphere/loader/source/oc/customize.cpp | 3 +++ Source/Atmosphere/stratosphere/loader/source/oc/customize.hpp | 2 ++ .../stratosphere/loader/source/oc/pcv/pcv_mariko.cpp | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/customize.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/customize.cpp index 5d3d9497..df87f518 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/customize.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/customize.cpp @@ -162,6 +162,9 @@ volatile CustomizeTable C = { 0 /* 1152 (Disabled by default) */, }, + +.marikoCpuVmin = 600, + /* Advanced Settings: * - Erista CPU DVFS Table: */ diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/customize.hpp b/Source/Atmosphere/stratosphere/loader/source/oc/customize.hpp index eb25151e..687dff55 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/customize.hpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/customize.hpp @@ -84,6 +84,8 @@ u32 marikoGpuVoltArray[24]; u32 eristaGpuVoltArray[15]; + u32 marikoCpuVmin; + CustomizeCpuDvfsTable eristaCpuDvfsTable; CustomizeCpuDvfsTable marikoCpuDvfsTable; CustomizeCpuDvfsTable marikoCpuDvfsTableSLT; diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp index 096eedfa..c10b52cb 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp @@ -55,7 +55,7 @@ // Patch vmin for slt if (C.marikoCpuUV) { if (*(ptr-5) == 620) { - PATCH_OFFSET((ptr-5), 600); + PATCH_OFFSET((ptr-5), C.marikoCpuVmin); } if (*(ptr-1) == 620) { PATCH_OFFSET((ptr-1), 600);