]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial_xuartlite.c
[PATCH] Clean up Katmai (440SPe) linker script
[u-boot] / drivers / serial_xuartlite.c
index 3af150d4237c27dc992227525005042d60dc828e..ed59abea862ae4b7bb43fff097defea589369326 100644 (file)
@@ -23,6 +23,9 @@
  */
 
 #include <config.h>
+
+#ifdef CONFIG_MICROBLAZE
+
 #include <asm/serial_xuartlite.h>
 
 /* FIXME: we should convert these to in32 and out32 */
@@ -50,7 +53,6 @@ void serial_putc(const char c)
        if (c == '\n') serial_putc('\r');
        while (IO_SERIAL_STATUS & XUL_SR_TX_FIFO_FULL);
        IO_SERIAL_TX_FIFO = (unsigned char) (c & 0xff);
-       return 0;
 }
 
 void serial_puts(const char * s)
@@ -70,3 +72,5 @@ int serial_tstc(void)
 {
        return (IO_SERIAL_STATUS & XUL_SR_RX_FIFO_VALID_DATA);
 }
+
+#endif /* CONFIG_MICROBLZE */