Skip to content

Commit

Permalink
Compile with 32bit accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxPayne86 committed Jul 2, 2024
1 parent 3072d65 commit 5ae46c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipes-kernel/kernel-modules/akida-pcie-driver.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ inherit module
SRC_URI = " \
git://github.com/Brainchip-Inc/akida_dw_edma.git;branch=master;protocol=https \
file://0001-OE-fix-Makefile.patch \
file://0002-Force-32bit-PCIe-accesses.patch \
"
SRCREV = "656640c901b07ef4540f425a015c72d1653fb9da"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/Makefile b/Makefile
index 7b0921b..d35d276 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,11 @@ ifeq ($(CONFIG_ARCH_BCM2835),y)
ccflags-y += -DAKIDA_DW_EDMA_FORCE_32BIT
endif

+ifeq ($(CONFIG_SOC_IMX8M),y)
+# Kernel built to support a i.MX8M -> Force 32bit PCIe accesses
+ccflags-y += -DAKIDA_DW_EDMA_FORCE_32BIT
+endif
+
obj-m := akida-pcie.o

akida-pcie-y += akida-pcie-core.o

0 comments on commit 5ae46c7

Please sign in to comment.