Path: blob/master/arch/arm/mach-bcmring/include/mach/uncompress.h
10820 views
/*****************************************************************************1* Copyright 2005 - 2008 Broadcom Corporation. All rights reserved.2*3* Unless you and Broadcom execute a separate written software license4* agreement governing use of this software, this software is licensed to you5* under the terms of the GNU General Public License version 2, available at6* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").7*8* Notwithstanding the above, under no circumstances may you combine this9* software in any way with any other Broadcom software provided under a10* license other than the GPL, without Broadcom's express prior written11* consent.12*****************************************************************************/13#include <mach/csp/mm_addr.h>1415#define BCMRING_UART_0_DR (*(volatile unsigned int *)MM_ADDR_IO_UARTA)16#define BCMRING_UART_0_FR (*(volatile unsigned int *)(MM_ADDR_IO_UARTA + 0x18))17/*18* This does not append a newline19*/20static inline void putc(int c)21{22/* Send out UARTA */23while (BCMRING_UART_0_FR & (1 << 5))24;2526BCMRING_UART_0_DR = c;27}282930static inline void flush(void)31{32/* Wait for the tx fifo to be empty */33while ((BCMRING_UART_0_FR & (1 << 7)) == 0)34;3536/* Wait for the final character to be sent on the txd line */37while (BCMRING_UART_0_FR & (1 << 3))38;39}4041#define arch_decomp_setup()42#define arch_decomp_wdog()434445