History

dmaengine: imx-sdma: Allow imx8m for imx7 FW revs

The revision of the imx-sdma IP that is in the i.MX8M series is the same is that as that in the i.MX7 series but the imx7d MODULE_FIRMWARE directive is wrapped in a condiditional which means it's not defined when built for aarch64 SOC_IMX8M platforms and hence you get the following errors when the driver loads on imx8m devices: imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2 imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware Add the SOC_IMX8M into the check so the firmware can load on i.MX8.

Peter Robinson committed 4 years ago

Commit a7cd3cf1 parent 646728d1 file · +1 −1Browse files

Unified · Split

drivers/dma/imx-sdma.c+1−1
@@ -2346,7 +2346,7 @@ MODULE_DESCRIPTION("i.MX SDMA driver"); · 2345 unmodified lines
2346#if IS_ENABLED(CONFIG_SOC_IMX6Q)2346#if IS_ENABLED(CONFIG_SOC_IMX6Q)
2347MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin");2347MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin");
2348#endif2348#endif
2349#if IS_ENABLED(CONFIG_SOC_IMX7D)2349#if IS_ENABLED(CONFIG_SOC_IMX7D) || IS_ENABLED(CONFIG_SOC_IMX8M)
2350MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin");2350MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin");
2351#endif2351#endif
2352MODULE_LICENSE("GPL");2352MODULE_LICENSE("GPL");