Skip to content

Commit

Permalink
Merge branch 'bits/240-isp' into asahi-wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jannau committed Jul 7, 2024
2 parents 8f80697 + 6666387 commit 3d4b457
Show file tree
Hide file tree
Showing 23 changed files with 5,128 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/io-pgtable-dart.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ static int dart_init_pte(struct dart_io_pgtable *data,
pte |= FIELD_PREP(APPLE_DART_PTE_SUBPAGE_START, 0);
pte |= FIELD_PREP(APPLE_DART_PTE_SUBPAGE_END, 0xfff);

pte |= APPLE_DART1_PTE_PROT_SP_DIS;
pte |= APPLE_DART_PTE_VALID;

for (i = 0; i < num_entries; i++)
Expand Down Expand Up @@ -218,6 +217,7 @@ static dart_iopte dart_prot_to_pte(struct dart_io_pgtable *data,
dart_iopte pte = 0;

if (data->iop.fmt == APPLE_DART) {
pte |= APPLE_DART1_PTE_PROT_SP_DIS;
if (!(prot & IOMMU_WRITE))
pte |= APPLE_DART1_PTE_PROT_NO_WRITE;
if (!(prot & IOMMU_READ))
Expand Down
1 change: 1 addition & 0 deletions drivers/media/platform/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ config VIDEO_MUX
source "drivers/media/platform/allegro-dvt/Kconfig"
source "drivers/media/platform/amlogic/Kconfig"
source "drivers/media/platform/amphion/Kconfig"
source "drivers/media/platform/apple/Kconfig"
source "drivers/media/platform/aspeed/Kconfig"
source "drivers/media/platform/atmel/Kconfig"
source "drivers/media/platform/cadence/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions drivers/media/platform/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
obj-y += allegro-dvt/
obj-y += amlogic/
obj-y += amphion/
obj-y += apple/
obj-y += aspeed/
obj-y += atmel/
obj-y += cadence/
Expand Down
5 changes: 5 additions & 0 deletions drivers/media/platform/apple/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only

comment "Apple media platform drivers"

source "drivers/media/platform/apple/isp/Kconfig"
3 changes: 3 additions & 0 deletions drivers/media/platform/apple/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only

obj-y += isp/
1 change: 1 addition & 0 deletions drivers/media/platform/apple/isp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.clang-format
10 changes: 10 additions & 0 deletions drivers/media/platform/apple/isp/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: GPL-2.0-only

config VIDEO_APPLE_ISP
tristate "Apple Silicon Image Signal Processor driver"
select VIDEOBUF2_CORE
select VIDEOBUF2_V4L2
select VIDEOBUF2_DMA_SG
depends on ARCH_APPLE || COMPILE_TEST
depends on V4L_PLATFORM_DRIVERS
depends on VIDEO_DEV
3 changes: 3 additions & 0 deletions drivers/media/platform/apple/isp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
apple-isp-y := isp-cam.o isp-cmd.o isp-drv.o isp-fw.o isp-iommu.o isp-ipc.o isp-v4l2.o
obj-$(CONFIG_VIDEO_APPLE_ISP) += apple-isp.o
Loading

0 comments on commit 3d4b457

Please sign in to comment.