summaryrefslogtreecommitdiff
path: root/board/esd/cpci750/ide.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-06-04 13:35:39 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:47:18 +0200
commit58f10460b05e0928d986b15edd4f2e1e99403f7e (patch)
treecc077776132c1c38243fa1254af81f5240536543 /board/esd/cpci750/ide.c
parentae7a2739d7a0704437376e229bb21940952c55be (diff)
downloadu-boot-imx-58f10460b05e0928d986b15edd4f2e1e99403f7e.zip
u-boot-imx-58f10460b05e0928d986b15edd4f2e1e99403f7e.tar.gz
u-boot-imx-58f10460b05e0928d986b15edd4f2e1e99403f7e.tar.bz2
74xx_7xx: CPCI750: Add CPCI adapter/target support
The CPCI750 can be built as CPCI host or adapter/target board. This patch adds support for runtime detection of those variants. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
Diffstat (limited to 'board/esd/cpci750/ide.c')
-rw-r--r--board/esd/cpci750/ide.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/esd/cpci750/ide.c b/board/esd/cpci750/ide.c
index 9bdc523..638219f 100644
--- a/board/esd/cpci750/ide.c
+++ b/board/esd/cpci750/ide.c
@@ -39,6 +39,8 @@ int ide_preinit (void)
int l;
status = 1;
+ if (CPCI750_SLAVE_TEST != 0)
+ return status;
for (l = 0; l < CONFIG_SYS_IDE_MAXBUS; l++) {
ide_bus_offset[l] = -ATA_STATUS;
}
@@ -57,7 +59,7 @@ int ide_preinit (void)
ide_bus_offset[1] &= 0xfffffffe;
ide_bus_offset[1] += CONFIG_SYS_PCI0_IO_SPACE;
}
- return (status);
+ return status;
}
void ide_set_reset (int flag) {