Skip to content

Commit

Permalink
Tue Apr 16 10:08:03 UTC 2024 Kernel update
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 16, 2024
1 parent 638e536 commit 685c647
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions bsp/modules/fbtft/fb_st7789v.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,29 @@ static irqreturn_t panel_te_handler(int irq, void *data)
*/
static int init_display(struct fbtft_par *par)
{
par->fbtftops.reset(par);
mdelay(50);
write_reg(par, PORCTRL, 0x0C, 0x0C, 0x00, 0x33, 0x33);
write_reg(par, GCTRL, 0x35);
write_reg(par, VCOMS, 0x19);
write_reg(par, VDVVRHEN, 0x01);
write_reg(par, VRHS, 0x12);
write_reg(par, VDVS, 0x20);
write_reg(par, VCMOFSET, 0x0F);
write_reg(par, PWCTRL1, 0xA4, 0xA1);
write_reg(par, PVGAMCTRL, 0xD0, 0x04, 0x0D, 0x11, 0x13, 0x2B, 0x3F, 0x54, 0x4C, 0x18, 0x0D, 0x0B, 0x1F, 0x23);
write_reg(par, NVGAMCTRL, 0xD0, 0x04, 0x0C, 0x11, 0x13, 0x2C, 0x3F, 0x44, 0x51, 0x2F, 0x1F, 0x1F, 0x20, 0x23);
write_reg(par, 0x21);
write_reg(par, 0x11);
mdelay(50);
write_reg(par, 0x29);
mdelay(200);
return 0;
par->fbtftops.reset(par);
mdelay(50);
write_reg(par, 0x36, 0x00);
write_reg(par, 0x3A, 0x05);
write_reg(par, 0xB2, 0x0C, 0x0C, 0x00, 0x33, 0x33);
write_reg(par, 0xB7, 0x35);
write_reg(par, 0xBB, 0x19);
write_reg(par, 0xC0, 0x2C);
write_reg(par, 0xC2, 0x01);
write_reg(par, 0xC3, 0x12);
write_reg(par, 0xC4, 0x20);
write_reg(par, 0xC6, 0x0F);
write_reg(par, 0xD0, 0xA4, 0xA1);
write_reg(par, 0xE0, 0xD0, 0x04, 0x0D, 0x11, 0x13, 0x2B, 0x3F, 0x54,
0x4C, 0x18, 0x0D, 0x0B, 0x1F, 0x23);
write_reg(par, 0xE1, 0xD0, 0x04, 0x0C, 0x11, 0x13, 0x2C, 0x3F, 0x44,
0x51, 0x2F, 0x1F, 0x1F, 0x20, 0x23);
write_reg(par, 0x21);
write_reg(par, 0x11);
mdelay(50);
write_reg(par, 0x29);
mdelay(200);
return 0;
}


Expand Down

0 comments on commit 685c647

Please sign in to comment.