]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mx53: Add SDMA support for MX53
authorFabio Estevam <festevam@gmail.com>
Mon, 13 Jun 2011 00:33:00 +0000 (21:33 -0300)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 16 Jun 2011 07:34:30 +0000 (09:34 +0200)
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/devices/platform-imx-dma.c

index b130f60ca6b73e9b7b8435dcc52633bb1761078c..4e7fbc240703ce7594089c5fab88d209aaaf4f0b 100644 (file)
@@ -51,6 +51,11 @@ struct imx_imx_sdma_data imx51_imx_sdma_data __initconst =
        imx_imx_sdma_data_entry_single(MX51, 2, "imx51", 0);
 #endif /* ifdef CONFIG_SOC_IMX51 */
 
+#ifdef CONFIG_SOC_IMX53
+struct imx_imx_sdma_data imx53_imx_sdma_data __initconst =
+       imx_imx_sdma_data_entry_single(MX53, 2, "imx53", 0);
+#endif /* ifdef CONFIG_SOC_IMX53 */
+
 static struct platform_device __init __maybe_unused *imx_add_imx_sdma(
                const struct imx_imx_sdma_data *data)
 {
@@ -153,6 +158,22 @@ static struct sdma_script_start_addrs addr_imx51 = {
 };
 #endif
 
+#ifdef CONFIG_SOC_IMX53
+static struct sdma_script_start_addrs addr_imx53 = {
+       .ap_2_ap_addr = 642,
+       .app_2_mcu_addr = 683,
+       .mcu_2_app_addr = 747,
+       .uart_2_mcu_addr = 817,
+       .shp_2_mcu_addr = 891,
+       .mcu_2_shp_addr = 960,
+       .uartsh_2_mcu_addr = 1032,
+       .spdif_2_mcu_addr = 1100,
+       .mcu_2_spdif_addr = 1134,
+       .firi_2_mcu_addr = 1193,
+       .mcu_2_firi_addr = 1290,
+};
+#endif
+
 static int __init imxXX_add_imx_dma(void)
 {
        struct platform_device *ret;
@@ -202,6 +223,13 @@ static int __init imxXX_add_imx_dma(void)
                ret = imx_add_imx_sdma(&imx51_imx_sdma_data);
        } else
 #endif
+
+#if defined(CONFIG_SOC_IMX53)
+       if (cpu_is_mx53()) {
+               imx53_imx_sdma_data.pdata.script_addrs = &addr_imx53;
+               ret = imx_add_imx_sdma(&imx53_imx_sdma_data);
+       } else
+#endif
                ret = ERR_PTR(-ENODEV);
 
        if (IS_ERR(ret))