hekate: add force 8GB ram config mode

This commit is contained in:
CTCaer
2025-11-27 12:29:16 +02:00
parent dcf8e76441
commit e5566c0a46
3 changed files with 9 additions and 1 deletions

View File

@@ -739,7 +739,7 @@ static void _l4t_bpmpfw_b01_config(l4t_ctxt_t *ctxt)
char *ram_oc_txt = ctxt->ram_oc_txt;
u32 ram_oc_freq = ctxt->ram_oc_freq;
u32 ram_oc_opt = ctxt->ram_oc_opt;
u32 ram_id = fuse_read_dramid(true);
u32 ram_id = fuse_read_dramid(false);
// Set default parameters.
*(u32 *)BPMPFW_B01_DTB_ADDR = 0;

View File

@@ -1469,6 +1469,10 @@ extern void pivot_stack(u32 stack_top);
void ipl_main()
{
// Override DRAM ID if needed.
if (ipl_ver.rcfg.rsvd_flags & RSVD_FLAG_DRAM_8GB)
fuse_force_8gb_dramid();
// Do initial HW configuration. This is compatible with consecutive reruns without a reset.
hw_init();

View File

@@ -447,6 +447,10 @@ void nyx_init_load_res()
nyx_str->info.magic = 0;
nyx_str->info_ex.magic = 0;
// Override DRAM ID if needed.
if (nyx_str->info_ex.rsvd_flags & RSVD_FLAG_DRAM_8GB)
fuse_force_8gb_dramid();
// Set display id from previous initialization.
display_set_decoded_panel_id(nyx_str->info.panel_id);