summaryrefslogtreecommitdiff
path: root/board/tqm5200/tqm5200.c
diff options
context:
space:
mode:
authorMartin Krause <martin.krause@tqs.de>2008-04-03 14:29:01 +0200
committerWolfgang Denk <wd@denx.de>2008-04-17 14:31:21 -0700
commit8f2a68a07c058fca1d413e54f71c2e7e78a74ed4 (patch)
tree4910089cf3dddf0df41f4ce4716d1ef5f670e99a /board/tqm5200/tqm5200.c
parentc61e033d6e8abb7b4060ee36060961e1399f6079 (diff)
downloadu-boot-imx-8f2a68a07c058fca1d413e54f71c2e7e78a74ed4.zip
u-boot-imx-8f2a68a07c058fca1d413e54f71c2e7e78a74ed4.tar.gz
u-boot-imx-8f2a68a07c058fca1d413e54f71c2e7e78a74ed4.tar.bz2
TQM5200: fix default IDE reset level
Before the first call of ide_reset(), the level of the IDE reset signal on the TQM5200 is low (reset asserted). This patch sets the default value to high (reset not asserted). Currently this patch fixes no real problem, but it is cleaner to assert the reset signal only on demand, and not permanently. Signed-off-by: Martin Krause <martin.krause@tqs.de>
Diffstat (limited to 'board/tqm5200/tqm5200.c')
-rw-r--r--board/tqm5200/tqm5200.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c
index e67145e..f9891db 100644
--- a/board/tqm5200/tqm5200.c
+++ b/board/tqm5200/tqm5200.c
@@ -316,6 +316,9 @@ 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;
+
+ /* by default the ATA reset is de-asserted */
+ *(vu_long *) MPC5XXX_WU_GPIO_DATA_O |= GPIO_PSC1_4;
#endif
}