summaryrefslogtreecommitdiff
path: root/board/esd/pf5200/pf5200.c
diff options
context:
space:
mode:
authorroy zang <tie-fei.zang@freescale.com>2006-11-03 13:15:31 +0800
committerZang Tiefei <roy@bus.ap.freescale.net>2006-11-03 13:15:31 +0800
commit0a8eb59983047ae3bcc0babf3ee4d10d01abe7da (patch)
treeaeb5b6213312c95dddedc5fb3117eeca248b2195 /board/esd/pf5200/pf5200.c
parent4831c8b8a97799da77923d6bbb4c260c0d45521c (diff)
parentee58ea2689930669678fdcb27bf0cc5c341e18eb (diff)
downloadu-boot-imx-0a8eb59983047ae3bcc0babf3ee4d10d01abe7da.zip
u-boot-imx-0a8eb59983047ae3bcc0babf3ee4d10d01abe7da.tar.gz
u-boot-imx-0a8eb59983047ae3bcc0babf3ee4d10d01abe7da.tar.bz2
Merge branch 'master' into hpc2
Diffstat (limited to 'board/esd/pf5200/pf5200.c')
-rw-r--r--board/esd/pf5200/pf5200.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/board/esd/pf5200/pf5200.c b/board/esd/pf5200/pf5200.c
index 2b47012..1f30d45 100644
--- a/board/esd/pf5200/pf5200.c
+++ b/board/esd/pf5200/pf5200.c
@@ -199,8 +199,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");
@@ -215,9 +213,9 @@ 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;
} 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) */
@@ -242,7 +240,7 @@ void init_power_switch(void)
debug("init_power_switch\n");
/* Configure GPIO_WU6 as GPIO output for ATA reset */
- *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_WU6;
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O |= GPIO_WU6;
*(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_WU6;
*(vu_long *) MPC5XXX_WU_GPIO_DIR |= GPIO_WU6;
__asm__ volatile ("sync");
@@ -272,10 +270,10 @@ void power_set_reset(int power)
debug("ide_set_reset(%d)\n", power);
if (power) {
- *(vu_long *) MPC5XXX_WU_GPIO_DATA &= ~GPIO_WU6;
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O &= ~GPIO_WU6;
*(vu_long *) MPC5XXX_INTERRUPT_GPIO_DATA_OUTPUT &= ~GPIO_USB9;
} else {
- *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_WU6;
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O |= GPIO_WU6;
if ((*(vu_long *) MPC5XXX_INTERRUPT_GPIO_STATUS & GPIO_USB9S) ==
0) {
*(vu_long *) MPC5XXX_SIMPLEIO_GPIO_DATA_OUTPUT |=