Fixed write timings. Todo: Fix more read timings
This commit is contained in:
@@ -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) */,
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user