Skip to content

Commit 4c8457a

Browse files
committed
Merge branch 'bits/200-dcp' into asahi-wip
2 parents 2854138 + de8b30f commit 4c8457a

36 files changed

+9737
-1
lines changed

MAINTAINERS

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

1470+
APPLE DRM DISPLAY DRIVER
1471+
M: Janne Grunau <[email protected]>
1472+
1473+
S: Maintained
1474+
T: git git://anongit.freedesktop.org/drm/drm-misc
1475+
F: drivers/gpu/drm/apple/
1476+
14701477
APPLE PCIE CONTROLLER DRIVER
14711478
M: Alyssa Rosenzweig <[email protected]>
14721479
M: Marc Zyngier <[email protected]>

drivers/gpu/drm/Kconfig

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

399399
source "drivers/gpu/drm/sprd/Kconfig"
400400

401+
source "drivers/gpu/drm/apple/Kconfig"
402+
401403
source "drivers/gpu/drm/imagination/Kconfig"
402404

403405
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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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 SND
8+
select DRM_KMS_HELPER
9+
select DRM_KMS_DMA_HELPER
10+
select DRM_GEM_DMA_HELPER
11+
select VIDEOMODE_HELPERS
12+
select MULTIPLEXER
13+
select SND_PCM
14+
help
15+
Say Y if you have an Apple Silicon chipset.

drivers/gpu/drm/apple/Makefile

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

0 commit comments

Comments
 (0)