From: Jun S. <ju...@us...> - 2001-09-25 19:57:10
|
Update of /cvsroot/linux-mips/linux/arch/mips/vr4181/common In directory usw-pr-cvs1:/tmp/cvs-serv32213/arch/mips/vr4181/common Modified Files: serial.c Log Message: Move Osprey to use standard serial driver. Index: serial.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/vr4181/common/serial.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- serial.c 2001/09/22 04:27:15 1.1 +++ serial.c 2001/09/25 19:57:07 1.2 @@ -1,3838 +1,51 @@ /* - * linux/drivers/char/serial.c - * Serial (SIU) driver for NEC VR41xx CPUs, VR4102 and up only. + * Copyright 2001 MontaVista Software Inc. + * Author: Jun Sun, js...@mv... or js...@ju... * - * Based almost entirely on linux/drivers/char/serial.c - * Modified for VR41xx by Michael Klar, mf...@po... + * arch/mips/vr4181/common/serial.c + * initialize serial port on vr4181. * [...3837 lines suppressed...] + s.iomem_base = (u8*)VR4181_SIURB; + s.iomem_reg_shift = 0; + s.io_type = SERIAL_IO_MEM; + if (early_serial_setup(&s) != 0) { + panic("vr4181_init_serial() failed!\n"); } - - while ( !(*VR4181_SIULS & UART_LSR_DR) ) ; - barrier(); - - return(*VR4181_SIURB); } - - -/* - Local variables: - compile-command: "gcc -D__KERNEL__ -I../../include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -march=i686 -DMODULE -DMODVERSIONS -include ../../include/linux/modversions.h -DEXPORT_SYMTAB -c serial.c" - End: -*/ |