From 528ddbe12c98eab7bff590390c97e4e047e14ee9 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sat, 4 Jul 2020 21:02:45 +0300 Subject: [PATCH] minerva: Disable for T210B01 Minerva is currently unsupported for Mariko LPDDR4X. --- bdk/mem/minerva.c | 5 +++++ bootloader/main.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bdk/mem/minerva.c b/bdk/mem/minerva.c index 49865c2..183b633 100644 --- a/bdk/mem/minerva.c +++ b/bdk/mem/minerva.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -37,6 +38,10 @@ u32 minerva_init() minerva_cfg = NULL; mtc_config_t *mtc_cfg = (mtc_config_t *)&nyx_str->mtc_cfg; + //!TODO: Not supported on T210B01 yet. + if (hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01) + return 0; + #ifdef NYX // Set table to nyx storage. mtc_cfg->mtc_table = (emc_table_t *)nyx_str->mtc_table; diff --git a/bootloader/main.c b/bootloader/main.c index 9b772c6..4c1e5f6 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -1531,7 +1531,7 @@ void ipl_main() h_cfg.errors |= ERR_LIBSYS_LP0; // Train DRAM and switch to max frequency. - if (minerva_init()) + if (minerva_init()) //!TODO: Add Tegra210B01 support to minerva. h_cfg.errors |= ERR_LIBSYS_MTC; display_init();