uncompress.h 876 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * linux/include/asm-arm/arch-pxa/uncompress.h
  3. *
  4. * Author: Nicolas Pitre
  5. * Copyright: (C) 2001 MontaVista Software Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #define FFUART ((volatile unsigned long *)0x40100000)
  12. #define BTUART ((volatile unsigned long *)0x40200000)
  13. #define STUART ((volatile unsigned long *)0x40700000)
  14. #define HWUART ((volatile unsigned long *)0x41600000)
  15. #define UART FFUART
  16. static __inline__ void putc(char c)
  17. {
  18. while (!(UART[5] & 0x20));
  19. UART[0] = c;
  20. }
  21. /*
  22. * This does not append a newline
  23. */
  24. static void putstr(const char *s)
  25. {
  26. while (*s) {
  27. putc(*s);
  28. if (*s == '\n')
  29. putc('\r');
  30. s++;
  31. }
  32. }
  33. /*
  34. * nothing to do
  35. */
  36. #define arch_decomp_setup()
  37. #define arch_decomp_wdog()