sysclk: fix mariko voltages
This commit is contained in:
@@ -107,6 +107,7 @@ python -m PyInstaller --onefile --add-data "assets;assets" --icon=assets/icon.ic
|
|||||||
|
|
||||||
* **Lightos** & **Dominatorul** – RAM timings
|
* **Lightos** & **Dominatorul** – RAM timings
|
||||||
* **KazushiMe** & **meha** – Switch-OC-Suite
|
* **KazushiMe** & **meha** – Switch-OC-Suite
|
||||||
|
* **B3711** - UV Tables
|
||||||
* **sys-clk team** – sys-clk
|
* **sys-clk team** – sys-clk
|
||||||
* **b0rd2death** – Ultrahand sys-clk fork
|
* **b0rd2death** – Ultrahand sys-clk fork
|
||||||
* **MasaGratoR** - General help
|
* **MasaGratoR** - General help
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"type": "kernel_flags",
|
"type": "kernel_flags",
|
||||||
"value": {
|
"value": {
|
||||||
"highest_thread_priority": 63,
|
"highest_thread_priority": 63,
|
||||||
"lowest_thread_priority": 63,
|
"lowest_thread_priority": 41,
|
||||||
"lowest_cpu_id": 0,
|
"lowest_cpu_id": 0,
|
||||||
"highest_cpu_id": 3
|
"highest_cpu_id": 3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -692,13 +692,19 @@ std::uint32_t Board::GetVoltage(HocClkVoltage voltage)
|
|||||||
rgltrCloseSession(&session);
|
rgltrCloseSession(&session);
|
||||||
break;
|
break;
|
||||||
case HocClkVoltage_CPU:
|
case HocClkVoltage_CPU:
|
||||||
rc = rgltrOpenSession(&session, PcvPowerDomainId_Max77621_Cpu);
|
if(Board::GetSocType() == SysClkSocType_Mariko)
|
||||||
|
rc = rgltrOpenSession(&session, PcvPowerDomainId_Max77621_Cpu);
|
||||||
|
else
|
||||||
|
rc = rgltrOpenSession(&session, PcvPowerDomainId_Max77812_Cpu);
|
||||||
ASSERT_RESULT_OK(rc, "rgltrOpenSession")
|
ASSERT_RESULT_OK(rc, "rgltrOpenSession")
|
||||||
rgltrGetVoltage(&session, &out);
|
rgltrGetVoltage(&session, &out);
|
||||||
rgltrCloseSession(&session);
|
rgltrCloseSession(&session);
|
||||||
break;
|
break;
|
||||||
case HocClkVoltage_GPU:
|
case HocClkVoltage_GPU:
|
||||||
rc = rgltrOpenSession(&session, PcvPowerDomainId_Max77621_Gpu);
|
if(Board::GetSocType() == SysClkSocType_Mariko)
|
||||||
|
rc = rgltrOpenSession(&session, PcvPowerDomainId_Max77621_Gpu);
|
||||||
|
else
|
||||||
|
rc = rgltrOpenSession(&session, PcvPowerDomainId_Max77812_Gpu);
|
||||||
ASSERT_RESULT_OK(rc, "rgltrOpenSession")
|
ASSERT_RESULT_OK(rc, "rgltrOpenSession")
|
||||||
rgltrGetVoltage(&session, &out);
|
rgltrGetVoltage(&session, &out);
|
||||||
rgltrCloseSession(&session);
|
rgltrCloseSession(&session);
|
||||||
|
|||||||
Reference in New Issue
Block a user