PBL_DEVICE_STATE_DEFINE(sym); \
static struct pbl_panel_otm8009a_state sym##_otm_state = { \
.dsi = { \
.host = (_host), \
.channel = (_channel), \
.lanes = 2U, \
.timing = &sym##_otm_state.timing, \
}, \
}; \
.panel =
PBL_PANEL_INIT(sym, _name, pbl_panel_otm8009a_init,
nullptr, &pbl_panel_otm8009a_ops, \
.reset = _reset, \
.state = &sym##_otm_state, \
}; \
PBL_BACKLIGHT_STATE_DEFINE(sym##_backlight); \
backlight) { \
.backlight =
PBL_BACKLIGHT_INIT(sym##_backlight, _name
"_backlight", &sym##_inst.panel.dev, \
&pbl_panel_otm8009a_backlight_ops), \
.otm = &sym##_inst, \
}
Backlight.
Definition backlight.h:80
#define PBL_BACKLIGHT_BRIGHTNESS_MAX
Maximum brightness.
Definition backlight.h:48
#define PBL_BACKLIGHT_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_backlight.
Definition backlight.h:117
@ PBL_MIPI_DSI_FMT_RGB888
24 bits per pixel, 8 per color.
Definition mipi_dsi.h:58
Brightness of the panel.
Definition otm8009a.h:47
Panel.
Definition otm8009a.h:36
A panel.
Definition panel.h:138
#define PBL_PANEL_INIT(sym, _name, _init, _parent, _ops, _timing, _bus_format,...)
Initializer for the struct pbl_panel of panel sym, for the PBL_*_DEFINE() macro of a driver,...
Definition panel.h:166
@ PBL_PANEL_BUS_FORMAT_MIPI_DSI_CMD_RGB888
MIPI DSI in command mode: RGB888 frames of a display controller into the frame memory of the panel,...
Definition panel.h:48
Define the panel and its brightness.