summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/core/Kconfig
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-07-07 10:31:52 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2023-07-24 20:14:29 +0200
commit6f0f6941624d6ded57d362e47e07f8ffe77fa394 (patch)
tree566e8360bca0cc906d5845c94c71ef128b164a54 /drivers/video/fbdev/core/Kconfig
parente6fa4816437902b195578fb64bc94600f0728f21 (diff)
downloadlinux-stable-6f0f6941624d6ded57d362e47e07f8ffe77fa394.tar.gz
linux-stable-6f0f6941624d6ded57d362e47e07f8ffe77fa394.tar.bz2
linux-stable-6f0f6941624d6ded57d362e47e07f8ffe77fa394.zip
fbdev: Add fb_ops init macros for framebuffers in DMA-able memory
Add initializer macros for struct fb_ops for framebuffers in DMA-able memory areas. Also add a corresponding Kconfig token. As of now, this is equivalent to system framebuffers and mostly useful for labeling drivers correctly. A later patch may add a generic DMA-specific mmap operation. Linux offers a number of dma_mmap_*() helpers for different use cases. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Maxime Ripard <mripard@kernel.org> Cc: Helge Deller <deller@gmx.de> Link: https://patchwork.freedesktop.org/patch/msgid/20230707083422.18691-2-tzimmermann@suse.de
Diffstat (limited to 'drivers/video/fbdev/core/Kconfig')
-rw-r--r--drivers/video/fbdev/core/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/fbdev/core/Kconfig b/drivers/video/fbdev/core/Kconfig
index 528e4dd2199c..85434381b6c6 100644
--- a/drivers/video/fbdev/core/Kconfig
+++ b/drivers/video/fbdev/core/Kconfig
@@ -136,6 +136,14 @@ config FB_DEFERRED_IO
bool
depends on FB_CORE
+config FB_DMA_HELPERS
+ bool
+ depends on FB_CORE
+ select FB_SYS_COPYAREA
+ select FB_SYS_FILLRECT
+ select FB_SYS_FOPS
+ select FB_SYS_IMAGEBLIT
+
config FB_IO_HELPERS
bool
depends on FB_CORE