hocclk: basic aotag support along with other changes
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "../soctherm.hpp"
|
||||
#include "../integrations.hpp"
|
||||
#include "../file_utils.hpp"
|
||||
#include "../aotag.hpp"
|
||||
namespace board {
|
||||
|
||||
u64 clkVirtAddr, dsiVirtAddr, apbVirtAddr;
|
||||
@@ -139,7 +140,7 @@ namespace board {
|
||||
FetchHardwareInfos();
|
||||
|
||||
soctherm::Initialize();
|
||||
|
||||
aotag::init(GetSocType() == HocClkSocType_Mariko);
|
||||
Result pwmCheck = 1;
|
||||
if (hosversionAtLeast(6,0,0) && R_SUCCEEDED(pwmInitialize())) {
|
||||
pwmCheck = pwmOpenSession2(&iCon, 0x3D000001);
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#include "board.hpp"
|
||||
#include "../soctherm.hpp"
|
||||
#include "bq24193.hpp"
|
||||
#include "../aotag.hpp"
|
||||
|
||||
namespace board {
|
||||
|
||||
s32 GetTemperatureMilli(HocClkThermalSensor sensor) {
|
||||
@@ -48,7 +50,8 @@ namespace board {
|
||||
break;
|
||||
}
|
||||
case HocClkThermalSensor_PCB: {
|
||||
millis = tmp451TempPcb();
|
||||
millis = aotag::getTemp();
|
||||
// = tmp451TempPcb();
|
||||
break;
|
||||
}
|
||||
case HocClkThermalSensor_Skin: {
|
||||
|
||||
Reference in New Issue
Block a user