1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 19:52:11 +00:00

nyx: Add info about Sharp LQ055T1SW10 panel

This commit is contained in:
CTCaer 2022-10-11 03:47:05 +03:00
parent 44b429d5cd
commit a33663f759

View file

@ -320,7 +320,6 @@ static lv_res_t _create_mbox_cal0(lv_obj_t *btn)
cal0->battery_lot, cal0->battery_ver); cal0->battery_lot, cal0->battery_ver);
// Prepare display info. // Prepare display info.
u8 display_rev = (cal0->lcd_vendor >> 8) & 0xFF;
u32 display_id = (cal0->lcd_vendor & 0xFF) << 8 | (cal0->lcd_vendor & 0xFF0000) >> 16; u32 display_id = (cal0->lcd_vendor & 0xFF) << 8 | (cal0->lcd_vendor & 0xFF0000) >> 16;
switch (display_id) switch (display_id)
{ {
@ -331,46 +330,19 @@ static lv_res_t _create_mbox_cal0(lv_obj_t *btn)
strcat(txt_buf, "JDI LPM062M326A"); strcat(txt_buf, "JDI LPM062M326A");
break; break;
case PANEL_INL_P062CCA_AZ1: case PANEL_INL_P062CCA_AZ1:
strcat(txt_buf, "InnoLux P062CCA-AZ"); strcat(txt_buf, "InnoLux P062CCA-AZX");
switch (display_rev)
{
case 0x93:
strcat(txt_buf, "1");
break;
case 0x95:
strcat(txt_buf, "2");
break;
case 0x96:
strcat(txt_buf, "3");
break;
default:
strcat(txt_buf, "X");
break;
}
break; break;
case PANEL_AUO_A062TAN01: case PANEL_AUO_A062TAN01:
strcat(txt_buf, "AUO A062TAN0"); strcat(txt_buf, "AUO A062TAN0X");
switch (display_rev)
{
case 0x93:
strcat(txt_buf, "0");
break;
case 0x94:
strcat(txt_buf, "1");
break;
case 0x95:
strcat(txt_buf, "2");
break;
default:
strcat(txt_buf, "X");
break;
}
break; break;
case PANEL_INL_2J055IA_27A: case PANEL_INL_2J055IA_27A:
strcat(txt_buf, "InnoLux 2J055IA-27A"); strcat(txt_buf, "InnoLux 2J055IA-27A");
break; break;
case PANEL_AUO_A055TAN01: case PANEL_AUO_A055TAN01:
strcat(txt_buf, "AUO A055TAN01"); strcat(txt_buf, "AUO A055TAN0X");
break;
case PANEL_SHP_LQ055T1SW10:
strcat(txt_buf, "Sharp LQ055T1SW10");
break; break;
case PANEL_SAM_AMS699VC01: case PANEL_SAM_AMS699VC01:
strcat(txt_buf, "Samsung AMS699VC01"); strcat(txt_buf, "Samsung AMS699VC01");
@ -833,6 +805,9 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
case 0x96: case 0x96:
strcat(txt_buf, "-AZ3"); strcat(txt_buf, "-AZ3");
break; break;
case 0x97:
strcat(txt_buf, "-???");
break;
case 0x98: case 0x98:
strcat(txt_buf, "-???"); strcat(txt_buf, "-???");
break; break;
@ -842,17 +817,26 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
} }
break; break;
case PANEL_AUO_A062TAN01: case PANEL_AUO_A062TAN01:
strcat(txt_buf, "AUO A062"); strcat(txt_buf, "AUO A062TAN");
switch (display_rev) switch (display_rev)
{ {
case 0x93: case 0x93:
strcat(txt_buf, "TAN00"); strcat(txt_buf, "00");
break; break;
case 0x94: case 0x94:
strcat(txt_buf, "TAN01"); strcat(txt_buf, "01");
break; break;
case 0x95: case 0x95:
strcat(txt_buf, "TAN02"); strcat(txt_buf, "02");
break;
case 0x96:
strcat(txt_buf, "XX");
break;
case 0x97:
strcat(txt_buf, "XX");
break;
case 0x98:
strcat(txt_buf, "XX");
break; break;
default: default:
strcat(txt_buf, " #FFDD00 Contact me!#"); strcat(txt_buf, " #FFDD00 Contact me!#");
@ -863,7 +847,11 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
strcat(txt_buf, "InnoLux 2J055IA-27A"); strcat(txt_buf, "InnoLux 2J055IA-27A");
break; break;
case PANEL_AUO_A055TAN01: case PANEL_AUO_A055TAN01:
strcat(txt_buf, "AUO A055TAN01"); strcat(txt_buf, "AUO A055TAN");
s_printf(txt_buf + strlen(txt_buf), "%02d", display_rev - 0x92);
break;
case PANEL_SHP_LQ055T1SW10:
strcat(txt_buf, "Sharp LQ055T1SW10");
break; break;
case PANEL_SAM_AMS699VC01: case PANEL_SAM_AMS699VC01:
strcat(txt_buf, "Samsung AMS699VC01"); strcat(txt_buf, "Samsung AMS699VC01");