Skip to content

Commit fa201ac

Browse files
committed
drm: Add DRM support for tiny LCD displays
tinydrm provides helpers for very simple displays that can use CMA backed framebuffers and need flushing on changes. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Thierry Reding <treding@nvidia.com>
1 parent 9ca7035 commit fa201ac

10 files changed

Lines changed: 762 additions & 0 deletions

File tree

‎Documentation/gpu/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Linux GPU Driver Developer's Guide
1111
drm-kms-helpers
1212
drm-uapi
1313
i915
14+
tinydrm
1415
vga-switcheroo
1516
vgaarbiter
1617

‎Documentation/gpu/tinydrm.rst‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
==========================
2+
drm/tinydrm Driver library
3+
==========================
4+
5+
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c
6+
:doc: overview
7+
8+
Core functionality
9+
==================
10+
11+
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c
12+
:doc: core
13+
14+
.. kernel-doc:: include/drm/tinydrm/tinydrm.h
15+
:internal:
16+
17+
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c
18+
:export:
19+
20+
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c
21+
:export:

‎drivers/gpu/drm/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ source "drivers/gpu/drm/mxsfb/Kconfig"
263263

264264
source "drivers/gpu/drm/meson/Kconfig"
265265

266+
source "drivers/gpu/drm/tinydrm/Kconfig"
267+
266268
# Keep legacy drivers last
267269

268270
menuconfig DRM_LEGACY

‎drivers/gpu/drm/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,4 @@ obj-$(CONFIG_DRM_ARCPGU)+= arc/
9494
obj-y += hisilicon/
9595
obj-$(CONFIG_DRM_ZTE) += zte/
9696
obj-$(CONFIG_DRM_MXSFB) += mxsfb/
97+
obj-$(CONFIG_DRM_TINYDRM) += tinydrm/

‎drivers/gpu/drm/tinydrm/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
menuconfig DRM_TINYDRM
2+
tristate "Support for simple displays"
3+
depends on DRM
4+
select DRM_KMS_HELPER
5+
select DRM_KMS_CMA_HELPER
6+
help
7+
Choose this option if you have a tinydrm supported display.
8+
If M is selected the module will be called tinydrm.

‎drivers/gpu/drm/tinydrm/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_DRM_TINYDRM) += core/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tinydrm-y := tinydrm-core.o tinydrm-pipe.o
2+
3+
obj-$(CONFIG_DRM_TINYDRM) += tinydrm.o

0 commit comments

Comments
 (0)