Skip to contentSkip to conversation

dmaengine: imx-sdma: Add MODULE_FIRMWARE

PATCH Nicolas Chauvet 1 participant 1 message Dec 13, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This avoid the following error when using an initramfs on wandboard quad Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2

---
 drivers/dma/imx-sdma.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/dma/imx-sdma.c +6 -0
index 2184881afe76..e7db24c67030 100644
@@ -1939,4 +1939,10 @@ module_platform_driver(sdma_driver);
 
 MODULE_AUTHOR("Sascha Hauer, Pengutronix <[email protected]>");
 MODULE_DESCRIPTION("i.MX SDMA driver");
+#if IS_ENABLED(CONFIG_SOC_IMX6Q)
+MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin");
+#endif
+#if IS_ENABLED(CONFIG_SOC_IMX7D)
+MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin");
+#endif
 MODULE_LICENSE("GPL");