uncompress.h 936 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * arch/arm/mach-pxa/include/mach/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. #include <linux/serial_reg.h>
  12. #include <mach/regs-uart.h>
  13. #include <asm/mach-types.h>
  14. #define __REG(x) ((volatile unsigned long *)x)
  15. static volatile unsigned long *UART = FFUART;
  16. static inline void putc(char c)
  17. {
  18. if (!(UART[UART_IER] & IER_UUE))
  19. return;
  20. while (!(UART[UART_LSR] & LSR_TDRQ))
  21. barrier();
  22. UART[UART_TX] = c;
  23. }
  24. /*
  25. * This does not append a newline
  26. */
  27. static inline void flush(void)
  28. {
  29. }
  30. static inline void arch_decomp_setup(void)
  31. {
  32. if (machine_is_littleton() || machine_is_intelmote2()
  33. || machine_is_csb726())
  34. UART = STUART;
  35. }
  36. /*
  37. * nothing to do
  38. */
  39. #define arch_decomp_wdog()