drop dead uart init code.
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 20 Apr 2011 01:08:25 +0000 (01:08 +0000)
committerStefan Reinauer <stepan@openbios.org>
Wed, 20 Apr 2011 01:08:25 +0000 (01:08 +0000)
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6523 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/include/uart8250.h
src/lib/uart8250.c
src/southbridge/via/vt82c686/chip.h

index 47cc88ed01683b10c477db7fc9edd7e992eb3936..3918bf1333f71502712e548c81f83cc89b9e6475 100644 (file)
 
 
 #ifndef __ROMCC__
-// Can't we just drop this? It seems silly.
-struct uart8250 {
-       unsigned int baud;
-};
-
 unsigned char uart8250_rx_byte(unsigned base_port);
 int uart8250_can_rx_byte(unsigned base_port);
 void uart8250_tx_byte(unsigned base_port, unsigned char data);
@@ -144,7 +139,6 @@ void uart8250_tx_byte(unsigned base_port, unsigned char data);
  * have three different sets of uart code, so it's an improvement.
  */
 void uart8250_init(unsigned base_port, unsigned divisor);
-void init_uart8250(unsigned base_port, struct uart8250 *uart);
 void uart_init(void);
 #endif
 
index 8149b03aa6fc31251670130e84fc194b85b6a508..8c8eed8a119460675c7487d9492aa2b7228e7262 100644 (file)
@@ -86,23 +86,6 @@ void uart8250_init(unsigned base_port, unsigned divisor)
        outb(CONFIG_TTYS0_LCS, base_port + UART_LCR);
 }
 
-#ifndef __ROMCC__
-/* Initialize a generic uart */
-void init_uart8250(unsigned base_port, struct uart8250 *uart)
-{
-       int divisor = uart->baud ? (115200/uart->baud) : 1;
-
-       if (base_port == CONFIG_TTYS0_BASE) {
-               /* Don't reinitialize the console serial port,
-                * This is espeically nasty in SMP.
-                * NOTE: The first invocation thus always needs to be 
-                */
-               return;
-       }
-       uart8250_init(base_port, divisor);
-}
-#endif
-
 #if defined(__PRE_RAM__) || defined(__SMM__)
 void uart_init(void)
 {
index 67f65b0d012df80179f15eb135fb30fdea8d28f9..8effc737e40f97e617e6566afbc6a7561560e7d4 100644 (file)
@@ -28,7 +28,6 @@
 extern struct chip_operations superio_via_vt82c686_ops;
 
 struct superio_via_vt82c686_config {
-       struct uart8250 com1, com2;
        struct pc_keyboard keyboard;
 };