MLK-16104-1 dma: imx-sdma: add i.mx8m for multi sdma devices
authorRobin Gong <yibin.gong@nxp.com>
Mon, 31 Jul 2017 08:59:26 +0000 (16:59 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:13 +0000 (15:36 -0500)
Add i.mx8m for multi sdma devices.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
drivers/dma/imx-sdma.c

index ccc6c08..0839b70 100644 (file)
@@ -9,6 +9,7 @@ Required properties:
       "fsl,imx53-sdma"
       "fsl,imx6q-sdma"
       "fsl,imx7d-sdma"
+      "fsl,imx8mq-sdma"
   The -to variants should be preferred since they allow to determine the
   correct ROM script addresses needed for the driver to work without additional
   firmware.
index b39eb34..4cbd002 100644 (file)
@@ -558,6 +558,12 @@ static struct sdma_driver_data sdma_imx7d = {
        .script_addrs = &sdma_script_imx7d,
 };
 
+static struct sdma_driver_data sdma_imx8m = {
+       .chnenbl0 = SDMA_CHNENBL0_IMX35,
+       .num_events = 48,
+       .script_addrs = &sdma_script_imx7d,
+};
+
 static const struct platform_device_id sdma_devtypes[] = {
        {
                .name = "imx25-sdma",
@@ -583,6 +589,9 @@ static const struct platform_device_id sdma_devtypes[] = {
        }, {
                .name = "imx7d-sdma",
                .driver_data = (unsigned long)&sdma_imx7d,
+       }, {
+               .name = "imx8mq-sdma",
+               .driver_data = (unsigned long)&sdma_imx8m,
        }, {
                /* sentinel */
        }
@@ -599,6 +608,7 @@ static const struct of_device_id sdma_dt_ids[] = {
        { .compatible = "fsl,imx31-sdma", .data = &sdma_imx31, },
        { .compatible = "fsl,imx25-sdma", .data = &sdma_imx25, },
        { .compatible = "fsl,imx7d-sdma", .data = &sdma_imx7d, },
+       { .compatible = "fsl,imx8mq-sdma", .data = &sdma_imx8m, },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, sdma_dt_ids);