uncompress.h 850 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Marvell Armada SoC kernel uncompression UART routines
  3. *
  4. * Copyright (C) 2012 Marvell
  5. *
  6. * Lior Amsalem <alior@marvell.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. #include <mach/armada-370-xp.h>
  13. #define UART_THR ((volatile unsigned char *)(ARMADA_370_XP_REGS_PHYS_BASE\
  14. + 0x12000))
  15. #define UART_LSR ((volatile unsigned char *)(ARMADA_370_XP_REGS_PHYS_BASE\
  16. + 0x12014))
  17. #define LSR_THRE 0x20
  18. static void putc(const char c)
  19. {
  20. int i;
  21. for (i = 0; i < 0x1000; i++) {
  22. /* Transmit fifo not full? */
  23. if (*UART_LSR & LSR_THRE)
  24. break;
  25. }
  26. *UART_THR = c;
  27. }
  28. static void flush(void)
  29. {
  30. }
  31. /*
  32. * nothing to do
  33. */
  34. #define arch_decomp_setup()
  35. #define arch_decomp_wdog()