hocclk: fixes and other stuff
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include "board.hpp"
|
||||
#include "../tsensor/soctherm.hpp"
|
||||
#include "../tsensor/aotag.hpp"
|
||||
#include "bq24193.hpp"
|
||||
#include "../tsensor/bq24193.hpp"
|
||||
#include "../config.hpp"
|
||||
|
||||
namespace board {
|
||||
@@ -81,7 +81,7 @@ namespace board {
|
||||
}
|
||||
case HocClkThermalSensor_MEM: {
|
||||
if (board::GetSocType() == HocClkSocType_Mariko && tsensor::IsInitialized() && tsensor::ReadAotag() > 0) {
|
||||
millis = (temps.gpu * 0.45f) + (temps.pllx * 0.30f) + (temps.cpu * 0.15f) + (tsensor::ReadAotag() * 0.10f) + 3000;
|
||||
millis = (temps.pllx * 0.10f) + (tsensor::ReadAotag() * 0.90f);
|
||||
} else {
|
||||
millis = board::GetSocType() == HocClkSocType_Mariko ? temps.pllx : temps.mem;
|
||||
}
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
#include "file_utils.hpp"
|
||||
#include "clock_manager.hpp"
|
||||
|
||||
#define CUST_REV 2
|
||||
#define KIP_VERSION 220
|
||||
|
||||
namespace kip {
|
||||
|
||||
bool kipAvailable = false;
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace tsensor {
|
||||
|
||||
s32 ReadAotag() {
|
||||
if (!wasInit) {
|
||||
return -125;
|
||||
return -126;
|
||||
}
|
||||
|
||||
u32 regval = 0, abs = 0, fraction = 0, valid = 0, sign = 0;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "board.hpp"
|
||||
#include "../board/board.hpp"
|
||||
#include <i2c.h>
|
||||
|
||||
namespace bq24193 {
|
||||
Reference in New Issue
Block a user