summaryrefslogtreecommitdiff
path: root/include/ata.h
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@esd.eu>2011-11-10 08:51:57 +0000
committerWolfgang Denk <wd@denx.de>2012-03-18 20:10:02 +0100
commit2b224609568988a7d8db22d372b232a69155733f (patch)
tree5fd02b55006db675612b5d0607310f51e8655b7a /include/ata.h
parent6e94125f9ccde8e7f8f94902b8d253bda5bb68c8 (diff)
downloadu-boot-imx-2b224609568988a7d8db22d372b232a69155733f.zip
u-boot-imx-2b224609568988a7d8db22d372b232a69155733f.tar.gz
u-boot-imx-2b224609568988a7d8db22d372b232a69155733f.tar.bz2
CPCI750: Add CPCI-HD/2 support
This patch adds support for the esd CPCI-HD/2 board to u-boot for CPCI-CPU/750. As the primary devices on the CPCI-HD/2 board are connected to device 1 and 3, the device must be swapped. Signed-off-by: Reinhard Arlt <reinhard.arlt@esd.eu>
Diffstat (limited to 'include/ata.h')
-rw-r--r--include/ata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ata.h b/include/ata.h
index b51475d..3b2d737 100644
--- a/include/ata.h
+++ b/include/ata.h
@@ -82,7 +82,9 @@
/*
* Device / Head Register Bits
*/
+#ifndef ATA_DEVICE
#define ATA_DEVICE(x) ((x & 1)<<4)
+#endif /* ATA_DEVICE */
#define ATA_LBA 0xE0
/*