Correct RCM patched status for Mariko

This also disallows AutoRCM for Mariko.
This commit is contained in:
CTCaer
2020-06-26 22:40:06 +03:00
parent fbbfeb2d1c
commit 1c9efa327c
6 changed files with 22 additions and 10 deletions

View File

@@ -22,6 +22,7 @@
#include <gfx_utils.h>
#include <libs/fatfs/ff.h>
#include <soc/fuse.h>
#include <soc/hw_init.h>
#include <soc/t210.h>
#include <storage/nx_sd.h>
#include <storage/sdmmc.h>
@@ -50,6 +51,7 @@ void set_default_configuration()
h_cfg.rcm_patched = fuse_check_patched_rcm();
h_cfg.sbk_set = FUSE(FUSE_PRIVATE_KEY0) == 0xFFFFFFFF;
h_cfg.emummc_force_disable = false;
h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01;
sd_power_cycle_time_start = 0;
}

View File

@@ -32,6 +32,7 @@ typedef struct _hekate_config
u32 updater2p;
u32 bootprotect;
// Global temporary config.
bool t210b01;
bool se_keygen_done;
bool sept_run;
bool aes_slots_new;

View File

@@ -75,6 +75,9 @@ bool get_autorcm_status(bool change)
sdmmc_t sdmmc;
bool enabled = false;
if (h_cfg.t210b01)
return false;
sdmmc_storage_init_mmc(&storage, &sdmmc, SDMMC_BUS_WIDTH_8, SDHCI_TIMING_MMC_HS400);
u8 *tempbuf = (u8 *)malloc(0x200);