uncompress.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 *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. #define flush() do { } while (0)
  29. /*
  30. * nothing to do
  31. */
  32. #define arch_decomp_setup()
  33. #define arch_decomp_wdog()
  34. #endif /* __MACH_UNCOMPRESS_H */