uncompress.h 897 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * arch/arm/plat-spear/include/plat/uncompress.h
  3. *
  4. * Serial port stubs for kernel decompress status messages
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Viresh Kumar <vireshk@kernel.org>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #include <linux/io.h>
  14. #include <linux/amba/serial.h>
  15. #include <mach/spear.h>
  16. #ifndef __PLAT_UNCOMPRESS_H
  17. #define __PLAT_UNCOMPRESS_H
  18. /*
  19. * This does not append a newline
  20. */
  21. static inline void putc(int c)
  22. {
  23. void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE;
  24. while (readl_relaxed(base + UART01x_FR) & UART01x_FR_TXFF)
  25. barrier();
  26. writel_relaxed(c, base + UART01x_DR);
  27. }
  28. static inline void flush(void)
  29. {
  30. }
  31. /*
  32. * nothing to do
  33. */
  34. #define arch_decomp_setup()
  35. #endif /* __PLAT_UNCOMPRESS_H */