uncompress.h 935 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. #include <linux/serial_reg.h>
  12. #include <asm/arch/pxa-regs.h>
  13. #define FFUART ((volatile unsigned long *)0x40100000)
  14. #define BTUART ((volatile unsigned long *)0x40200000)
  15. #define STUART ((volatile unsigned long *)0x40700000)
  16. #define HWUART ((volatile unsigned long *)0x41600000)
  17. #define UART FFUART
  18. static inline void putc(char c)
  19. {
  20. if (!(UART[UART_IER] & IER_UUE))
  21. return;
  22. while (!(UART[UART_LSR] & LSR_TDRQ))
  23. barrier();
  24. UART[UART_TX] = c;
  25. }
  26. /*
  27. * This does not append a newline
  28. */
  29. static inline void flush(void)
  30. {
  31. }
  32. /*
  33. * nothing to do
  34. */
  35. #define arch_decomp_setup()
  36. #define arch_decomp_wdog()