From 64f70bede37f833d2ed31311ff293c759c41a2a6 Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 28 Sep 2004 20:34:50 +0000 Subject: Fix problems with CDROM drive as slave device on Lite5200 IDE bus. --- board/icecube/icecube.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'board/icecube') diff --git a/board/icecube/icecube.c b/board/icecube/icecube.c index 15def0c61a..07c25ed8ab 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; } -- cgit v1.2.1