Skip to content

Commit 8f2bcad

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
gpu: drm: adp: Add Apple Display Pipe driver
This display controller is present on M-series chips and is used to drive the touchbar display. Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 0c38364 commit 8f2bcad

5 files changed

Lines changed: 782 additions & 0 deletions

File tree

drivers/gpu/drm/Kconfig

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

414414
source "drivers/gpu/drm/tidss/Kconfig"
415415

416+
source "drivers/gpu/drm/adp/Kconfig"
417+
416418
source "drivers/gpu/drm/xlnx/Kconfig"
417419

418420
source "drivers/gpu/drm/gud/Kconfig"

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ obj-y += mxsfb/
204204
obj-y += tiny/
205205
obj-$(CONFIG_DRM_PL111) += pl111/
206206
obj-$(CONFIG_DRM_TVE200) += tve200/
207+
obj-$(CONFIG_DRM_ADP) += adp/
207208
obj-$(CONFIG_DRM_XEN) += xen/
208209
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
209210
obj-$(CONFIG_DRM_LIMA) += lima/

drivers/gpu/drm/adp/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
config DRM_ADP
3+
tristate "DRM Support for pre-DCP Apple display controllers"
4+
depends on DRM && OF && ARM64
5+
depends on ARCH_APPLE || COMPILE_TEST
6+
select DRM_KMS_HELPER
7+
select DRM_KMS_DMA_HELPER
8+
select DRM_GEM_DMA_HELPER
9+
select VIDEOMODE_HELPERS
10+
select DRM_MIPI_DSI
11+
help
12+
Say Y if you have an Apple Arm laptop with a touchbar.

drivers/gpu/drm/adp/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
3+
adpdrm-y := adp_drv.o
4+
obj-$(CONFIG_DRM_ADP) += adpdrm.o
5+
obj-$(CONFIG_DRM_ADP) += panel-summit.o

0 commit comments

Comments
 (0)