X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fpcippc2%2Ffpga_serial.c;h=de61ca0e560731afde82c875e44f43d6ff1ce2b9;hb=ce0c1bc13556fbf1bdfa2a4a27ca6744e7beb32a;hp=579bfc702744978cf5af2b80772bcbe741c2d1d9;hpb=f8cac651b33efa270e4dfa1292d01a3b5d7a62cf;p=u-boot diff --git a/board/pcippc2/fpga_serial.c b/board/pcippc2/fpga_serial.c index 579bfc7027..de61ca0e56 100644 --- a/board/pcippc2/fpga_serial.c +++ b/board/pcippc2/fpga_serial.c @@ -29,6 +29,8 @@ #include "hardware.h" #include "pcippc2.h" +DECLARE_GLOBAL_DATA_PTR; + /* 8 data, 1 stop, no parity */ #define LCRVAL 0x03 @@ -71,13 +73,6 @@ void fpga_serial_putc (char c) } } -void fpga_serial_puts (const char *s) -{ - while (*s) { - fpga_serial_print (*s++); - } -} - int fpga_serial_getc (void) { while ((in8 (UART (LSR)) & 0x01) == 0); @@ -92,8 +87,6 @@ int fpga_serial_tstc (void) void fpga_serial_setbrg (void) { - DECLARE_GLOBAL_DATA_PTR; - int clock_divisor = 115200 / gd->baudrate; fpga_serial_wait ();