clkmgr: (hack) prevent emc freq list mismatch with 64 lut freq hack

This commit is contained in:
Lightos1 committed 2026-08-25 21:25:01 +02:00
1 parent f9ed6c84b9
commit dd59deeefa
3 files changed
+18 -2

No files matched your search

+12
View File
@@ -219,6 +219,18 @@ namespace kip {
// return;
// }
/* Hack: Get the actually applied and in use emc max clock for 64 lut freq hack. */
/* I hate this. */
/* Don't fetch frequency if it's already set or we would overwrite it. */
/* This technically only applies to Mariko *for now*. */
if (clockManager::patchedEmcMaxClock == 0) {
if (board::GetSocType() == HocClkSocType_Mariko) {
clockManager::patchedEmcMaxClock = cust_get_mariko_emc_max(&table);
} else {
clockManager::patchedEmcMaxClock = cust_get_erista_emc_max(&table);
}
}
if ((u64)crc32::checksum_file("sdmc:/atmosphere/kips/hoc.kip") != config::GetConfigValue(KipCrc32) &&
!config::GetConfigValue(HocClkConfigValue_IsFirstLoad)) {
MigrateKipData(cust_get_cust_rev(&table), cust_get_kip_version(&table));