Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260544
b: refs/heads/master
c: 931de39
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed Jul 7, 2011
1 parent 8683fa7 commit 07d27a3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be070a40780ff61be7349b2aeeae35663e01b44b
refs/heads/master: 931de39219bd31944dda69a015ccef103cd1d193
28 changes: 28 additions & 0 deletions trunk/arch/arm/plat-mxc/devices/platform-imx-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ struct imx_imx_sdma_data imx51_imx_sdma_data __initconst =
imx_imx_sdma_data_entry_single(MX51, 2, "imx51", 1);
#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)
{
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 07d27a3

Please sign in to comment.