[U-Boot-Users] [PATCH] TQM85xx: fix pin configuration
Martin Krause
martin.krause at tqs.de
Fri Jun 22 12:30:11 CEST 2007
TQM85xx: do not configure port pins PD30/PD31 as SCC1 TxD/RxD except for the
TQM8560 board. On the other TQM85xx boards (TQM8540, TQM8541 and TQM8555)
SCC1 is not used as serial interface anyway. Worse, on some board variants
configuring the pins for SCC1 leads to short circuits (for example on the
TQM8541-BG).
Signed-off-by: Martin Krause <martin.krause at tqs.de>
---
board/tqm85xx/tqm85xx.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/board/tqm85xx/tqm85xx.c b/board/tqm85xx/tqm85xx.c
index 256c076..f6d0dd8 100644
--- a/board/tqm85xx/tqm85xx.c
+++ b/board/tqm85xx/tqm85xx.c
@@ -167,9 +167,14 @@ const iop_conf_t iop_conf_tab[4][32] = {
/* Port D */
{ /* conf ppar psor pdir podr pdat */
+#ifdef CONFIG_TQM8560
/* PD31 */ { 1, 1, 0, 0, 0, 0 }, /* SCC1 EN RxD */
/* PD30 */ { 1, 1, 1, 1, 0, 0 }, /* SCC1 EN TxD */
- /* PD29 */ { 1, 1, 0, 1, 0, 0 }, /* SCC1 EN TENA */
+#else /* ! TQM8560 */
+ /* PD31 */ { 0, 0, 0, 0, 0, 0 }, /* PD31 */
+ /* PD30 */ { 0, 0, 0, 0, 0, 0 }, /* PD30 */
+#endif
+ /* PD29 */ { 0, 0, 0, 0, 0, 0 }, /* PD29 */
/* PD28 */ { 1, 1, 0, 0, 0, 0 }, /* PD28 */
/* PD27 */ { 1, 1, 0, 1, 0, 0 }, /* PD27 */
/* PD26 */ { 1, 1, 0, 1, 0, 0 }, /* PD26 */
More information about the U-Boot
mailing list