diff --git a/recipes-kernel/kernel-modules/akida-pcie-driver.bb b/recipes-kernel/kernel-modules/akida-pcie-driver.bb index 1118584..681806f 100644 --- a/recipes-kernel/kernel-modules/akida-pcie-driver.bb +++ b/recipes-kernel/kernel-modules/akida-pcie-driver.bb @@ -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" diff --git a/recipes-kernel/kernel-modules/akida-pcie-driver/0002-Force-32bit-PCIe-accesses.patch b/recipes-kernel/kernel-modules/akida-pcie-driver/0002-Force-32bit-PCIe-accesses.patch new file mode 100644 index 0000000..bfdec00 --- /dev/null +++ b/recipes-kernel/kernel-modules/akida-pcie-driver/0002-Force-32bit-PCIe-accesses.patch @@ -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