summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/sdma
diff options
context:
space:
mode:
authorZeng Zhaoming <b32542@freescale.com>2010-10-21 03:13:50 +0800
committerZeng Zhaoming <b32542@freescale.com>2010-10-21 07:08:40 +0800
commit6bdaed9fd204838af07055c468e29a7fab5dd494 (patch)
tree37a5cb27442a330d8c8e585a0053ccaa92ac630e /arch/arm/plat-mxc/sdma
parent1b081d8987ab5cd95b7ec88c73c85b96bc8c90d4 (diff)
ENGR00132832-1 MX50 SSI: fix ssi errors caused by mx5 dual fifo enable
Upgrade SDMA script to support SSIs dual fifo breaks mx50 ssi, because mx50 new script not available yet. Fix it by according to cpu model to set correct sdma script address. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Diffstat (limited to 'arch/arm/plat-mxc/sdma')
-rw-r--r--arch/arm/plat-mxc/sdma/sdma.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/sdma/sdma.c b/arch/arm/plat-mxc/sdma/sdma.c
index a8191dabc4b3..7fa3cb8582f1 100644
--- a/arch/arm/plat-mxc/sdma/sdma.c
+++ b/arch/arm/plat-mxc/sdma/sdma.c
@@ -304,7 +304,9 @@ static unsigned short sdma_get_pc(sdma_periphT peripheral_type,
res = -EINVAL;
}
#ifdef CONFIG_MXC_SSI_DUAL_FIFO
- } else if (peripheral_type == CSPI || peripheral_type == EXT) {
+ } else if (peripheral_type == CSPI || peripheral_type == EXT ||
+ (peripheral_type == SSI &&
+ !(cpu_is_mx51() || cpu_is_mx53()))) {
#else
} else if (peripheral_type == CSPI || peripheral_type == EXT ||
peripheral_type == SSI) {
@@ -326,9 +328,11 @@ static unsigned short sdma_get_pc(sdma_periphT peripheral_type,
res = -EINVAL;
}
#ifdef CONFIG_MXC_SSI_DUAL_FIFO
- } else if (peripheral_type == MMC ||
- peripheral_type == SDHC || peripheral_type == CSPI_SP ||
- peripheral_type == ESAI || peripheral_type == MSHC_SP) {
+ } else if (peripheral_type == MMC || peripheral_type == SDHC ||
+ peripheral_type == CSPI_SP || peripheral_type == ESAI ||
+ peripheral_type == MSHC_SP ||
+ (peripheral_type == SSI_SP &&
+ !(cpu_is_mx51() || cpu_is_mx53()))) {
#else
} else if (peripheral_type == SSI_SP || peripheral_type == MMC ||
peripheral_type == SDHC || peripheral_type == CSPI_SP ||