extend soc volt table

This commit is contained in:
Lightos1
2026-07-12 16:24:36 +02:00
parent ee3ac5c38a
commit 6309950402
7 changed files with 19 additions and 3 deletions

View File

@@ -215,6 +215,8 @@ volatile CustomizeTable C = {
0 /* >= 3133 */,
0 /* >= 3166 */,
0 /* >= 3200 */,
0 /* >= 3266 */,
0 /* >= 3333 */,
},
/* Advanced. */

View File

@@ -128,7 +128,7 @@ struct CustomizeTable {
u32 eristaGpuVoltArray[27];
u32 marikoGpuVoltArray[24];
s32 marikoSocVoltArray[26];
s32 marikoSocVoltArray[28];
u32 fineTune_t6_tRTW;
u32 fineTune_t7_tWTR;

View File

@@ -889,6 +889,8 @@ namespace ams::ldr::hoc::pcv::mariko {
{ 3133000, { DVB_OC(1025, 1000, 975, 23) }, },
{ 3166000, { DVB_OC(1037, 1012, 987, 24) }, },
{ 3200000, { DVB_OC(1050, 1025, 1000, 25) }, },
{ 3266000, { DVB_OC(1075, 1050, 1025, 26) }, },
{ 3333000, { DVB_OC(1100, 1075, 1050, 27) }, },
{ ~0u, { }, },
};
#undef DVB

View File

@@ -224,6 +224,8 @@ typedef enum {
KipConfigValue_g_soc_volt_3133000,
KipConfigValue_g_soc_volt_3166000,
KipConfigValue_g_soc_volt_3200000,
KipConfigValue_g_soc_volt_3266000,
KipConfigValue_g_soc_volt_3333000,
KipConfigValue_t6_tRTW_fine_tune,
KipConfigValue_t7_tWTR_fine_tune,
@@ -542,6 +544,8 @@ static inline const char* hocclkFormatConfigValue(HocClkConfigValue val, bool pr
case KipConfigValue_g_soc_volt_3133000: return pretty ? "Mariko SOC Volt 3133 MHz" : "g_soc_volt_3133000";
case KipConfigValue_g_soc_volt_3166000: return pretty ? "Mariko SOC Volt 3166 MHz" : "g_soc_volt_3166000";
case KipConfigValue_g_soc_volt_3200000: return pretty ? "Mariko SOC Volt 3200 MHz" : "g_soc_volt_3200000";
case KipConfigValue_g_soc_volt_3266000: return pretty ? "Mariko SOC Volt 3266 MHz" : "g_soc_volt_3266000";
case KipConfigValue_g_soc_volt_3333000: return pretty ? "Mariko SOC Volt 3333 MHz" : "g_soc_volt_3333000";
case KipCrc32:
return pretty ? "CRC32" : "crc32";
@@ -765,6 +769,8 @@ static inline uint64_t hocclkValidConfigValue(HocClkConfigValue val, uint64_t in
case KipConfigValue_g_soc_volt_3133000:
case KipConfigValue_g_soc_volt_3166000:
case KipConfigValue_g_soc_volt_3200000:
case KipConfigValue_g_soc_volt_3266000:
case KipConfigValue_g_soc_volt_3333000:
case KipConfigValue_eristaCpuVmin:
case KipConfigValue_eristaCpuUnlock:
case KipConfigValue_t6_tRTW_fine_tune:

View File

@@ -2721,6 +2721,8 @@ class SocCustomTableSubmenuGui : public MiscGui {
addConfigButton(KipConfigValue_g_soc_volt_3133000, "3133MHz", ValueRange(0, 0, 0, "0", 1), "Voltage", &voltageThresholds, {}, socVolts, false, true);
addConfigButton(KipConfigValue_g_soc_volt_3166000, "3166MHz", ValueRange(0, 0, 0, "0", 1), "Voltage", &voltageThresholds, {}, socVolts, false, true);
addConfigButton(KipConfigValue_g_soc_volt_3200000, "3200MHz", ValueRange(0, 0, 0, "0", 1), "Voltage", &voltageThresholds, {}, socVolts, false, true);
addConfigButton(KipConfigValue_g_soc_volt_3266000, "3266MHz", ValueRange(0, 0, 0, "0", 1), "Voltage", &voltageThresholds, {}, socVolts, false, true);
addConfigButton(KipConfigValue_g_soc_volt_3333000, "3333MHz", ValueRange(0, 0, 0, "0", 1), "Voltage", &voltageThresholds, {}, socVolts, false, true);
}
};

View File

@@ -140,7 +140,7 @@ namespace kip {
table.eristaGpuVoltArray[i] = config::GetConfigValue((HocClkConfigValue)(KipConfigValue_g_volt_e_76800 + i));
}
for (size_t i = 0; i < 26; ++i) {
for (size_t i = 0; i < 28; ++i) {
table.marikoSocVoltArray[i] = config::GetConfigValue((HocClkConfigValue) (KipConfigValue_g_soc_volt_1866000 + i));
}

View File

@@ -97,7 +97,7 @@ namespace kip {
u32 eristaGpuVoltArray[27];
u32 marikoGpuVoltArray[24];
s32 marikoSocVoltArray[26];
s32 marikoSocVoltArray[28];
u32 t6_tRTW_fine_tune;
u32 t7_tWTR_fine_tune;
@@ -714,6 +714,8 @@ namespace kip {
DECL_MARIKO_SOC_VOLT_HELPER(3133000, 23)
DECL_MARIKO_SOC_VOLT_HELPER(3166000, 24)
DECL_MARIKO_SOC_VOLT_HELPER(3200000, 25)
DECL_MARIKO_SOC_VOLT_HELPER(3266000, 26)
DECL_MARIKO_SOC_VOLT_HELPER(3333000, 27)
#define DECL_ERISTA_GPU_VOLT_GET(freq, idx) \
static inline u32 cust_get_erista_gpu_volt_##freq##_val(const char *p) { \
@@ -817,6 +819,8 @@ namespace kip {
DECL_MARIKO_SOC_VOLT_GET(3133000, 23)
DECL_MARIKO_SOC_VOLT_GET(3166000, 24)
DECL_MARIKO_SOC_VOLT_GET(3200000, 25)
DECL_MARIKO_SOC_VOLT_GET(3266000, 26)
DECL_MARIKO_SOC_VOLT_GET(3333000, 27)
void MigrateKipData(u32 custRev, u32 version);
void SetKipData();