Skip to content

Commit e9d5b15

Browse files
committed
Merge branch 'refs/heads/bits/200-dcp' into asahi-wip
2 parents 4a9830c + 594271b commit e9d5b15

27 files changed

Lines changed: 5736 additions & 1 deletion

MAINTAINERS

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

1503+
APPLE DRM DISPLAY DRIVER
1504+
M: Alyssa Rosenzweig <[email protected]>
1505+
1506+
S: Maintained
1507+
T: git git://anongit.freedesktop.org/drm/drm-misc
1508+
F: drivers/gpu/drm/apple/
1509+
15031510
APPLE PCIE CONTROLLER DRIVER
15041511
M: Alyssa Rosenzweig <[email protected]>
15051512
M: Marc Zyngier <[email protected]>

drivers/gpu/drm/Kconfig

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

368368
source "drivers/gpu/drm/sprd/Kconfig"
369369

370+
source "drivers/gpu/drm/apple/Kconfig"
371+
370372
config DRM_HYPERV
371373
tristate "DRM Support for Hyper-V synthetic video device"
372374
depends on DRM && PCI && MMU && HYPERV

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ obj-$(CONFIG_DRM_XEN) += xen/
182182
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
183183
obj-$(CONFIG_DRM_LIMA) += lima/
184184
obj-$(CONFIG_DRM_PANFROST) += panfrost/
185+
obj-$(CONFIG_DRM_APPLE) += apple/
185186
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
186187
obj-$(CONFIG_DRM_MCDE) += mcde/
187188
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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
apple_piodma-y := dummy-piodma.o
13+
14+
obj-$(CONFIG_DRM_APPLE) += appledrm.o
15+
obj-$(CONFIG_DRM_APPLE) += apple_dcp.o
16+
obj-$(CONFIG_DRM_APPLE) += apple_piodma.o
17+
18+
# header test
19+
20+
# exclude some broken headers from the test coverage
21+
no-header-test := \
22+
23+
always-y += \
24+
$(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
25+
$(shell cd $(srctree)/$(src) && find * -name '*.h')))
26+
27+
quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
28+
cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@
29+
30+
$(obj)/%.hdrtest: $(src)/%.h FORCE
31+
$(call if_changed_dep,hdrtest)

0 commit comments

Comments
 (0)