hekate/nyx: use minerva storage and panel id
This commit is contained in:
@@ -870,8 +870,8 @@ static lv_res_t _create_window_hw_info_status(lv_obj_t *btn)
|
||||
strcat(txt_buf, "\n\n");
|
||||
|
||||
// Prepare display info.
|
||||
u8 display_rev = (nyx_str->info.disp_id >> 8) & 0xFF;
|
||||
u32 display_id = ((nyx_str->info.disp_id >> 8) & 0xFF00) | (nyx_str->info.disp_id & 0xFF);
|
||||
u8 display_rev = (nyx_str->info.panel_id >> 8) & 0xFF;
|
||||
u32 display_id = ((nyx_str->info.panel_id >> 8) & 0xFF00) | (nyx_str->info.panel_id & 0xFF);
|
||||
|
||||
strcat(txt_buf, "#00DDFF Display Panel:#\n#FF8000 Model:# ");
|
||||
|
||||
@@ -983,7 +983,7 @@ static lv_res_t _create_window_hw_info_status(lv_obj_t *btn)
|
||||
}
|
||||
|
||||
s_printf(txt_buf + strlen(txt_buf), "\n#FF8000 ID:# #96FF00 %02X# %02X #96FF00 %02X#",
|
||||
nyx_str->info.disp_id & 0xFF, (nyx_str->info.disp_id >> 8) & 0xFF, (nyx_str->info.disp_id >> 16) & 0xFF);
|
||||
nyx_str->info.panel_id & 0xFF, (nyx_str->info.panel_id >> 8) & 0xFF, (nyx_str->info.panel_id >> 16) & 0xFF);
|
||||
|
||||
touch_fw_info_t touch_fw;
|
||||
touch_panel_info_t *touch_panel;
|
||||
|
||||
@@ -445,7 +445,7 @@ void nyx_init_load_res()
|
||||
nyx_str->info.magic = 0;
|
||||
|
||||
// Set display id from previous initialization.
|
||||
display_set_decoded_panel_id(nyx_str->info.disp_id);
|
||||
display_set_decoded_panel_id(nyx_str->info.panel_id);
|
||||
|
||||
// Initialize gfx console.
|
||||
gfx_init_ctxt((u32 *)LOG_FB_ADDRESS, 1280, 656, 656);
|
||||
@@ -466,7 +466,7 @@ void nyx_init_load_res()
|
||||
}
|
||||
|
||||
// Train DRAM and switch to max frequency.
|
||||
minerva_init();
|
||||
minerva_init((minerva_str_t *)&nyx_str->minerva);
|
||||
|
||||
// Load hekate/Nyx configuration.
|
||||
_load_saved_configuration();
|
||||
|
||||
Reference in New Issue
Block a user