uncompress.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*****************************************************************************
  2. * Copyright 2005 - 2008 Broadcom Corporation. All rights reserved.
  3. *
  4. * Unless you and Broadcom execute a separate written software license
  5. * agreement governing use of this software, this software is licensed to you
  6. * under the terms of the GNU General Public License version 2, available at
  7. * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
  8. *
  9. * Notwithstanding the above, under no circumstances may you combine this
  10. * software in any way with any other Broadcom software provided under a
  11. * license other than the GPL, without Broadcom's express prior written
  12. * consent.
  13. *****************************************************************************/
  14. #include <mach/csp/mm_addr.h>
  15. #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 newline
  19. */
  20. static inline void putc(int c)
  21. {
  22. /* Send out UARTA */
  23. while (BCMRING_UART_0_FR & (1 << 5))
  24. ;
  25. BCMRING_UART_0_DR = c;
  26. }
  27. static inline void flush(void)
  28. {
  29. /* Wait for the tx fifo to be empty */
  30. while ((BCMRING_UART_0_FR & (1 << 7)) == 0)
  31. ;
  32. /* Wait for the final character to be sent on the txd line */
  33. while (BCMRING_UART_0_FR & (1 << 3))
  34. ;
  35. }
  36. #define arch_decomp_setup()
  37. #define arch_decomp_wdog()