better tcke formular, fixed w2r array, fixed refresh

This commit is contained in:
Lightos1
2025-12-23 16:32:54 +01:00
parent a0cf26b0a8
commit 152f92a9a9
2 changed files with 2 additions and 2 deletions

View File

@@ -428,7 +428,7 @@ namespace ams::ldr::oc::pcv::mariko {
u32 refresh_raw = 0xFFFF;
if (C.t8_tREFI != 6) {
refresh_raw = std::floor(tREFpb_values[C.t8_tREFI] / tCK_avg) - 0x40;
refresh_raw = CEIL(tREFpb_values[C.t8_tREFI] / tCK_avg) - 0x40;
refresh_raw = MIN(refresh_raw, static_cast<u32>(0xFFFF));
}