diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2026-05-11 13:54:33 +0200 |
|---|---|---|
| committer | Inki Dae <inki.dae@samsung.com> | 2026-05-21 23:11:41 +0900 |
| commit | 7878a215fdd5c2805535077327aada200c7054d3 (patch) | |
| tree | d6c5980ca220ebe16ae59e268edb5cabf9ffd698 /include/linux/timerqueue.h | |
| parent | b4edfb1b4689f3b336f9feb26dec9213917aac18 (diff) | |
drm/exynos: fbdev: Calculate buffer geometry with format helpers
Replace the geometry and size calculation in exynos' fbdev emulation
with DRM format helpers. This consists of a 4CC lookup from the fbdev
parameters, format lookup, pitch calculation and size calculation.
Then allocate the GEM buffer object for the framebuffer memory from
the calculated size. Mmap provides the allocated buffer to user space,
so align the buffer size to PAGE_SIZE.
Initialize the fields screen_size and fix.smem_len in struct fb_info
from the size of the allocated buffer object. This is the real size
and can differ from the requested size.
v3:
- add more error checks to geometry calculations
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
