uncompress.h 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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() || machine_is_stargate2()
  34. || machine_is_cm_x300() || machine_is_balloon3())
  35. UART = STUART;
  36. }
  37. /*
  38. * nothing to do
  39. */
  40. #define arch_decomp_wdog()