Fixed write timings. Todo: Fix more read timings

This commit is contained in:
Lightos1
2025-12-02 19:56:08 +01:00
parent 2a0dac43d3
commit 4b8d8442bb
3 changed files with 4 additions and 10 deletions

View File

@@ -45,7 +45,7 @@ volatile CustomizeTable C = {
.marikoCpuMaxVolt = 1185,
.marikoEmcMaxClock = 2133000, // Hynix NME and Samsung AM-MGCJ Rating (others are 4766MT, 2133MHz)
.marikoEmcMaxClock = 3000000, // Hynix NME and Samsung AM-MGCJ Rating (others are 4766MT, 2133MHz)
.marikoEmcVddqVolt = 640000,
@@ -114,7 +114,7 @@ volatile CustomizeTable C = {
710 /* 1075 */,
735 /* 1152 */,
785 /* 1228 */,
785 /* 1267 (Disabled by default) */,
800 /* 1267 (Disabled by default) */,
780 /* 1305 (Disabled by default) */,
960 /* 1344 (Disabled by default) */,
960 /* 1382 (Disabled by default) */,

View File

@@ -100,11 +100,6 @@ namespace ams::ldr::oc::pcv::mariko {
}
}
void CalculateTW2RDerivedWriteTimings() {
tWTM = WL + (BL / 2) + 1 + CEIL(tW2R / tCK_avg);
tWATM = tWTM + CEIL(tWR / tCK_avg);
}
void CalculateQuse() {
quse = ROUND(0.002266 * (C.marikoEmcMaxClock / 1000.0) + 31.88) + C.mem_burst_read_latency;
@@ -173,7 +168,6 @@ namespace ams::ldr::oc::pcv::mariko {
CalculateTWTPDEN();
CalculateTR2W();
CalculateTW2R();
CalculateTW2RDerivedWriteTimings();
CalculateQuse();
CalculateQrst();
CalculateQsafe();

View File

@@ -145,8 +145,8 @@ namespace ams::ldr::oc {
inline u32 tW2P;
inline u32 tWTPDEN;
inline u32 tW2R;
inline u32 tWTM;
inline u32 tWATM;
const u32 tWTM = WL + (BL / 2) + 1 + CEIL(7.5 / tCK_avg);
const u32 tWATM = tWTM + CEIL(tWR / tCK_avg);
const u32 wdv = 0xE + C.mem_burst_write_latency;
const u32 wsv = 0xC + C.mem_burst_write_latency;