uncompress.h 821 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 UART FFUART
  15. static __inline__ void putc(char c)
  16. {
  17. while (!(UART[5] & 0x20));
  18. UART[0] = c;
  19. }
  20. /*
  21. * This does not append a newline
  22. */
  23. static void putstr(const char *s)
  24. {
  25. while (*s) {
  26. putc(*s);
  27. if (*s == '\n')
  28. putc('\r');
  29. s++;
  30. }
  31. }
  32. /*
  33. * nothing to do
  34. */
  35. #define arch_decomp_setup()
  36. #define arch_decomp_wdog()