Skip to content

Commit 0909d70

Browse files
committed
Merge branch 'bits/200-dcp' into asahi-wip
2 parents ec46da5 + 07f3a48 commit 0909d70

46 files changed

Lines changed: 12340 additions & 0 deletions

Some content is hidden

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

MAINTAINERS

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

1705+
APPLE DRM DISPLAY DRIVER
1706+
M: Janne Grunau <j@jannau.net>
1707+
L: dri-devel@lists.freedesktop.org
1708+
S: Maintained
1709+
T: git git://anongit.freedesktop.org/drm/drm-misc
1710+
F: drivers/gpu/drm/apple/
1711+
17051712
APPLE PCIE CONTROLLER DRIVER
17061713
M: Alyssa Rosenzweig <alyssa@rosenzweig.io>
17071714
M: Marc Zyngier <maz@kernel.org>

drivers/gpu/drm/Kconfig

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

450450
source "drivers/gpu/drm/sprd/Kconfig"
451451

452+
source "drivers/gpu/drm/apple/Kconfig"
453+
452454
source "drivers/gpu/drm/imagination/Kconfig"
453455

454456
config DRM_HYPERV

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
213213
obj-$(CONFIG_DRM_LIMA) += lima/
214214
obj-$(CONFIG_DRM_PANFROST) += panfrost/
215215
obj-$(CONFIG_DRM_PANTHOR) += panthor/
216+
obj-$(CONFIG_DRM_APPLE) += apple/
216217
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
217218
obj-$(CONFIG_DRM_MCDE) += mcde/
218219
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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 MULTIPLEXER
14+
help
15+
Say Y if you have an Apple Silicon chipset.
16+
17+
config DRM_APPLE_AUDIO
18+
bool "DisplayPort/HDMI Audio support"
19+
default y
20+
depends on DRM_APPLE
21+
depends on SND
22+
select SND_PCM
23+
select SND_DMAENGINE_PCM
24+
25+
config DRM_APPLE_DEBUG
26+
bool "Enable additional driver debugging"
27+
depends on DRM_APPLE
28+
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+
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-y += epic/dpavservep.o
15+
16+
apple_dcp-$(CONFIG_TRACING) += trace.o
17+
18+
obj-$(CONFIG_DRM_APPLE) += appledrm.o
19+
obj-$(CONFIG_DRM_APPLE) += apple_dcp.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)