X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fpcippc2%2Ffpga_serial.c;h=5f89d9b125e105d71aa2e968cba8459cc28f2983;hb=6b9408edd3f6af6e91bcc0eebd4aedc0aca28934;hp=579bfc702744978cf5af2b80772bcbe741c2d1d9;hpb=f8cac651b33efa270e4dfa1292d01a3b5d7a62cf;p=u-boot diff --git a/board/pcippc2/fpga_serial.c b/board/pcippc2/fpga_serial.c index 579bfc7027..5f89d9b125 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 @@ -92,8 +94,6 @@ int fpga_serial_tstc (void) void fpga_serial_setbrg (void) { - DECLARE_GLOBAL_DATA_PTR; - int clock_divisor = 115200 / gd->baudrate; fpga_serial_wait ();