mirror of
https://github.com/torvalds/linux
synced 2024-10-16 00:10:42 +00:00
MIPS: Cobalt: Move to 8250/16550 serial early printk driver
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org> Cc: linux-mips <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/948/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
7cd93b8935
commit
8a8594a738
|
@ -146,6 +146,7 @@ config MIPS_COBALT
|
||||||
select CSRC_R4K
|
select CSRC_R4K
|
||||||
select CEVT_GT641XX
|
select CEVT_GT641XX
|
||||||
select DMA_NONCOHERENT
|
select DMA_NONCOHERENT
|
||||||
|
select EARLY_PRINTK_8250 if EARLY_PRINTK
|
||||||
select HW_HAS_PCI
|
select HW_HAS_PCI
|
||||||
select I8253
|
select I8253
|
||||||
select I8259
|
select I8259
|
||||||
|
|
|
@ -5,5 +5,4 @@
|
||||||
obj-y := buttons.o irq.o lcd.o led.o reset.o rtc.o serial.o setup.o time.o
|
obj-y := buttons.o irq.o lcd.o led.o reset.o rtc.o serial.o setup.o time.o
|
||||||
|
|
||||||
obj-$(CONFIG_PCI) += pci.o
|
obj-$(CONFIG_PCI) += pci.o
|
||||||
obj-$(CONFIG_EARLY_PRINTK) += console.o
|
|
||||||
obj-$(CONFIG_MTD_PHYSMAP) += mtd.o
|
obj-$(CONFIG_MTD_PHYSMAP) += mtd.o
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
/*
|
|
||||||
* (C) P. Horton 2006
|
|
||||||
*/
|
|
||||||
#include <linux/io.h>
|
|
||||||
#include <linux/serial_reg.h>
|
|
||||||
|
|
||||||
#include <cobalt.h>
|
|
||||||
|
|
||||||
#define UART_BASE ((void __iomem *)CKSEG1ADDR(0x1c800000))
|
|
||||||
|
|
||||||
void prom_putchar(char c)
|
|
||||||
{
|
|
||||||
if (cobalt_board_id <= COBALT_BRD_ID_QUBE1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
while (!(readb(UART_BASE + UART_LSR) & UART_LSR_THRE))
|
|
||||||
;
|
|
||||||
|
|
||||||
writeb(c, UART_BASE + UART_TX);
|
|
||||||
}
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include <asm/bootinfo.h>
|
#include <asm/bootinfo.h>
|
||||||
#include <asm/reboot.h>
|
#include <asm/reboot.h>
|
||||||
|
#include <asm/setup.h>
|
||||||
#include <asm/gt64120.h>
|
#include <asm/gt64120.h>
|
||||||
|
|
||||||
#include <cobalt.h>
|
#include <cobalt.h>
|
||||||
|
@ -112,6 +113,8 @@ void __init prom_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
add_memory_region(0x0, memsz, BOOT_MEM_RAM);
|
add_memory_region(0x0, memsz, BOOT_MEM_RAM);
|
||||||
|
|
||||||
|
setup_8250_early_printk_port(CKSEG1ADDR(0x1c800000), 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init prom_free_prom_memory(void)
|
void __init prom_free_prom_memory(void)
|
||||||
|
|
Loading…
Reference in a new issue