Skip to content

Commit a2d51ee

Browse files
committed
Merge branch 'bits/200-dcp' into asahi-wip
2 parents 1976bc2 + 64fedb9 commit a2d51ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+12695
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,13 @@ L: linux-input@vger.kernel.org
18711871
S: Odd fixes
18721872
F: drivers/input/mouse/bcm5974.c
18731873

1874+
APPLE DRM DISPLAY DRIVER
1875+
M: Janne Grunau <j@jannau.net>
1876+
L: dri-devel@lists.freedesktop.org
1877+
S: Maintained
1878+
T: git git://anongit.freedesktop.org/drm/drm-misc
1879+
F: drivers/gpu/drm/apple/
1880+
18741881
APPLE PCIE CONTROLLER DRIVER
18751882
M: Marc Zyngier <maz@kernel.org>
18761883
L: linux-pci@vger.kernel.org

drivers/gpu/drm/Kconfig

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

395395
source "drivers/gpu/drm/sprd/Kconfig"
396396

397+
source "drivers/gpu/drm/apple/Kconfig"
398+
397399
source "drivers/gpu/drm/imagination/Kconfig"
398400

399401
source "drivers/gpu/drm/tyr/Kconfig"

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ obj-$(CONFIG_DRM_LIMA) += lima/
221221
obj-$(CONFIG_DRM_PANFROST) += panfrost/
222222
obj-$(CONFIG_DRM_PANTHOR) += panthor/
223223
obj-$(CONFIG_DRM_TYR) += tyr/
224+
obj-$(CONFIG_DRM_APPLE) += apple/
224225
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
225226
obj-$(CONFIG_DRM_MCDE) += mcde/
226227
obj-$(CONFIG_DRM_TIDSS) += tidss/

drivers/gpu/drm/apple/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.hdrtest

drivers/gpu/drm/apple/Kconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
config DRM_APPLE
3+
tristate "DRM Support for Apple display controllers"
4+
depends on DRM && OF && ARM64
5+
depends on ARCH_APPLE || COMPILE_TEST
6+
depends on APPLE_RTKIT
7+
depends on OF_ADDRESS
8+
select DRM_CLIENT_SELECTION
9+
select DRM_KMS_HELPER
10+
select DRM_KMS_DMA_HELPER
11+
select DRM_GEM_DMA_HELPER
12+
select VIDEOMODE_HELPERS
13+
select BACKLIGHT_CLASS_DEVICE
14+
select MULTIPLEXER
15+
help
16+
Say Y if you have an Apple Silicon chipset.
17+
18+
config DRM_APPLE_AUDIO
19+
bool "DisplayPort/HDMI Audio support"
20+
default y
21+
depends on DRM_APPLE
22+
depends on SND
23+
select SND_PCM
24+
select SND_DMAENGINE_PCM
25+
26+
config DRM_APPLE_DEBUG
27+
bool "Enable additional driver debugging"
28+
depends on DRM_APPLE
29+
depends on EXPERT # only for developers

drivers/gpu/drm/apple/Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
3+
CFLAGS_trace.o = -I$(src)
4+
5+
appledrm-y := apple_drv.o
6+
appledrm-y += afk.o dcp.o dcp_backlight.o dptxep.o iomfb.o parser.o systemep.o
7+
appledrm-$(CONFIG_DRM_APPLE_AUDIO) += audio.o
8+
appledrm-$(CONFIG_DRM_APPLE_AUDIO) += av.o
9+
appledrm-y += connector.o
10+
appledrm-y += ibootep.o
11+
appledrm-y += iomfb_v12_3.o
12+
appledrm-y += iomfb_v13_3.o
13+
appledrm-y += epic/dpavservep.o
14+
appledrm-y += plane.o
15+
16+
17+
appledrm-$(CONFIG_TRACING) += trace.o
18+
19+
obj-$(CONFIG_DRM_APPLE) += appledrm.o
20+
21+
# header test
22+
23+
# exclude some broken headers from the test coverage
24+
no-header-test := \
25+
hdmi-codec-chmap.h
26+
27+
always-y += \
28+
$(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
29+
$(shell cd $(src) && find * -name '*.h')))
30+
31+
quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
32+
cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@
33+
34+
$(obj)/%.hdrtest: $(src)/%.h FORCE
35+
$(call if_changed_dep,hdrtest)

0 commit comments

Comments
 (0)