real freqs + ram load on bpmp

gpu freq is excluded due to smmu issue (carveout?)
This commit is contained in:
souldbminersmwc committed 2026-08-26 11:56:56 -04:00
1 parent 8222fe6b0c
commit d8c6a86bb0
20 files changed
+411 -368

No files matched your search

@@ -32,7 +32,6 @@
#include <pwm.h>
#include <registers.h>
#include <switch.h>
#include <t210.h>
#include <tmp451.h>
#include "../bpmp/bpmp.hpp"
@@ -28,9 +28,9 @@
#include <i2c.h>
#include <max17050.h>
#include <switch.h>
#include <t210.h>
#include <tmp451.h>
#include "../bpmp/bpmp.hpp"
#include "../display/display_refresh_rate.hpp"
#include "../file/config.hpp"
#include "../file/errors.hpp"
@@ -179,13 +179,13 @@ namespace board {
u32 hz = 0;
switch (module) {
case HocClkModule_CPU:
return t210ClkCpuFreq();
return bpmp::GetSharedInfo()->freqCpu * 1000;
case HocClkModule_GPU:
return t210ClkGpuFreq();
return bpmp::GetSharedInfo()->freqGpu * 1000;
case HocClkModule_MEM:
return config::GetConfigValue(HocClkConfigValue_MemoryFrequencyMeasurementMode) == MemoryFrequencyMeasurementMode_PLL
? pllmb::getRamClockRatePLLMB()
: t210ClkMemFreq();
: bpmp::GetSharedInfo()->freqMem * 1000;
case HocClkModule_Display:
return GetDisplayRate(hz);
default:
@@ -29,7 +29,6 @@
#include <i2c.h>
#include <max17050.h>
#include <switch.h>
#include <t210.h>
#include <tmp451.h>
#include "../file/errors.hpp"
@@ -33,9 +33,9 @@
#include <minIni.h>
#include <numeric>
#include <switch.h>
#include <t210.h>
#include <tmp451.h>
#include "../bpmp/bpmp.hpp"
#include "../hos/apm_ext.h"
#include "board.hpp"
#include "board_misc.hpp"
@@ -116,9 +116,9 @@ namespace board {
u32 GetPartLoad(HocClkPartLoad loadSource) {
switch (loadSource) {
case HocClkPartLoad_EMC:
return t210EmcLoadAll();
return bpmp::GetSharedInfo()->emcLoadAll;
case HocClkPartLoad_EMCCpu:
return t210EmcLoadCpu();
return bpmp::GetSharedInfo()->emcLoadCpu;
case HocClkPartLoad_GPU:
return gpuLoad;
case HocClkPartLoad_CPUMax:
@@ -130,13 +130,13 @@ namespace board {
case HocClkPartLoad_FAN:
return GetFanLevel();
case HocClkPartLoad_RamBWAll:
return t210EmcBwAll();
return bpmp::GetSharedInfo()->emcBwAll;
case HocClkPartLoad_RamBWCpu:
return t210EmcBwCpu();
return bpmp::GetSharedInfo()->emcBwCpu;
case HocClkPartLoad_RamBWGpu:
return t210EmcBwGpu();
return bpmp::GetSharedInfo()->emcBwGpu;
case HocClkPartLoad_RamBWPeak:
return t210EmcBwPeak();
return static_cast<u32>((static_cast<u64>(bpmp::GetSharedInfo()->freqMem) * 16) / 1000);
default:
ASSERT_ENUM_VALID(HocClkPartLoad, loadSource);
}
@@ -28,7 +28,6 @@
#include <i2c.h>
#include <max17050.h>
#include <switch.h>
#include <t210.h>
#include <tmp451.h>
#include "../hos/apm_ext.h"
@@ -31,7 +31,6 @@
#include <max17050.h>
#include <pwm.h>
#include <switch.h>
#include <t210.h>
#include <tmp451.h>
#include "../file/config.hpp"