uncompress.h 722 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * include/asm-arm/arch-orion/uncompress.h
  3. *
  4. * Tzachi Perelstein <tzachi@marvell.com>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #include <asm/arch/orion.h>
  11. #define MV_UART_THR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x0))
  12. #define MV_UART_LSR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x14))
  13. #define LSR_THRE 0x20
  14. static void putc(const char c)
  15. {
  16. int j = 0x1000;
  17. while (--j && !(*MV_UART_LSR & LSR_THRE))
  18. barrier();
  19. *MV_UART_THR = c;
  20. }
  21. static void flush(void)
  22. {
  23. }
  24. /*
  25. * nothing to do
  26. */
  27. #define arch_decomp_setup()
  28. #define arch_decomp_wdog()