]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
TQM5200: fix default IDE reset level
authorMartin Krause <martin.krause@tqs.de>
Thu, 3 Apr 2008 12:29:01 +0000 (14:29 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 17 Apr 2008 21:31:21 +0000 (14:31 -0700)
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>
board/tqm5200/tqm5200.c

index e67145eb5be562eeb4790567b5b43cf225e5f63c..f9891dbb74fb4c717216e074ca9fbb2e197bf6ff 100644 (file)
@@ -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
 }