ldr: odt has always seemingly been used?
This commit is contained in:
1 parent
dbc37c6982
commit
b1b4ead2e2
6 files changed
+11
-10
No files matched your search
+2
-4
@@ -86,10 +86,8 @@ namespace ams::ldr::hoc::pcv::mariko {
|
||||
tR2P = CalculateNTRTP();
|
||||
|
||||
/* Read to write turnaround. */
|
||||
/* Nvidia seem to use a 0.25 constant here for tK1, I am 99% certain this is tDQSTA. */
|
||||
/* This still left a mismatch; after some brute forcing I got GET_CYCLE_FLOOR(1.5) - 8 (using a static latency) as the cleanest result. */
|
||||
/* The latency definitely is not WL, but when testing for every latency, it lines up perfectly with wqsOn and wl seems to cancel out? */
|
||||
tR2W = RL + (BL / 2) + CEIL((fullRoundDelay / tCK_avg) + tDQSTA) - GET_CYCLE_FLOOR(1.5) - GetWdqsOn() - (tRTW * 3) + finetRTW;
|
||||
/* Switch seemingly uses odt. */
|
||||
tR2W = RL + (BL / 2) + CEIL((fullRoundDelay / tCK_avg) + tDQSTA) - GET_CYCLE_FLOOR(tODTon) - GetOdtLon() - (tRTW * 3) + finetRTW;
|
||||
tRTM = FLOOR((10.0 + RL) + (3.502 / tCK_avg)) + GET_CYCLE_FLOOR(7.489);
|
||||
tRATM = CEIL((tRTM - 10.0) + (RL * 0.426));
|
||||
|
||||
|
||||
@@ -235,6 +235,9 @@ namespace ams::ldr::hoc::pcv::mariko {
|
||||
const u32 tRFCabStock = tRFC_values[0] * 2;
|
||||
table->dram_timings.t_rfc = tRFCabStock;
|
||||
|
||||
/* dram_timings.rl is used on Erista to calculate specific RL related timings during memory training for a workaround. */
|
||||
/* See fusee or minerva for more details. */
|
||||
/* This is unused on Mariko but we will set it regardless for completion. */
|
||||
table->dram_timings.rl = RL;
|
||||
table->emc_mrw2 = (table->emc_mrw2 & ~0xFFu) | static_cast<u32>(mrw2);
|
||||
table->emc_mrw = (table->emc_mrw & ~0x70u) | 0x40; /* nWR */
|
||||
|
||||
Reference in new issue
Block a user