bdk: display: simplify macros

Expand register index in parent macro and remove _DI/_DSIREG macros.
This commit is contained in:
CTCaer
2025-12-18 11:17:43 +02:00
parent 8faa1a6690
commit b5a6c8eb64
4 changed files with 146 additions and 148 deletions

View File

@@ -30,7 +30,7 @@
#define WINDOW_D 3
/*! Display registers. */
#define _DIREG(reg) ((reg) * 4)
// All Display/DSI/MIPI register defines and macros are index based (not offset).
// Display controller scratch registers.
#define DC_D_WINBUF_DD_SCRATCH_REGISTER_0 0xED
@@ -470,8 +470,6 @@
#define DC_WINBUF_MEMFETCH_CONTROL 0x82B
/*! Display serial interface registers. */
#define _DSIREG(reg) ((reg) * 4)
#define DSI_INCR_SYNCPT_CNTRL 0x1
#define DSI_INCR_SYNCPT_SOFT_RESET BIT(0)
#define DSI_INCR_SYNCPT_NO_STALL BIT(8)