Skip to content

Commit

Permalink
drm: Add DRM support for tiny LCD displays
Browse files Browse the repository at this point in the history
tinydrm provides helpers for very simple displays that can use
CMA backed framebuffers and need flushing on changes.

Signed-off-by: Noralf Trønnes <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Acked-by: Thierry Reding <[email protected]>
  • Loading branch information
notro committed Feb 18, 2017
1 parent 9ca7035 commit fa201ac
Show file tree
Hide file tree
Showing 10 changed files with 762 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/gpu/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Linux GPU Driver Developer's Guide
drm-kms-helpers
drm-uapi
i915
tinydrm
vga-switcheroo
vgaarbiter

Expand Down
21 changes: 21 additions & 0 deletions Documentation/gpu/tinydrm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
==========================
drm/tinydrm Driver library
==========================

.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c
:doc: overview

Core functionality
==================

.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c
:doc: core

.. kernel-doc:: include/drm/tinydrm/tinydrm.h
:internal:

.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c
:export:

.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c
:export:
2 changes: 2 additions & 0 deletions drivers/gpu/drm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ source "drivers/gpu/drm/mxsfb/Kconfig"

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

source "drivers/gpu/drm/tinydrm/Kconfig"

# Keep legacy drivers last

menuconfig DRM_LEGACY
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ obj-$(CONFIG_DRM_ARCPGU)+= arc/
obj-y += hisilicon/
obj-$(CONFIG_DRM_ZTE) += zte/
obj-$(CONFIG_DRM_MXSFB) += mxsfb/
obj-$(CONFIG_DRM_TINYDRM) += tinydrm/
8 changes: 8 additions & 0 deletions drivers/gpu/drm/tinydrm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
menuconfig DRM_TINYDRM
tristate "Support for simple displays"
depends on DRM
select DRM_KMS_HELPER
select DRM_KMS_CMA_HELPER
help
Choose this option if you have a tinydrm supported display.
If M is selected the module will be called tinydrm.
1 change: 1 addition & 0 deletions drivers/gpu/drm/tinydrm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_DRM_TINYDRM) += core/
3 changes: 3 additions & 0 deletions drivers/gpu/drm/tinydrm/core/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tinydrm-y := tinydrm-core.o tinydrm-pipe.o

obj-$(CONFIG_DRM_TINYDRM) += tinydrm.o
Loading

0 comments on commit fa201ac

Please sign in to comment.