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 <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2020-06-08 17:08:42 +02:00
parent ec0cf65c8e
commit 95e7f61f33
1 changed files with 15 additions and 0 deletions

View File

@ -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