move AOTAG to BPMP

This commit is contained in:
souldbminersmwc committed 2026-08-26 15:29:41 -04:00
1 parent 0262236d2c
commit 3141d0ea2e
4 files changed
+62 -19

No files matched your search

+2 -18
View File
@@ -22,6 +22,7 @@
#include <notification.h>
#include "../bpmp/bpmp.hpp"
#include "../file/file_utils.hpp"
#include "../mapping/mem_map.hpp"
#include "aotag.hpp"
@@ -214,24 +215,7 @@ namespace tsensor {
return -126;
}
u32 regval = 0, abs = 0, fraction = 0, valid = 0, sign = 0;
s32 temp = 0;
regval = ReadPmcReg(PMC_TSENSOR_STATUS1);
valid = REG_GET(regval, STATUS1_TEMP_VALID);
if (!valid) {
return -125;
}
abs = REG_GET(regval, STATUS1_TEMP_ABS);
fraction = REG_GET(regval, STATUS1_TEMP_FRAC);
sign = REG_GET(regval, STATUS1_TEMP_SIGN);
temp = (abs * 1000) + (fraction * 500);
if (sign) {
temp = (-1) * (temp);
}
return temp;
return bpmp::GetSharedInfo()->tempAO;
}
bool IsInitialized() {