From 58f10460b05e0928d986b15edd4f2e1e99403f7e Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 4 Jun 2009 13:35:39 +0200 Subject: 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 Cc: Reinhard Arlt --- board/esd/cpci750/ide.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'board/esd/cpci750/ide.c') diff --git a/board/esd/cpci750/ide.c b/board/esd/cpci750/ide.c index 9bdc5234534..638219f65ec 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) { -- cgit v1.2.3