diff options
author | Stefan Roese <sr@denx.de> | 2009-06-04 13:35:39 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:47:18 +0200 |
commit | 58f10460b05e0928d986b15edd4f2e1e99403f7e (patch) | |
tree | cc077776132c1c38243fa1254af81f5240536543 /board/esd/cpci750/ide.c | |
parent | ae7a2739d7a0704437376e229bb21940952c55be (diff) | |
download | u-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.c | 4 |
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) { |