Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yoichi Yuasa and committed by
Ralf Baechle
8a8594a7 7cd93b89

+4 -21
+1
arch/mips/Kconfig
··· 146 146 select CSRC_R4K 147 147 select CEVT_GT641XX 148 148 select DMA_NONCOHERENT 149 + select EARLY_PRINTK_8250 if EARLY_PRINTK 149 150 select HW_HAS_PCI 150 151 select I8253 151 152 select I8259
-1
arch/mips/cobalt/Makefile
··· 5 5 obj-y := buttons.o irq.o lcd.o led.o reset.o rtc.o serial.o setup.o time.o 6 6 7 7 obj-$(CONFIG_PCI) += pci.o 8 - obj-$(CONFIG_EARLY_PRINTK) += console.o 9 8 obj-$(CONFIG_MTD_PHYSMAP) += mtd.o
-20
arch/mips/cobalt/console.c
··· 1 - /* 2 - * (C) P. Horton 2006 3 - */ 4 - #include <linux/io.h> 5 - #include <linux/serial_reg.h> 6 - 7 - #include <cobalt.h> 8 - 9 - #define UART_BASE ((void __iomem *)CKSEG1ADDR(0x1c800000)) 10 - 11 - void prom_putchar(char c) 12 - { 13 - if (cobalt_board_id <= COBALT_BRD_ID_QUBE1) 14 - return; 15 - 16 - while (!(readb(UART_BASE + UART_LSR) & UART_LSR_THRE)) 17 - ; 18 - 19 - writeb(c, UART_BASE + UART_TX); 20 - }
+3
arch/mips/cobalt/setup.c
··· 17 17 18 18 #include <asm/bootinfo.h> 19 19 #include <asm/reboot.h> 20 + #include <asm/setup.h> 20 21 #include <asm/gt64120.h> 21 22 22 23 #include <cobalt.h> ··· 113 112 } 114 113 115 114 add_memory_region(0x0, memsz, BOOT_MEM_RAM); 115 + 116 + setup_8250_early_printk_port(CKSEG1ADDR(0x1c800000), 0, 0); 116 117 } 117 118 118 119 void __init prom_free_prom_memory(void)