Path: blob/master/arch/arm/mach-mmp/include/mach/uncompress.h
15162 views
/*1* arch/arm/mach-mmp/include/mach/uncompress.h2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 2 as5* published by the Free Software Foundation.6*/78#include <linux/serial_reg.h>9#include <mach/addr-map.h>10#include <asm/mach-types.h>1112#define UART1_BASE (APB_PHYS_BASE + 0x36000)13#define UART2_BASE (APB_PHYS_BASE + 0x17000)14#define UART3_BASE (APB_PHYS_BASE + 0x18000)1516volatile unsigned long *UART;1718static inline void putc(char c)19{20/* UART enabled? */21if (!(UART[UART_IER] & UART_IER_UUE))22return;2324while (!(UART[UART_LSR] & UART_LSR_THRE))25barrier();2627UART[UART_TX] = c;28}2930/*31* This does not append a newline32*/33static inline void flush(void)34{35}3637static inline void arch_decomp_setup(void)38{39/* default to UART2 */40UART = (unsigned long *)UART2_BASE;4142if (machine_is_avengers_lite())43UART = (unsigned long *)UART3_BASE;44}4546/*47* nothing to do48*/4950#define arch_decomp_wdog()515253