uncompress.h 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_LSR ((volatile unsigned char *)(UART0_BASE + 0x14))
  12. #define MV_UART_THR ((volatile unsigned char *)(UART0_BASE + 0x0))
  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. static void orion_early_putstr(const char *ptr)
  25. {
  26. char c;
  27. while ((c = *ptr++) != '\0') {
  28. if (c == '\n')
  29. putc('\r');
  30. putc(c);
  31. }
  32. }
  33. /*
  34. * nothing to do
  35. */
  36. #define arch_decomp_setup()
  37. #define arch_decomp_wdog()