uncompress.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
  3. *
  4. * Based on mach-pxa/include/mach/uncompress.h:
  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 as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #ifndef __MACH_UNCOMPRESS_H
  13. #define __MACH_UNCOMPRESS_H
  14. #include <linux/serial_reg.h>
  15. #include <mach/hardware.h>
  16. static volatile unsigned long * const UART = (unsigned long *)GEMINI_UART_BASE;
  17. /*
  18. * The following code assumes the serial port has already been
  19. * initialized by the bootloader. If you didn't setup a port in
  20. * your bootloader then nothing will appear (which might be desired).
  21. */
  22. static inline void putc(char c)
  23. {
  24. while (!(UART[UART_LSR] & UART_LSR_THRE))
  25. barrier();
  26. UART[UART_TX] = c;
  27. }
  28. static inline void flush(void)
  29. {
  30. }
  31. /*
  32. * nothing to do
  33. */
  34. #define arch_decomp_setup()
  35. #endif /* __MACH_UNCOMPRESS_H */