Skip to content

Commit 2b7e3a8

Browse files
committed
Merge branch 'refs/heads/bits/200-dcp' into asahi-wip
2 parents 245570b + 9fbd411 commit 2b7e3a8

26 files changed

Lines changed: 5718 additions & 1 deletion

MAINTAINERS

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

1510+
APPLE DRM DISPLAY DRIVER
1511+
M: Alyssa Rosenzweig <[email protected]>
1512+
1513+
S: Maintained
1514+
T: git git://anongit.freedesktop.org/drm/drm-misc
1515+
F: drivers/gpu/drm/apple/
1516+
15101517
APPLE PCIE CONTROLLER DRIVER
15111518
M: Alyssa Rosenzweig <[email protected]>
15121519
M: Marc Zyngier <[email protected]>

drivers/gpu/drm/Kconfig

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

372372
source "drivers/gpu/drm/sprd/Kconfig"
373373

374+
source "drivers/gpu/drm/apple/Kconfig"
375+
374376
config DRM_HYPERV
375377
tristate "DRM Support for Hyper-V synthetic video device"
376378
depends on DRM && PCI && MMU && HYPERV

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ obj-$(CONFIG_DRM_XEN) += xen/
186186
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
187187
obj-$(CONFIG_DRM_LIMA) += lima/
188188
obj-$(CONFIG_DRM_PANFROST) += panfrost/
189+
obj-$(CONFIG_DRM_APPLE) += apple/
189190
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
190191
obj-$(CONFIG_DRM_MCDE) += mcde/
191192
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
select DRM_KMS_HELPER
7+
select DRM_KMS_DMA_HELPER
8+
select DRM_GEM_DMA_HELPER
9+
select VIDEOMODE_HELPERS
10+
help
11+
Say Y if you have an Apple Silicon chipset.

drivers/gpu/drm/apple/Makefile

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+
3+
CFLAGS_trace.o = -I$(src)
4+
5+
appledrm-y := apple_drv.o
6+
7+
apple_dcp-y := dcp.o dcp_backlight.o iomfb.o parser.o
8+
apple_dcp-y += iomfb_v12_3.o
9+
apple_dcp-y += iomfb_v13_3.o
10+
apple_dcp-$(CONFIG_TRACING) += trace.o
11+
12+
13+
obj-$(CONFIG_DRM_APPLE) += appledrm.o
14+
obj-$(CONFIG_DRM_APPLE) += apple_dcp.o
15+
16+
# header test
17+
18+
# exclude some broken headers from the test coverage
19+
no-header-test := \
20+
21+
always-y += \
22+
$(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
23+
$(shell cd $(srctree)/$(src) && find * -name '*.h')))
24+
25+
quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
26+
cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@
27+
28+
$(obj)/%.hdrtest: $(src)/%.h FORCE
29+
$(call if_changed_dep,hdrtest)

0 commit comments

Comments
 (0)