From 4d13cbad1c81ad7901151fec381bae8c30f4338a Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 14 Mar 2004 14:09:05 +0000 Subject: * Patch by Tolunay Orkun, 5 Mar 2004: Fix early board initialization for Cogent CSB272 board * Patch by Ed Okerson, 3 Mar 2004: fix CFI flash writes for little endian systems * Patch by Reinhard Meyer, 01 Mar 2004: generalize USB and IDE support for MPC5200 with according changes to IceCube.h and TOP5200.h add Am29LV256 256 MBit FLASH support for TOP5200 boards add info about USB and IDE to README --- board/icecube/icecube.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board/icecube') diff --git a/board/icecube/icecube.c b/board/icecube/icecube.c index 0a4bed4..d2fda90 100644 --- a/board/icecube/icecube.c +++ b/board/icecube/icecube.c @@ -210,25 +210,25 @@ void pci_init_board(void) #if defined (CFG_CMD_IDE) && defined (CONFIG_IDE_RESET) -#define GPIO_PSC1_4 0x01000000ul +#define GPIO_PSC1_4 0x01000000UL void init_ide_reset (void) { - printf ("init_ide_reset\n"); + debug ("init_ide_reset\n"); /* Configure PSC1_4 as GPIO output for ATA reset */ - *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC1_4; *(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_PSC1_4; - *(vu_long *) MPC5XXX_WU_GPIO_DIR |= GPIO_PSC1_4; + *(vu_long *) MPC5XXX_WU_GPIO_DIR |= GPIO_PSC1_4; } void ide_set_reset (int idereset) { - printf ("ide_reset(%d)\n", idereset); + debug ("ide_reset(%d)\n", idereset); + if (idereset) { *(vu_long *) MPC5XXX_WU_GPIO_DATA &= ~GPIO_PSC1_4; } else { - *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC1_4; + *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC1_4; } } #endif /* defined (CFG_CMD_IDE) && defined (CONFIG_IDE_RESET) */ -- cgit v1.1