From dee99ab0143122146ab7713cfe171790bc796dd3 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Fri, 16 Aug 2013 11:44:04 +0300 Subject: Get rid of rtkload. Use OpenWrt lzma-loader (with kernel_entry hack). Use mgbin for unified tftp image generation. Signed-off-by: Roman Yeryomin --- target/linux/realtek/files/rtkload/prom_printf.c | 87 ------------------------ 1 file changed, 87 deletions(-) delete mode 100644 target/linux/realtek/files/rtkload/prom_printf.c (limited to 'target/linux/realtek/files/rtkload/prom_printf.c') diff --git a/target/linux/realtek/files/rtkload/prom_printf.c b/target/linux/realtek/files/rtkload/prom_printf.c deleted file mode 100644 index 7bf58cdb3..000000000 --- a/target/linux/realtek/files/rtkload/prom_printf.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Borrowed from arch/mips/r39xx/prom/init.c - * - */ - -/* - * init.c: early initialisation code for R39XX Class PDAs - * - * Copyright (C) 1999 Harald Koerfgen - * - * $Id: prom_printf.c,v 1.2 2008/08/04 08:54:44 michael Exp $ - */ - - - -#define CONFIG_SERIAL - -#include - -//#include -#include - -#ifdef CONFIG_RTL_EB8186 -#include -#endif - -#if 1 - //#define __KERNEL__ - - //#include - //#include - #include - - #define UART_THR 0x2000 - #define UART_LSR 0x2014 - - #define rtl_outb(port,val) outb(val,port) - #define rtl_inb(port) inb(port) -#endif - -void serial_outc(char c) -{ - int i=0; - while (1) - { - i++; - if (i >=0x6000) - break; - - if (rtl_inb(UART_LSR) & 0x20) - break; - } - rtl_outb(UART_THR, c); -} - - -/* - * Helpful for debugging :-) - */ -int prom_printf(const char * fmt, ...) -{ -#ifdef CONFIG_SERIAL - //extern void serial_outc(char); - static char buf[1024]; - va_list args; - char c; - int i = 0; - - /* - * Printing messages via serial port - */ - va_start(args, fmt); - vsprintf(buf, fmt, args); - va_end(args); - - for (i = 0; buf[i] != '\0'; i++) { - c = buf[i]; - if (c == '\n') - serial_outc('\r'); - serial_outc(c); - } - - return i; -#else - return 0; -#endif -} -- cgit v1.2.3