add 2397 freq and slt table for Mariko CPU

This commit is contained in:
hanabbi
2023-06-22 14:47:01 +09:00
parent 0a0288cd22
commit 4c84a3b212
5 changed files with 53 additions and 8 deletions

View File

@@ -304,7 +304,7 @@ Result FileUtils::CustParser(const char* filepath, size_t filesize) {
LogLine("Set MEM Vdd2 volt to %u mV: %s", mvolt, R_FAILED(res) ? "Failed" : "OK");
}
cpu_dvfs_table = &table.marikoCpuDvfsTable;
cpu_dvfs_table = table.marikoCpuUV ? &table.marikoCpuDvfsTable : &table.marikoCpuDvfsTableSLT;
switch (table.marikoGpuUV) {
case 0:
gpu_dvfs_table = &table.marikoGpuDvfsTable;

View File

@@ -56,6 +56,7 @@ typedef struct CustTable {
u32 marikoCpuMaxVolt;
u32 marikoEmcMaxClock;
u32 marikoEmcVddqVolt;
u32 marikoCpuUV;
u32 marikoGpuUV;
u32 ramTimingPresetOne;
u32 ramTimingPresetTwo;
@@ -66,6 +67,7 @@ typedef struct CustTable {
u32 ramTimingPresetSeven;
CustomizeCpuDvfsTable eristaCpuDvfsTable;
CustomizeCpuDvfsTable marikoCpuDvfsTable;
CustomizeCpuDvfsTable marikoCpuDvfsTableSLT;
CustomizeGpuDvfsTable eristaGpuDvfsTable;
CustomizeGpuDvfsTable marikoGpuDvfsTable;
CustomizeGpuDvfsTable marikoGpuDvfsTableSLT;