diff options
| author | wdenk <wdenk> | 2004-09-28 20:34:50 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2004-09-28 20:34:50 +0000 | 
| commit | 64f70bede37f833d2ed31311ff293c759c41a2a6 (patch) | |
| tree | d4e41ef699babf7f6792d0894b478aae82b75f46 /board/icecube/icecube.c | |
| parent | cce625e557416d06aeddaab0967b3119748cd21e (diff) | |
| download | olio-uboot-2014.01-64f70bede37f833d2ed31311ff293c759c41a2a6.tar.xz olio-uboot-2014.01-64f70bede37f833d2ed31311ff293c759c41a2a6.zip | |
Fix problems with CDROM drive as slave device on Lite5200 IDE bus.
Diffstat (limited to 'board/icecube/icecube.c')
| -rw-r--r-- | board/icecube/icecube.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/board/icecube/icecube.c b/board/icecube/icecube.c index 15def0c61..07c25ed8a 100644 --- a/board/icecube/icecube.c +++ b/board/icecube/icecube.c @@ -288,6 +288,8 @@ void init_ide_reset (void)      	/* Configure PSC1_4 as GPIO output for ATA reset */  	*(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_PSC1_4;  	*(vu_long *) MPC5XXX_WU_GPIO_DIR    |= GPIO_PSC1_4; +	/* Deassert reset */ +	*(vu_long *) MPC5XXX_WU_GPIO_DATA   |= GPIO_PSC1_4;  }  void ide_set_reset (int idereset) @@ -296,6 +298,8 @@ void ide_set_reset (int idereset)  	if (idereset) {  		*(vu_long *) MPC5XXX_WU_GPIO_DATA &= ~GPIO_PSC1_4; +		/* Make a delay. MPC5200 spec says 25 usec min */ +		udelay(500000);  	} else {  		*(vu_long *) MPC5XXX_WU_GPIO_DATA |=  GPIO_PSC1_4;  	} |