hocclk: kip migration
This commit is contained in:
@@ -675,6 +675,6 @@ static inline uint64_t hocclkValidConfigValue(HocClkConfigValue val, uint64_t in
|
|||||||
return ((input >= 800) && (input <= 1325));
|
return ((input >= 800) && (input <= 1325));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1903,7 +1903,7 @@ protected:
|
|||||||
// return false;
|
// return false;
|
||||||
// });
|
// });
|
||||||
|
|
||||||
addConfigButton(KipConfigValue_marikoGpuBootVolt, "GPU Boot Volt", ValueRange(700, 850, 5, "mV", 1), "GPU Boot Voltage", &thresholdsDisabled, {}, {}, false, true);
|
addConfigButton(KipConfigValue_marikoGpuBootVolt, "GPU Boot Volt", ValueRange(700, 800, 5, "mV", 1), "GPU Boot Voltage", &thresholdsDisabled, {}, {}, false, true);
|
||||||
addConfigButton(KipConfigValue_marikoGpuVmin, "GPU VMIN", ValueRange(0, 0, 0, "0", 1), "GPU VMIN", &thresholdsDisabled, {}, mGpuVoltsVmin, false, true);
|
addConfigButton(KipConfigValue_marikoGpuVmin, "GPU VMIN", ValueRange(0, 0, 0, "0", 1), "GPU VMIN", &thresholdsDisabled, {}, mGpuVoltsVmin, false, true);
|
||||||
ValueThresholds MgpuVmaxThresholds(805, 850);
|
ValueThresholds MgpuVmaxThresholds(805, 850);
|
||||||
addConfigButton(
|
addConfigButton(
|
||||||
|
|||||||
@@ -310,10 +310,11 @@ namespace kip {
|
|||||||
HocClkConfigValueList configValues;
|
HocClkConfigValueList configValues;
|
||||||
config::GetConfigValues(&configValues);
|
config::GetConfigValues(&configValues);
|
||||||
u32 previousVersion = configValues.values[KipConfigValue_KipVersion];
|
u32 previousVersion = configValues.values[KipConfigValue_KipVersion];
|
||||||
if(previousVersion == 0) {
|
if(previousVersion < 240 && version >= 240) {
|
||||||
return; // We cannot migrate anything!
|
// <2.4.0 -> 2.4.0 migration: add marikoGpuBootVolt with default value of 800mV
|
||||||
|
configValues.values[KipConfigValue_marikoGpuBootVolt] = 800;
|
||||||
}
|
}
|
||||||
|
config::SetConfigValues(&configValues, true);
|
||||||
// This function cannot do anything at the moment. The capabilities will be expanded in the next release
|
// This function cannot do anything at the moment. The capabilities will be expanded in the next release
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
#include <notification.h>
|
#include <notification.h>
|
||||||
#include <crc32.h>
|
#include <crc32.h>
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
|
||||||
|
|
||||||
namespace kip {
|
namespace kip {
|
||||||
extern bool kipAvailable;
|
extern bool kipAvailable;
|
||||||
|
|
||||||
@@ -90,8 +88,6 @@ namespace kip {
|
|||||||
|
|
||||||
u32 commonGpuVoltOffset;
|
u32 commonGpuVoltOffset;
|
||||||
|
|
||||||
u32 reserved3;
|
|
||||||
|
|
||||||
u32 eristaGpuVoltArray[27];
|
u32 eristaGpuVoltArray[27];
|
||||||
u32 marikoGpuVoltArray[24];
|
u32 marikoGpuVoltArray[24];
|
||||||
|
|
||||||
@@ -101,8 +97,6 @@ namespace kip {
|
|||||||
u32 reserved[60];
|
u32 reserved[60];
|
||||||
} CustomizeTable;
|
} CustomizeTable;
|
||||||
|
|
||||||
#pragma pack(pop)
|
|
||||||
|
|
||||||
#define CUST_MAGIC "CUST"
|
#define CUST_MAGIC "CUST"
|
||||||
#define CUST_MAGIC_LEN 4
|
#define CUST_MAGIC_LEN 4
|
||||||
|
|
||||||
|
|||||||
BIN
dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp
vendored
BIN
dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp
vendored
Binary file not shown.
Reference in New Issue
Block a user