ppc4xx: Enable support for > 2GB SDRAM on AMCC Katmai
[oweals/u-boot.git] / cpu / nios / serial.c
index 4bdda25007aa92f20e506e2f97b709603ad0eb6c..5ecdc6d7ea128ef8e831d8032656518d559496d2 100644 (file)
@@ -26,6 +26,8 @@
 #include <watchdog.h>
 #include <nios-io.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*------------------------------------------------------------------
  * JTAG acts as the serial port
  *-----------------------------------------------------------------*/
@@ -83,7 +85,6 @@ int serial_init (void) { return (0);}
 
 void serial_setbrg (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        unsigned div;
 
        div = (CONFIG_SYS_CLK_FREQ/gd->baudrate)-1;