DG834G Power LED fix
[openwrt.git] / target / linux / etrax / patches / cris / 011-debug-port
1 diff -urN linux-2.6.19.2.orig/arch/cris/arch-v10/boot/compressed/misc.c linux-2.6.19.2/arch/cris/arch-v10/boot/compressed/misc.c
2 --- linux-2.6.19.2.orig/arch/cris/arch-v10/boot/compressed/misc.c 2007-05-28 21:53:52.000000000 +0200
3 +++ linux-2.6.19.2/arch/cris/arch-v10/boot/compressed/misc.c 2007-05-28 22:23:16.000000000 +0200
4 @@ -143,9 +143,10 @@
5 static void
6 puts(const char *s)
7 {
8 -#ifndef CONFIG_ETRAX_DEBUG_PORT_NULL
9 - while(*s) {
10 -#ifdef CONFIG_ETRAX_DEBUG_PORT0
11 +#if defined(CONFIG_ETRAX_DEBUG_PORT0) || defined(CONFIG_ETRAX_DEBUG_PORT1) || defined(CONFIG_ETRAX_DEBUG_PORT2) || defined(CONFIG_ETRAX_DEBUG_PORT3) || defined(CONFIG_ETRAX_SERIAL_PORT0)
12 +
13 +while(*s) {
14 +#if defined(CONFIG_ETRAX_DEBUG_PORT0) || defined(CONFIG_ETRAX_SERIAL_PORT0)
15 while(!(*R_SERIAL0_STATUS & (1 << 5))) ;
16 *R_SERIAL0_TR_DATA = *s++;
17 #endif
18 @@ -232,7 +233,7 @@
19 /* input_data is set in head.S */
20 inbuf = input_data;
21
22 -#ifdef CONFIG_ETRAX_DEBUG_PORT0
23 +#if defined(CONFIG_ETRAX_DEBUG_PORT0) || defined(CONFIG_ETRAX_SERIAL_PORT0)
24 *R_SERIAL0_XOFF = 0;
25 *R_SERIAL0_BAUD = 0x99;
26 *R_SERIAL0_TR_CTRL = 0x40;
This page took 0.038196 seconds and 5 git commands to generate.