summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPavel Herrmann <morpheus.ibis@gmail.com>2012-10-07 05:56:13 +0000
committerTom Rini <trini@ti.com>2012-10-17 07:59:09 -0700
commit21d2bf426f15f4f2f184e9f4afcc279feeeba854 (patch)
tree9eaf02cf460d54f0c6f94dd84be4b41730c758ae /common
parent4d1361d86773fce10352bd35729ce74036d5acb0 (diff)
downloadu-boot-imx-21d2bf426f15f4f2f184e9f4afcc279feeeba854.zip
u-boot-imx-21d2bf426f15f4f2f184e9f4afcc279feeeba854.tar.gz
u-boot-imx-21d2bf426f15f4f2f184e9f4afcc279feeeba854.tar.bz2
split PCS440EP specific code from cmd_ide.c
Move specific ide_input_data and friends to board-specific file. Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ide.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 5b46e3c..1c6ad32 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -522,9 +522,6 @@ void __ide_input_swap_data(int dev, ulong *sect_buf, int words)
#ifdef __MIPS__
*dbuf++ = swab16p((u16 *) pbuf);
*dbuf++ = swab16p((u16 *) pbuf);
-#elif defined(CONFIG_PCS440EP)
- *dbuf++ = *pbuf;
- *dbuf++ = *pbuf;
#else
*dbuf++ = ld_le16(pbuf);
*dbuf++ = ld_le16(pbuf);
@@ -543,18 +540,10 @@ void __ide_output_data(int dev, const ulong *sect_buf, int words)
pbuf = (ushort *) (ATA_CURR_BASE(dev) + ATA_DATA_REG);
dbuf = (ushort *) sect_buf;
while (words--) {
-#if defined(CONFIG_PCS440EP)
- /* not tested, because CF was write protected */
- EIEIO;
- *pbuf = ld_le16(dbuf++);
- EIEIO;
- *pbuf = ld_le16(dbuf++);
-#else
EIEIO;
*pbuf = *dbuf++;
EIEIO;
*pbuf = *dbuf++;
-#endif
}
}
#else /* ! CONFIG_IDE_SWAP_IO */
@@ -580,17 +569,10 @@ void __ide_input_data(int dev, ulong *sect_buf, int words)
debug("in input data base for read is %lx\n", (unsigned long) pbuf);
while (words--) {
-#if defined(CONFIG_PCS440EP)
- EIEIO;
- *dbuf++ = ld_le16(pbuf);
- EIEIO;
- *dbuf++ = ld_le16(pbuf);
-#else
EIEIO;
*dbuf++ = *pbuf;
EIEIO;
*dbuf++ = *pbuf;
-#endif
}
}
#else /* ! CONFIG_IDE_SWAP_IO */