summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/image/lzma-loader/src/board.c
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-15 15:02:38 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-15 15:02:38 +0000
commitb9a483cabed0944ff3a2451b5b543dd30b67c267 (patch)
tree7ce47c5a47830caff3fe9dbead3a9dfb444f9f1f /target/linux/adm5120-2.6/image/lzma-loader/src/board.c
parenteb0c9f85a81a1d491cd7e54083cf03b2cbdf21d2 (diff)
[adm5120] lzma-loader improvements
* update LzmaDecode.[ch] to 4.16 * speed up decompressing from flash * uses printf from lzma-loader of generic-2.6 target * initial support for flash bank switching git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7975 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/image/lzma-loader/src/board.c')
-rw-r--r--target/linux/adm5120-2.6/image/lzma-loader/src/board.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/target/linux/adm5120-2.6/image/lzma-loader/src/board.c b/target/linux/adm5120-2.6/image/lzma-loader/src/board.c
index baffe04ef..2425b7d53 100644
--- a/target/linux/adm5120-2.6/image/lzma-loader/src/board.c
+++ b/target/linux/adm5120-2.6/image/lzma-loader/src/board.c
@@ -121,15 +121,6 @@ static void uart_init(void)
#endif
}
-static void uart_putc(int ch)
-{
- while ((UART_READ(UART_REG_FLAG) & UART_FLAG_TXFE) == 0);
-
- UART_WRITE(UART_REG_DATA, ch);
-
- while ((UART_READ(UART_REG_FLAG) & UART_FLAG_TXFE) == 0);
-}
-
/*
* INTC routines
*/
@@ -170,12 +161,13 @@ static void switch_init(void)
SWITCH_WRITE(SWITCH_REG_PORT4_LED, 0);
}
-/*
- * routines needed by decompress.c
- */
void board_putc(int ch)
{
- uart_putc(ch);
+ while ((UART_READ(UART_REG_FLAG) & UART_FLAG_TXFE) == 0);
+
+ UART_WRITE(UART_REG_DATA, ch);
+
+ while ((UART_READ(UART_REG_FLAG) & UART_FLAG_TXFE) == 0);
}
void board_init(void)