dmaengine: imx-sdma: Add MODULE_FIRMWARE
authorNicolas Chauvet <kwizart@gmail.com>
Wed, 13 Dec 2017 15:50:33 +0000 (16:50 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 22 Dec 2017 12:05:44 +0000 (17:35 +0530)
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

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c

index 2184881afe76be5840f9adaff908c91e0626c2db..e7db24c67030d19a0db9c88d46ae867d11e4d0dd 100644 (file)
@@ -1939,4 +1939,10 @@ module_platform_driver(sdma_driver);
 
 MODULE_AUTHOR("Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>");
 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");