This commit is contained in:
souldbminersmwc
2026-04-27 19:23:47 -04:00
3 changed files with 11 additions and 10 deletions

View File

@@ -163,10 +163,10 @@ Refer to COMPILATION.md
* **B3711 (halop)** - EOS * **B3711 (halop)** - EOS
* **sys-clk team (m4xw, p-sam, natinusala)** - sys-clk * **sys-clk team (m4xw, p-sam, natinusala)** - sys-clk
* **Dominatorul** - Soctherm driver, guides, general help * **Dominatorul** - Soctherm driver, guides, general help
* **b0rd2death** - Ultrahand sys-clk & Status Monitor fork * **ppkantorski** - Ultrahand sys-clk & Status Monitor fork
* **MasaGratoR and ZachyCatGames** - General help * **MasaGratoR and ZachyCatGames** - General help
* **MasaGratoR** - Status Monitor & Display Refresh Rate driver * **MasaGratoR** - Status Monitor & Display Refresh Rate driver
* **Dominatorul, Samybigio, Arcdelta, Miki, Happy, Flopsider, Winnerboi77, Blaise, Alvise, TDRR, agjeococh, frost, letum00, and Xenshen** - Testing * **Dominatorul, Samybigio, Arcdelta, Miki, Happy, tetetete-ctrl, Winnerboi77, Blaise, Alvise, TDRR, agjeococh, frost, letum00, and Xenshen** - Testing
* **Samybigio2011, Miki** - Italian translations * **Samybigio2011, Miki** - Italian translations
* **angelblaster** - Korean translations * **angelblaster** - Korean translations
* **q1332348216-glitch** - Chinese translations * **q1332348216-glitch** - Chinese translations

View File

@@ -34,8 +34,8 @@ namespace ams::ldr::hoc::pcv::mariko {
latency += index * latencyStep; latency += index * latencyStep;
} }
static u32 GetMaxLatencyIndex(volatile u32 *latencyArray, u32 latencySize) { static s32 GetMaxLatencyIndex(volatile u32 *latencyArray, u32 latencySize) {
u32 maxIndex = 0; s32 maxIndex = -1;
for (u32 i = 0; i < latencySize; ++i) { for (u32 i = 0; i < latencySize; ++i) {
if (latencyArray[i]) { if (latencyArray[i]) {
maxIndex = i; maxIndex = i;
@@ -65,18 +65,18 @@ namespace ams::ldr::hoc::pcv::mariko {
} }
void HandleLatency(u32 freq) { void HandleLatency(u32 freq) {
static u32 rlIndexMax = GetMaxLatencyIndex(C.readLatency, std::size(C.readLatency)); static s32 rlIndexMax = GetMaxLatencyIndex(C.readLatency, std::size(C.readLatency));
static u32 wlIndexMax = GetMaxLatencyIndex(C.writeLatency, std::size(C.writeLatency)); static s32 wlIndexMax = GetMaxLatencyIndex(C.writeLatency, std::size(C.writeLatency));
constexpr u32 ReadLatencyStep = 4; constexpr u32 ReadLatencyStep = 4;
constexpr u32 WriteLatencyStep = 2; constexpr u32 WriteLatencyStep = 2;
bool autoLatencyRead = false, autoLatencyWrite = false; bool autoLatencyRead = false, autoLatencyWrite = false;
if (rlIndexMax == 0) { if (rlIndexMax == -1) {
AutoLatency(RL, freq, ReadLatencyStep); AutoLatency(RL, freq, ReadLatencyStep);
autoLatencyRead = true; autoLatencyRead = true;
} }
if (wlIndexMax == 0) { if (wlIndexMax == -1) {
AutoLatency(WL, freq, WriteLatencyStep); AutoLatency(WL, freq, WriteLatencyStep);
autoLatencyWrite = true; autoLatencyWrite = true;
} }
@@ -120,6 +120,7 @@ namespace ams::ldr::hoc::pcv::mariko {
} }
} }
/* DBI is always enabled. */
mrw2 = static_cast<u8>(((rlIndex & 0x7) | ((wlIndex & 0x7) << 3) | ((0 & 0x1) << 6))); mrw2 = static_cast<u8>(((rlIndex & 0x7) | ((wlIndex & 0x7) << 3) | ((0 & 0x1) << 6)));
} }

View File

@@ -205,7 +205,7 @@ void AboutGui::listUI()
); );
this->listElement->addItem( this->listElement->addItem(
new tsl::elm::ListItem("Flopsider") new tsl::elm::ListItem("tetetete-ctrl")
); );
this->listElement->addItem( this->listElement->addItem(
@@ -270,7 +270,7 @@ void AboutGui::listUI()
); );
this->listElement->addItem( this->listElement->addItem(
new tsl::elm::ListItem("b0rd2death - Ultrahand") new tsl::elm::ListItem("ppkantorski - Ultrahand")
); );
this->listElement->addItem( this->listElement->addItem(