2 * linux/include/asm-arm/arch-omap/uncompress.h
4 * Serial port stubs for kernel decompress status messages
7 * linux-2.4.15-rmk1-dsplinux1.6/include/asm-arm/arch-omap1510/uncompress.h
8 * Copyright (C) 2000 RidgeRun, Inc.
9 * Author: Greg Lonnon <glonnon@ridgerun.com>
12 * Author: <source@mvista.com>
13 * 2004 (c) MontaVista Software, Inc.
15 * This file is licensed under the terms of the GNU General Public License
16 * version 2. This program is licensed "as is" without any warranty of any
17 * kind, whether express or implied.
20 #include <linux/config.h>
21 #include <linux/types.h>
22 #include <linux/serial_reg.h>
23 #include <asm/mach-types.h>
24 #include <asm/hardware.h>
25 #include <asm/arch/serial.h>
27 #define UART_OMAP_MDR1 0x08 /* mode definition register */
29 #define check_port(base, shift) ((base[UART_OMAP_MDR1 << shift] & 7) == 0)
34 volatile u8 * uart = 0;
37 /* Determine which serial port to use */
39 if (machine_is_omap_innovator() || machine_is_omap_osk()) {
41 uart = (volatile u8 *)(OMAP_UART1_BASE);
42 } else if (machine_is_omap_perseus2()) {
44 uart = (volatile u8 *)(OMAP_UART1_BASE);
46 /* Assume nothing for unknown machines.
47 * Add an entry for your machine to select
48 * the default serial console here. If the
49 * serial port is enabled, we'll use it to
50 * display status messages. Else we'll be
55 if (check_port(uart, shift))
57 /* Silent boot if no serial ports are enabled. */
62 * Now, xmit each character
65 while (!(uart[UART_LSR << shift] & UART_LSR_THRE))
67 uart[UART_TX << shift] = *s;
69 while (!(uart[UART_LSR << shift] & UART_LSR_THRE))
71 uart[UART_TX << shift] = '\r';
79 #define arch_decomp_setup()
80 #define arch_decomp_wdog()