//drivers/gpu/drm/panel/panel-simple.c
static unsigned int panel_simple_get_timings_modes(struct panel_simple *panel)
videomode_from_timing(dt, &vm);
mode = drm_mode_create(drm);
drm_display_mode_from_videomode(&vm, mode);
dmode->hdisplay = vm->hactive;
dmode->hsync_start = dmode->hdisplay + vm->hfront_porch;
dmode->hsync_end = dmode->hsync_start + vm->hsync_len;
dmode->htotal = dmode->hsync_end + vm->hback_porch;
dmode->vdisplay = vm->vactive;
dmode->vsync_start = dmode->vdisplay + vm->vfront_porch;
dmode->vsync_end = dmode->vsync_start + vm->vsync_len;
dmode->vtotal = dmode->vsync_end + vm->vback_porch;
dmode->clock = vm->pixelclock / 1000;
display_timing 转 drm_display_mode
最新推荐文章于 2024-08-26 00:30:08 发布