1.5.1
This commit is contained in:
@@ -66,14 +66,13 @@ typedef struct
|
||||
SysClkProfile realProfile;
|
||||
} SysClkOcExtra;
|
||||
|
||||
#define FREQ_TABLE_MAX_ENTRY_COUNT 31
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t values[20];
|
||||
uint32_t freq[FREQ_TABLE_MAX_ENTRY_COUNT];
|
||||
} SysClkFrequencyTable;
|
||||
|
||||
uint32_t* GetModuleFreqTable(SysClkModule module);
|
||||
uint32_t GetModuleMaximumFreq(SysClkModule module);
|
||||
|
||||
typedef enum {
|
||||
SysClkOcGovernorConfig_AllDisabled = 0,
|
||||
SysClkOcGovernorConfig_CPU_Shift = 0,
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
const uint32_t CHARGING_CURRENT_MA_LIMIT = 3000;
|
||||
|
||||
typedef enum {
|
||||
SysClkConfigValue_PollingIntervalMs = 0,
|
||||
SysClkConfigValue_TempLogIntervalMs,
|
||||
@@ -95,7 +97,7 @@ static inline uint64_t sysclkValidConfigValue(SysClkConfigValue val, uint64_t in
|
||||
case SysClkConfigValue_GovernorExperimental:
|
||||
return (input & 0x1) == input;
|
||||
case SysClkConfigValue_ChargingCurrentLimit:
|
||||
return (input >= 100 && input <= 2000 && input % 100 == 0);
|
||||
return (input >= 100 && input <= CHARGING_CURRENT_MA_LIMIT && input % 100 == 0);
|
||||
case SysClkConfigValue_ChargingLimitPercentage:
|
||||
return (input <= 100 && input >= 20);
|
||||
default:
|
||||
|
||||
@@ -18,4 +18,5 @@ typedef enum
|
||||
SysClkError_Generic = 0,
|
||||
SysClkError_ConfigNotLoaded = 1,
|
||||
SysClkError_ConfigSaveFailed = 2,
|
||||
SysClkError_InternalFrequencyTableError = 3,
|
||||
} SysClkError;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <stdint.h>
|
||||
#include "clocks.h"
|
||||
|
||||
#define SYSCLK_IPC_API_VERSION 1
|
||||
#define SYSCLK_IPC_API_VERSION 2
|
||||
#define SYSCLK_IPC_SERVICE_NAME "sysclkOC"
|
||||
|
||||
enum SysClkIpcCmd
|
||||
|
||||
Reference in New Issue
Block a user