feat(lcd): re-support i80 lcd and support underrun inerrupt on p4 rev 3.0

This commit is contained in:
Chen Jichang
2025-12-30 19:00:57 +08:00
committed by morris
parent 876a32678e
commit 7ef7c9f3a1
4 changed files with 61 additions and 21 deletions
@@ -25,6 +25,9 @@ extern "C" {
#define LCD_LL_EVENT_VSYNC_END (1 << 0)
#define LCD_LL_EVENT_TRANS_DONE (1 << 1)
#define LCD_LL_EVENT_I80 LCD_LL_EVENT_TRANS_DONE
#define LCD_LL_EVENT_RGB LCD_LL_EVENT_VSYNC_END
#define LCD_LL_CLK_FRAC_DIV_N_MAX 256 // LCD_CLK = LCD_CLK_S / (N + b/a), the N register is 8 bit-width
#define LCD_LL_CLK_FRAC_DIV_AB_MAX 64 // LCD_CLK = LCD_CLK_S / (N + b/a), the a/b register is 6 bit-width
#define LCD_LL_PCLK_DIV_MAX 64 // LCD_PCLK = LCD_CLK / MO, the MO register is 6 bit-width