]> git.sur5r.net Git - u-boot/blobdiff - board/pcippc2/fpga_serial.c
mmc:sdhci:fix: Change default interrupts enabled at SDHCI initialization
[u-boot] / board / pcippc2 / fpga_serial.c
index 579bfc702744978cf5af2b80772bcbe741c2d1d9..de61ca0e560731afde82c875e44f43d6ff1ce2b9 100644 (file)
@@ -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 ();