From 1b32d21860f1e330afe4d15a3276024d648ee143 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Tue, 1 Sep 2026 17:04:20 +0200 Subject: [PATCH] mariko timings: einput_duration, seems reasonable? --- .../source/oc/pcv/mariko/calculate_timings_mariko.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/mariko/calculate_timings_mariko.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/mariko/calculate_timings_mariko.cpp index b424ea81..6bf01902 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/mariko/calculate_timings_mariko.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/mariko/calculate_timings_mariko.cpp @@ -166,10 +166,10 @@ namespace ams::ldr::hoc::pcv::mariko { double fullRoundDelay = flyByTime + tDQSCK_max; /* Read data valid: Read command -> data ready to be latched into the registers. */ - rdv = RL + GET_CYCLE_CEIL(fullRoundDelay) + 16; + rdv = RL + GET_CYCLE_CEIL(fullRoundDelay) + 16; /* Read command -> data poppable at the pad macros, 14 cycles ahead of rdv. */ - qpop = rdv - 14; + qpop = rdv - 14; constexpr double TrimmerStepPs = 3.0; constexpr double MaxTrimmerSteps = 96.0; @@ -202,7 +202,7 @@ namespace ams::ldr::hoc::pcv::mariko { /* Difference between the two eye edges. */ quse_width = quseExtra - tQuse + 4; - einput_duration = FLOOR(9.936 / tCK_avg) + 5.0 + quse_width; + einput_duration = einputLatency + quse_width + 4; u32 qrst_duration = FLOOR(8.399 - tCK_avg); u32 qrstLow = MAX(static_cast(einput - qrst_duration - 2), static_cast(0)); qrst = PACK_U32(qrst_duration, qrstLow);