Cosmetic change to avoid unreadable output on the so far shared first
serial console. This become necessary after we moved the output of cell
start after the submission of reset signals to the cell CPUs.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
#else
#define UART_BASE 0x3f8
#endif
+#define UART_LSR 0x5
+#define UART_LSR_THRE 0x20
+#define UART_IDLE_LOOPS 100
#define NS_PER_MSEC 1000000UL
#define NS_PER_SEC 1000000000UL
unsigned int n;
printk_uart_base = UART_BASE;
+ do {
+ for (n = 0; n < UART_IDLE_LOOPS; n++)
+ if (!(inb(UART_BASE + UART_LSR) & UART_LSR_THRE))
+ break;
+ } while (n < UART_IDLE_LOOPS);
if (init_pm_timer())
init_apic();