add custom soc voltage table
This commit is contained in:
@@ -70,7 +70,7 @@ typedef enum {
|
||||
|
||||
HocClkConfigValue_AulaDisplayColorPreset,
|
||||
HocClkConfigValue_MarikoMiddleFreqs,
|
||||
|
||||
|
||||
HocClkConfigValue_AutoRAMCPUOverclock,
|
||||
HocClkConfigValue_AutoRamCpuCpuOCFreq,
|
||||
HocClkConfigValue_AutoRamCpuRamOCThreshold,
|
||||
@@ -192,6 +192,33 @@ typedef enum {
|
||||
KipConfigValue_g_volt_e_1036800,
|
||||
KipConfigValue_g_volt_e_1075200,
|
||||
|
||||
KipConfigValue_g_soc_volt_1866000,
|
||||
KipConfigValue_g_soc_volt_2000000,
|
||||
KipConfigValue_g_soc_volt_2133000,
|
||||
KipConfigValue_g_soc_volt_2200000,
|
||||
KipConfigValue_g_soc_volt_2266000,
|
||||
KipConfigValue_g_soc_volt_2333000,
|
||||
KipConfigValue_g_soc_volt_2400000,
|
||||
KipConfigValue_g_soc_volt_2433000,
|
||||
KipConfigValue_g_soc_volt_2466000,
|
||||
KipConfigValue_g_soc_volt_2533000,
|
||||
KipConfigValue_g_soc_volt_2566000,
|
||||
KipConfigValue_g_soc_volt_2600000,
|
||||
KipConfigValue_g_soc_volt_2666000,
|
||||
KipConfigValue_g_soc_volt_2700000,
|
||||
KipConfigValue_g_soc_volt_2733000,
|
||||
KipConfigValue_g_soc_volt_2766000,
|
||||
KipConfigValue_g_soc_volt_2800000,
|
||||
KipConfigValue_g_soc_volt_2833000,
|
||||
KipConfigValue_g_soc_volt_2900000,
|
||||
KipConfigValue_g_soc_volt_2933000,
|
||||
KipConfigValue_g_soc_volt_3000000,
|
||||
KipConfigValue_g_soc_volt_3033000,
|
||||
KipConfigValue_g_soc_volt_3100000,
|
||||
KipConfigValue_g_soc_volt_3133000,
|
||||
KipConfigValue_g_soc_volt_3166000,
|
||||
KipConfigValue_g_soc_volt_3200000,
|
||||
|
||||
KipConfigValue_t6_tRTW_fine_tune,
|
||||
KipConfigValue_t7_tWTR_fine_tune,
|
||||
|
||||
@@ -237,7 +264,7 @@ static inline const char* hocclkFormatConfigValue(HocClkConfigValue val, bool pr
|
||||
|
||||
case HocClkConfigValue_BatteryChargeCurrent:
|
||||
return pretty ? "Battery Charge Current" : "bat_charge_current";
|
||||
|
||||
|
||||
case HocClkConfigValue_InputCurrentLimit:
|
||||
return pretty ? "Input Current Limit" : "in_curr_limit";
|
||||
|
||||
@@ -468,6 +495,34 @@ static inline const char* hocclkFormatConfigValue(HocClkConfigValue val, bool pr
|
||||
case KipConfigValue_g_volt_e_1075200: return pretty ? "Erista GPU Volt 1075 MHz" : "g_volt_e_1075200";
|
||||
case KipConfigValue_t6_tRTW_fine_tune: return pretty ? "t6 - tRTW Fine Tune" : "t6_tRTW_fine_tune";
|
||||
case KipConfigValue_t7_tWTR_fine_tune: return pretty ? "t7 - tWTR Fine Tune" : "t7_tWTR_fine_tune";
|
||||
|
||||
case KipConfigValue_g_soc_volt_1866000: return pretty ? "Mariko SOC Volt 1866 MHz" : "g_soc_volt_1866000";
|
||||
case KipConfigValue_g_soc_volt_2000000: return pretty ? "Mariko SOC Volt 2000 MHz" : "g_soc_volt_2000000";
|
||||
case KipConfigValue_g_soc_volt_2133000: return pretty ? "Mariko SOC Volt 2133 MHz" : "g_soc_volt_2133000";
|
||||
case KipConfigValue_g_soc_volt_2200000: return pretty ? "Mariko SOC Volt 2200 MHz" : "g_soc_volt_2200000";
|
||||
case KipConfigValue_g_soc_volt_2266000: return pretty ? "Mariko SOC Volt 2266 MHz" : "g_soc_volt_2266000";
|
||||
case KipConfigValue_g_soc_volt_2333000: return pretty ? "Mariko SOC Volt 2333 MHz" : "g_soc_volt_2333000";
|
||||
case KipConfigValue_g_soc_volt_2400000: return pretty ? "Mariko SOC Volt 2400 MHz" : "g_soc_volt_2400000";
|
||||
case KipConfigValue_g_soc_volt_2433000: return pretty ? "Mariko SOC Volt 2433 MHz" : "g_soc_volt_2433000";
|
||||
case KipConfigValue_g_soc_volt_2466000: return pretty ? "Mariko SOC Volt 2466 MHz" : "g_soc_volt_2466000";
|
||||
case KipConfigValue_g_soc_volt_2533000: return pretty ? "Mariko SOC Volt 2533 MHz" : "g_soc_volt_2533000";
|
||||
case KipConfigValue_g_soc_volt_2566000: return pretty ? "Mariko SOC Volt 2566 MHz" : "g_soc_volt_2566000";
|
||||
case KipConfigValue_g_soc_volt_2600000: return pretty ? "Mariko SOC Volt 2600 MHz" : "g_soc_volt_2600000";
|
||||
case KipConfigValue_g_soc_volt_2666000: return pretty ? "Mariko SOC Volt 2666 MHz" : "g_soc_volt_2666000";
|
||||
case KipConfigValue_g_soc_volt_2700000: return pretty ? "Mariko SOC Volt 2700 MHz" : "g_soc_volt_2700000";
|
||||
case KipConfigValue_g_soc_volt_2733000: return pretty ? "Mariko SOC Volt 2733 MHz" : "g_soc_volt_2733000";
|
||||
case KipConfigValue_g_soc_volt_2766000: return pretty ? "Mariko SOC Volt 2766 MHz" : "g_soc_volt_2766000";
|
||||
case KipConfigValue_g_soc_volt_2800000: return pretty ? "Mariko SOC Volt 2800 MHz" : "g_soc_volt_2800000";
|
||||
case KipConfigValue_g_soc_volt_2833000: return pretty ? "Mariko SOC Volt 2833 MHz" : "g_soc_volt_2833000";
|
||||
case KipConfigValue_g_soc_volt_2900000: return pretty ? "Mariko SOC Volt 2900 MHz" : "g_soc_volt_2900000";
|
||||
case KipConfigValue_g_soc_volt_2933000: return pretty ? "Mariko SOC Volt 2933 MHz" : "g_soc_volt_2933000";
|
||||
case KipConfigValue_g_soc_volt_3000000: return pretty ? "Mariko SOC Volt 3000 MHz" : "g_soc_volt_3000000";
|
||||
case KipConfigValue_g_soc_volt_3033000: return pretty ? "Mariko SOC Volt 3033 MHz" : "g_soc_volt_3033000";
|
||||
case KipConfigValue_g_soc_volt_3100000: return pretty ? "Mariko SOC Volt 3100 MHz" : "g_soc_volt_3100000";
|
||||
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 KipCrc32:
|
||||
return pretty ? "CRC32" : "crc32";
|
||||
case HocClkConfigValue_IsFirstLoad:
|
||||
@@ -490,7 +545,7 @@ static inline uint64_t hocclkDefaultConfigValue(HocClkConfigValue val)
|
||||
case HocClkConfigValue_UncappedClocks:
|
||||
case HocClkConfigValue_OverwriteBoostMode:
|
||||
case HocClkConfigValue_BatteryChargeCurrent:
|
||||
case HocClkConfigValue_InputCurrentLimit:
|
||||
case HocClkConfigValue_InputCurrentLimit:
|
||||
case HocClkConfigValue_OverwriteRefreshRate:
|
||||
case HocClkConfigValue_GPUScheduling:
|
||||
case HocClkConfigValue_LiveCpuUv:
|
||||
@@ -556,7 +611,7 @@ static inline uint64_t hocclkValidConfigValue(HocClkConfigValue val, uint64_t in
|
||||
case HocClkConfigValue_MarikoMiddleFreqs:
|
||||
case HocClkConfigValue_AutoRAMCPUOverclock:
|
||||
return (input & 0x1) == input;
|
||||
|
||||
|
||||
case KipConfigValue_KipVersion:
|
||||
case KipConfigValue_custRev:
|
||||
// case KipConfigValue_mtcConf:
|
||||
@@ -657,6 +712,32 @@ static inline uint64_t hocclkValidConfigValue(HocClkConfigValue val, uint64_t in
|
||||
case KipConfigValue_g_volt_e_998400:
|
||||
case KipConfigValue_g_volt_e_1036800:
|
||||
case KipConfigValue_g_volt_e_1075200:
|
||||
case KipConfigValue_g_soc_volt_1866000:
|
||||
case KipConfigValue_g_soc_volt_2000000:
|
||||
case KipConfigValue_g_soc_volt_2133000:
|
||||
case KipConfigValue_g_soc_volt_2200000:
|
||||
case KipConfigValue_g_soc_volt_2266000:
|
||||
case KipConfigValue_g_soc_volt_2333000:
|
||||
case KipConfigValue_g_soc_volt_2400000:
|
||||
case KipConfigValue_g_soc_volt_2433000:
|
||||
case KipConfigValue_g_soc_volt_2466000:
|
||||
case KipConfigValue_g_soc_volt_2533000:
|
||||
case KipConfigValue_g_soc_volt_2566000:
|
||||
case KipConfigValue_g_soc_volt_2600000:
|
||||
case KipConfigValue_g_soc_volt_2666000:
|
||||
case KipConfigValue_g_soc_volt_2700000:
|
||||
case KipConfigValue_g_soc_volt_2733000:
|
||||
case KipConfigValue_g_soc_volt_2766000:
|
||||
case KipConfigValue_g_soc_volt_2800000:
|
||||
case KipConfigValue_g_soc_volt_2833000:
|
||||
case KipConfigValue_g_soc_volt_2900000:
|
||||
case KipConfigValue_g_soc_volt_2933000:
|
||||
case KipConfigValue_g_soc_volt_3000000:
|
||||
case KipConfigValue_g_soc_volt_3033000:
|
||||
case KipConfigValue_g_soc_volt_3100000:
|
||||
case KipConfigValue_g_soc_volt_3133000:
|
||||
case KipConfigValue_g_soc_volt_3166000:
|
||||
case KipConfigValue_g_soc_volt_3200000:
|
||||
case KipConfigValue_eristaCpuVmin:
|
||||
case KipConfigValue_eristaCpuUnlock:
|
||||
case KipConfigValue_t6_tRTW_fine_tune:
|
||||
@@ -678,7 +759,7 @@ static inline uint64_t hocclkValidConfigValue(HocClkConfigValue val, uint64_t in
|
||||
|
||||
case HocClkConfigValue_InputCurrentLimit:
|
||||
return ((input >= 100) && (input <= 3000)) || !input;
|
||||
|
||||
|
||||
case HocClkConfigValue_DisplayVoltage:
|
||||
return ((input >= 800) && (input <= 1325));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user