hekate: add force 8GB ram config mode
This commit is contained in:
@@ -739,7 +739,7 @@ static void _l4t_bpmpfw_b01_config(l4t_ctxt_t *ctxt)
|
|||||||
char *ram_oc_txt = ctxt->ram_oc_txt;
|
char *ram_oc_txt = ctxt->ram_oc_txt;
|
||||||
u32 ram_oc_freq = ctxt->ram_oc_freq;
|
u32 ram_oc_freq = ctxt->ram_oc_freq;
|
||||||
u32 ram_oc_opt = ctxt->ram_oc_opt;
|
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.
|
// Set default parameters.
|
||||||
*(u32 *)BPMPFW_B01_DTB_ADDR = 0;
|
*(u32 *)BPMPFW_B01_DTB_ADDR = 0;
|
||||||
|
|||||||
@@ -1469,6 +1469,10 @@ extern void pivot_stack(u32 stack_top);
|
|||||||
|
|
||||||
void ipl_main()
|
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.
|
// Do initial HW configuration. This is compatible with consecutive reruns without a reset.
|
||||||
hw_init();
|
hw_init();
|
||||||
|
|
||||||
|
|||||||
@@ -447,6 +447,10 @@ void nyx_init_load_res()
|
|||||||
nyx_str->info.magic = 0;
|
nyx_str->info.magic = 0;
|
||||||
nyx_str->info_ex.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.
|
// Set display id from previous initialization.
|
||||||
display_set_decoded_panel_id(nyx_str->info.panel_id);
|
display_set_decoded_panel_id(nyx_str->info.panel_id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user