aboutsummaryrefslogtreecommitdiff
path: root/board/icecube
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2006-11-01 01:38:16 +0100
committerBartlomiej Sieka <tur@semihalf.com>2006-11-01 01:38:16 +0100
commitdae80f3caf9754a6dd3ddf3cf903d0c46cbd4385 (patch)
treecc2d0e674989c960fb0c40d1db5d3c4bf48f77d1 /board/icecube
parent82d9c9ec29a1bec1b03ba616425ebaed231072c8 (diff)
downloadu-boot-linaro-stable-dae80f3caf9754a6dd3ddf3cf903d0c46cbd4385.tar.gz
- Add MPC5XXX register definition MPC5XXX_WU_GPIO_DATA_I and change the
MPC5XXX_WU_GPIO_DATA macro to MPC5XXX_WU_GPIO_DATA_O (per MPC5200 User's Manual). Replace the uses of MPC5XXX_WU_GPIO_DATA with MPC5XXX_WU_GPIO_DATA_O for affected boards. - Add defintions for some MPC5XXX GPIO pins.
Diffstat (limited to 'board/icecube')
-rw-r--r--board/icecube/icecube.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/board/icecube/icecube.c b/board/icecube/icecube.c
index 4f056b2fa..f958b32db 100644
--- a/board/icecube/icecube.c
+++ b/board/icecube/icecube.c
@@ -308,8 +308,6 @@ void pci_init_board(void)
#if defined (CFG_CMD_IDE) && defined (CONFIG_IDE_RESET)
-#define GPIO_PSC1_4 0x01000000UL
-
void init_ide_reset (void)
{
debug ("init_ide_reset\n");
@@ -318,7 +316,7 @@ void init_ide_reset (void)
*(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;
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O |= GPIO_PSC1_4;
}
void ide_set_reset (int idereset)
@@ -326,11 +324,11 @@ void ide_set_reset (int idereset)
debug ("ide_reset(%d)\n", idereset);
if (idereset) {
- *(vu_long *) MPC5XXX_WU_GPIO_DATA &= ~GPIO_PSC1_4;
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O &= ~GPIO_PSC1_4;
/* Make a delay. MPC5200 spec says 25 usec min */
udelay(500000);
} else {
- *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC1_4;
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O |= GPIO_PSC1_4;
}
}
#endif /* defined (CFG_CMD_IDE) && defined (CONFIG_IDE_RESET) */