From 95e7f61f33727bf655bbed7ea416934992e0eebc Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Mon, 8 Jun 2020 17:08:42 +0200 Subject: [PATCH] firmware-imx: add custom sdma-firmware service for the ccimx8mn-dvk This service is the same as the one provided by NXP, but with altered dependencies. Start it before the kernel modules are loaded so the firmware is ready by the time the mcp25xxfd module is loaded. https://jira.digi.com/browse/DEL-7114 Signed-off-by: Gabriel Valcazar --- .../files/ccimx8mn-dvk/sdma-firmware.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-digi-arm/recipes-bsp/firmware-imx/files/ccimx8mn-dvk/sdma-firmware.service diff --git a/meta-digi-arm/recipes-bsp/firmware-imx/files/ccimx8mn-dvk/sdma-firmware.service b/meta-digi-arm/recipes-bsp/firmware-imx/files/ccimx8mn-dvk/sdma-firmware.service new file mode 100644 index 000000000..918cce6c9 --- /dev/null +++ b/meta-digi-arm/recipes-bsp/firmware-imx/files/ccimx8mn-dvk/sdma-firmware.service @@ -0,0 +1,15 @@ +# The SDMA firmware needs to be loaded in order for the kernel to carry out +# SPI tranfers with DMA. Such transfers are required when probing the mcp25xxfd +# module, so make sure the firmware is loaded before the module is by adding +# the appropriate dependencies in this service. + +[Unit] +Description=User Space SDMA Firmware Loading +Before=systemd-modules-load.service +DefaultDependencies=no + +[Service] +ExecStart=/etc/sdma + +[Install] +WantedBy=sysinit.target