sysclk: add speedo/iddq reading

This commit is contained in:
souldbminersmwc
2025-12-25 16:03:10 -05:00
parent f3c9bb5260
commit 42864af8d8
7 changed files with 238 additions and 66 deletions

View File

@@ -119,6 +119,14 @@ typedef enum
} ReverseNXMode;
typedef enum {
HorizonOCSpeedo_CPU = 0,
HorizonOCSpeedo_GPU,
HorizonOCSpeedo_SOC,
HorizonOCSpeedo_EnumMax,
} HorizonOCSpeedo;
#define SYSCLK_ENUM_VALID(n, v) ((v) < n##_EnumMax)
static inline const char* sysclkFormatModule(SysClkModule module, bool pretty)

View File

@@ -45,6 +45,7 @@ typedef struct
uint32_t perfConfId;
u8 maxDisplayFreq;
u8 fps;
u16 speedos[HorizonOCSpeedo_EnumMax];
} SysClkContext;
typedef struct