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

@@ -87,6 +87,8 @@ volatile CustomizeTable C = {
*/ */
.marikoEmcVddqVolt = 0, .marikoEmcVddqVolt = 0,
.marikoCpuUV = 0,
.marikoGpuUV = 0, .marikoGpuUV = 0,
.ramTimingPresetOne = 0, .ramTimingPresetOne = 0,
@@ -152,10 +154,36 @@ volatile CustomizeTable C = {
{ 1887000, { 1609246, -37515, 27 }, { 1120000 } }, { 1887000, { 1609246, -37515, 27 }, { 1120000 } },
{ 1963500, { 1675751, -38635, 27 }, { 1120000 } }, { 1963500, { 1675751, -38635, 27 }, { 1120000 } },
// Appending table // Appending table
{ 2091000, { 1716501, -39395, 27 }, { 1120000 } }, { 2091000, { 1716501, -39395, 27 }, { 1235000 } },
{ 2193000, { 1775132, -40505, 27 }, { 1120000 } }, { 2193000, { 1775132, -40505, 27 }, { 1235000 } },
{ 2295000, { 1866287, -42005, 27 }, { 1120000 } }, { 2295000, { 1866287, -42005, 27 }, { 1235000 } },
//{ 2397000, { 1961107, -43506, 27 }, { 1120000 } }, { 2397000, { 1961107, -43506, 27 }, { 1235000 } },
},
.marikoCpuDvfsTableSLT = {
{ 204000, { 732856, -17335, 113 }, {} },
{ 306000, { 760024, -18195, 113 }, {} },
{ 408000, { 789258, -19055, 113 }, {} },
{ 510000, { 789258, -19055, 113 }, {} },
{ 612000, { 853926, -20775, 113 }, {} },
{ 714000, { 889361, -21625, 113 }, {} },
{ 816000, { 926862, -22485, 113 }, {} },
{ 918000, { 966431, -23345, 113 }, {} },
{ 1020000, { 1008066, -24205, 113 }, { 1120000 } },
{ 1122000, { 1051768, -25065, 113 }, { 1120000 } },
{ 1224000, { 1097537, -25925, 113 }, { 1120000 } },
{ 1326000, { 1145373, -26785, 113 }, { 1120000 } },
{ 1428000, { 1195276, -27645, 113 }, { 1120000 } },
{ 1581000, { 1274006, -28935, 113 }, { 1120000 } },
{ 1683000, { 1329076, -29795, 113 }, { 1120000 } },
{ 1785000, { 1386213, -30655, 113 }, { 1120000 } },
{ 1887000, { 1445416, -31515, 113 }, { 1120000 } },
{ 1963500, { 1490873, -32155, 113 }, { 1120000 } },
// Appending table
{ 2091000, { 1580725, -33235, 113 }, { 1120000 } },
{ 2193000, { 1580725, -33235, 113 }, { 1235000 } },
{ 2295000, { 1635431, -34095, 113 }, { 1235000 } },
{ 2397000, { 1702903, -34955, 113 }, { 1235000 } },
}, },
/* - Erista GPU DVFS Table: /* - Erista GPU DVFS Table:

View File

@@ -53,6 +53,7 @@ typedef struct CustomizeTable {
u32 marikoEmcMaxClock; u32 marikoEmcMaxClock;
u32 marikoEmcVddqVolt; u32 marikoEmcVddqVolt;
//advanced config //advanced config
u32 marikoCpuUV;
u32 marikoGpuUV; u32 marikoGpuUV;
u32 ramTimingPresetOne; u32 ramTimingPresetOne;
u32 ramTimingPresetTwo; u32 ramTimingPresetTwo;
@@ -63,6 +64,7 @@ typedef struct CustomizeTable {
u32 ramTimingPresetSeven; u32 ramTimingPresetSeven;
CustomizeCpuDvfsTable eristaCpuDvfsTable; CustomizeCpuDvfsTable eristaCpuDvfsTable;
CustomizeCpuDvfsTable marikoCpuDvfsTable; CustomizeCpuDvfsTable marikoCpuDvfsTable;
CustomizeCpuDvfsTable marikoCpuDvfsTableSLT;
CustomizeGpuDvfsTable eristaGpuDvfsTable; CustomizeGpuDvfsTable eristaGpuDvfsTable;
CustomizeGpuDvfsTable marikoGpuDvfsTable; CustomizeGpuDvfsTable marikoGpuDvfsTable;
CustomizeGpuDvfsTable marikoGpuDvfsTableSLT; CustomizeGpuDvfsTable marikoGpuDvfsTableSLT;

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"); 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) { switch (table.marikoGpuUV) {
case 0: case 0:
gpu_dvfs_table = &table.marikoGpuDvfsTable; gpu_dvfs_table = &table.marikoGpuDvfsTable;

View File

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

View File

@@ -257,6 +257,19 @@ var CustTable: Array<CustEntry> = [
]; ];
var AdvTable: Array<AdvEntry> = [ var AdvTable: Array<AdvEntry> = [
new AdvEntry(
"marikoCpuUV",
"Enable Mariko CPU Undervolt",
CustPlatform.Mariko,
4,
["Undervolt Mariko CPU",
"Your CPU might not withstand undervolt and performance might drop",
"<b>0</b> : Default Table",
"<b>1</b> : Undervolt Level 1 (SLT)",],
0,
[0,1],
1,
),
new AdvEntry( new AdvEntry(
"marikoGpuUV", "marikoGpuUV",
"Enable Mariko GPU Undervolt", "Enable Mariko GPU Undervolt",
@@ -266,8 +279,8 @@ var AdvTable: Array<AdvEntry> = [
"Your GPU might not withstand undervolt and may not work properly", "Your GPU might not withstand undervolt and may not work properly",
"Can hang your console, or crash games", "Can hang your console, or crash games",
"<b>0</b> : Default Table", "<b>0</b> : Default Table",
"<b>1</b> : Undervolt Level 1 (Aggressive)", "<b>1</b> : Undervolt Level 1 (SLT: Aggressive)",
"<b>2</b> : Undervolt Level 2 (Very Aggressive)"], "<b>2</b> : Undervolt Level 2 (HiOPT: Very Aggressive)"],
0, 0,
[0,2], [0,2],
1, 1,
@@ -391,7 +404,7 @@ var AdvTable: Array<AdvEntry> = [
["WARNING: Unstable timings can corrupt your nand", ["WARNING: Unstable timings can corrupt your nand",
"Latency decrement for both AUTO_ADJ and CUSTOM_ADJ", "Latency decrement for both AUTO_ADJ and CUSTOM_ADJ",
"Values are : WL - RL", "Values are : WL - RL",
"<b>0</b> : Default Latency", "<b>0</b> : Default Latency for AUTO_ADJ, Do Not Adjust for CUST_ADJ",
"<b>1</b> : -2 - -4", "<b>1</b> : -2 - -4",
"<b>2</b> : -4 - -8", "<b>2</b> : -4 - -8",
"<b>3</b> : -6 - -12", "<b>3</b> : -6 - -12",