Skip to content

Commit f2f24d5

Browse files
committed
Merge branch 'bits/200-dcp' into asahi-wip
2 parents a79707a + 172d9f4 commit f2f24d5

Some content is hidden

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

43 files changed

+11647
-1
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,13 @@ L: [email protected]
14851485
S: Odd fixes
14861486
F: drivers/input/mouse/bcm5974.c
14871487

1488+
APPLE DRM DISPLAY DRIVER
1489+
M: Janne Grunau <[email protected]>
1490+
1491+
S: Maintained
1492+
T: git git://anongit.freedesktop.org/drm/drm-misc
1493+
F: drivers/gpu/drm/apple/
1494+
14881495
APPLE PCIE CONTROLLER DRIVER
14891496
M: Alyssa Rosenzweig <[email protected]>
14901497
M: Marc Zyngier <[email protected]>

drivers/gpu/drm/Kconfig

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

386386
source "drivers/gpu/drm/sprd/Kconfig"
387387

388+
source "drivers/gpu/drm/apple/Kconfig"
389+
388390
source "drivers/gpu/drm/imagination/Kconfig"
389391

390392
config DRM_HYPERV

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ obj-$(CONFIG_DRM_XEN) += xen/
179179
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
180180
obj-$(CONFIG_DRM_LIMA) += lima/
181181
obj-$(CONFIG_DRM_PANFROST) += panfrost/
182+
obj-$(CONFIG_DRM_APPLE) += apple/
182183
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
183184
obj-$(CONFIG_DRM_MCDE) += mcde/
184185
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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
select DRM_KMS_HELPER
8+
select DRM_KMS_DMA_HELPER
9+
select DRM_GEM_DMA_HELPER
10+
select VIDEOMODE_HELPERS
11+
select MULTIPLEXER
12+
help
13+
Say Y if you have an Apple Silicon chipset.
14+
15+
config DRM_APPLE_AUDIO
16+
bool "DisplayPort/HDMI Audio support"
17+
default y
18+
depends on DRM_APPLE
19+
depends on SND
20+
select SND_PCM
21+
select SND_DMAENGINE_PCM
22+
23+
config DRM_APPLE_DEBUG
24+
bool "Enable additional driver debugging"
25+
depends on DRM_APPLE
26+
depends on EXPERT # only for developers

drivers/gpu/drm/apple/Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
7+
apple_dcp-y := afk.o dcp.o dcp_backlight.o dptxep.o iomfb.o parser.o systemep.o
8+
apple_dcp-$(CONFIG_DRM_APPLE_AUDIO) += audio.o
9+
apple_dcp-$(CONFIG_DRM_APPLE_AUDIO) += av.o
10+
apple_dcp-y += connector.o
11+
apple_dcp-y += ibootep.o
12+
apple_dcp-y += iomfb_v12_3.o
13+
apple_dcp-y += iomfb_v13_3.o
14+
apple_dcp-$(CONFIG_TRACING) += trace.o
15+
16+
obj-$(CONFIG_DRM_APPLE) += appledrm.o
17+
obj-$(CONFIG_DRM_APPLE) += apple_dcp.o
18+
19+
# header test
20+
21+
# exclude some broken headers from the test coverage
22+
no-header-test := \
23+
24+
always-y += \
25+
$(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
26+
$(shell cd $(srctree)/$(src) && find * -name '*.h')))
27+
28+
quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
29+
cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@
30+
31+
$(obj)/%.hdrtest: $(src)/%.h FORCE
32+
$(call if_changed_dep,hdrtest)

0 commit comments

Comments
 (0)