2 * Serial port stubs for kernel decompress status messages
5 * (C) Copyright (C) 2006, Texas Instruments, Inc
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
12 #include <linux/types.h>
13 #include <linux/serial_reg.h>
14 #include <mach/serial.h>
16 #include <asm/mach-types.h>
18 extern unsigned int __machine_arch_type
;
22 static u32
*get_uart_base(void)
24 if (__machine_arch_type
== MACH_TYPE_DAVINCI_DA830_EVM
||
25 __machine_arch_type
== MACH_TYPE_DAVINCI_DA850_EVM
)
26 return (u32
*)DA8XX_UART2_BASE
;
28 return (u32
*)DAVINCI_UART0_BASE
;
31 /* PORT_16C550A, in polled non-fifo mode */
33 static void putc(char c
)
36 uart
= get_uart_base();
38 while (!(uart
[UART_LSR
] & UART_LSR_THRE
))
43 static inline void flush(void)
46 uart
= get_uart_base();
48 while (!(uart
[UART_LSR
] & UART_LSR_THRE
))
52 #define arch_decomp_setup()
53 #define arch_decomp_wdog()