uncompress.h 719 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * arch/arm/mach-dove/include/mach/uncompress.h
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. #include <mach/dove.h>
  9. #define UART_THR ((volatile unsigned char *)(DOVE_UART0_PHYS_BASE + 0x0))
  10. #define UART_LSR ((volatile unsigned char *)(DOVE_UART0_PHYS_BASE + 0x14))
  11. #define LSR_THRE 0x20
  12. static void putc(const char c)
  13. {
  14. int i;
  15. for (i = 0; i < 0x1000; i++) {
  16. /* Transmit fifo not full? */
  17. if (*UART_LSR & LSR_THRE)
  18. break;
  19. }
  20. *UART_THR = c;
  21. }
  22. static void flush(void)
  23. {
  24. }
  25. /*
  26. * nothing to do
  27. */
  28. #define arch_decomp_setup()
  29. #define arch_decomp_wdog()