merge pcv hijacking into voltage code

This commit is contained in:
Lightos1
2026-03-21 17:01:50 +01:00
parent f46d0a714b
commit 3d5147a6e2
4 changed files with 187 additions and 251 deletions

View File

@@ -30,6 +30,22 @@
namespace board {
struct GpuVoltData {
u32 voltTable[6][32] = {};
u64 voltTableAddress;
u32 ramVmin;
};
/* TODO: Find out what component this actually targets. */
struct UnkRegulator {
u32 voltageMinUV;
u32 voltageStep;
u32 voltageMax;
};
u32 GetVoltage(HocClkVoltage voltage);
void CacheGpuVoltTable();
void PcvHijackGpuVolts(u32 vmin);
u32 GetMinimumGpuVmin(u32 freqMhz, u32 bracket);
}