From 60e51cd89c1df302125892620c01d31dc637df75 Mon Sep 17 00:00:00 2001 From: hcg Date: Mon, 11 Jun 2007 14:54:14 +0000 Subject: Corrected dfboot issue with ttyS2 and ttyS3 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7566 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/at91-2.6/image/dfboot/src/com.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'target/linux/at91-2.6/image/dfboot') diff --git a/target/linux/at91-2.6/image/dfboot/src/com.c b/target/linux/at91-2.6/image/dfboot/src/com.c index 38a2898f7e..aacfb55558 100644 --- a/target/linux/at91-2.6/image/dfboot/src/com.c +++ b/target/linux/at91-2.6/image/dfboot/src/com.c @@ -21,7 +21,10 @@ static char erase_seq[] = "\b \b"; /* erase sequence */ -unsigned int usa[2] = {(unsigned int)AT91C_BASE_DBGU, (unsigned int)AT91C_ALTERNATE_USART}; +#define MAX_UARTS 1 + +//unsigned int usa[2] = {(unsigned int)AT91C_BASE_DBGU, (unsigned int)AT91C_ALTERNATE_USART}; +unsigned int usa[1] = {(unsigned int)AT91C_BASE_DBGU}; unsigned int us; int port_detected; @@ -34,7 +37,7 @@ void at91_init_uarts(void) AT91F_US0_CfgPIO(); AT91F_US0_CfgPMC(); - for(i=0; i<2; i++) { + for(i=0; i