1/* 2 * 3 * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. 4 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. 5 */ 6 7/* 8 * The code contained herein is licensed under the GNU General Public 9 * License. You may obtain a copy of the GNU General Public License 10 * Version 2 or later at the following locations: 11 * 12 * http://www.opensource.org/licenses/gpl-license.html 13 * http://www.gnu.org/copyleft/gpl.html 14 */ 15#ifndef __ASM_PLAT_UNCOMPRESS_H 16#define __ASM_PLAT_UNCOMPRESS_H 17 18/* 19 * Register includes are for when the MMU enabled; we need to define our 20 * own stuff here for pre-MMU use 21 */ 22#define UARTDBG_BASE 0x80070000 23#define UART(c) (((volatile unsigned *)UARTDBG_BASE)[c]) 24 25/* 26 * This does not append a newline 27 */ 28static void putc(char c) 29{ 30 /* Wait for TX fifo empty */ 31 while ((UART(6) & (1<<7)) == 0) 32 continue; 33 34 /* Write byte */ 35 UART(0) = c; 36 37 /* Wait for last bit to exit the UART */ 38 while (UART(6) & (1<<3)) 39 continue; 40} 41 42static void flush(void) 43{ 44} 45 46/* 47 * nothing to do 48 */ 49#define arch_decomp_setup() 50 51#define arch_decomp_wdog() 52 53#endif /* __ASM_PLAT_UNCOMPRESS_H */ 54