|
@@ -1,7 +1,6 @@
|
|
#include <asm/types.h>
|
|
#include <asm/types.h>
|
|
#include <linux/serial_reg.h>
|
|
#include <linux/serial_reg.h>
|
|
#include <asm/hardware.h>
|
|
#include <asm/hardware.h>
|
|
-#include <asm/processor.h>
|
|
|
|
|
|
|
|
#define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
|
|
#define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
|
|
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
|
|
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
|
|
@@ -9,7 +8,7 @@
|
|
static inline void putc(char c)
|
|
static inline void putc(char c)
|
|
{
|
|
{
|
|
while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
|
|
while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
|
|
- cpu_relax();
|
|
|
|
|
|
+ barrier();
|
|
UART_BASE[UART_TX] = c;
|
|
UART_BASE[UART_TX] = c;
|
|
}
|
|
}
|
|
|
|
|