hoc-clk: apply ram oc cpu dvfs unstuck fix when decreasing voltage
This commit is contained in:
1 parent
aec025fd9d
commit
79ee323cbe
1 file changed
+10
-3
@@ -616,9 +616,10 @@ namespace board {
|
|||||||
constexpr u32 PmicStep = 5;
|
constexpr u32 PmicStep = 5;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
volatile u32 *lut = nullptr;
|
volatile u32 *lut = nullptr;
|
||||||
u32 table[LutSize] = {};
|
u32 table[LutSize] = {};
|
||||||
bool initialized = false;
|
u32 lastVmin = 0;
|
||||||
|
bool initialized = false;
|
||||||
} cpuVoltData;
|
} cpuVoltData;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -762,7 +763,7 @@ namespace board {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ApplyCpuMinVolt(u32 vmin) {
|
void ApplyCpuMinVolt(u32 vmin) {
|
||||||
if (!cpuVoltData.initialized) {
|
if (!cpuVoltData.initialized || vmin == cpuVoltData.lastVmin) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -792,6 +793,12 @@ namespace board {
|
|||||||
PadLutTail(tmpLut, valid);
|
PadLutTail(tmpLut, valid);
|
||||||
|
|
||||||
VolatileCopyDwords(cpuVoltData.lut, tmpLut, LutSize);
|
VolatileCopyDwords(cpuVoltData.lut, tmpLut, LutSize);
|
||||||
|
|
||||||
|
if (vmin < cpuVoltData.lastVmin) {
|
||||||
|
UnstuckFreqWar();
|
||||||
|
}
|
||||||
|
|
||||||
|
cpuVoltData.lastVmin = vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user