uncompress.h 857 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/arm/mach-ks8695/include/mach/uncompress.h
  3. *
  4. * Copyright (C) 2006 Ben Dooks <ben@simtec.co.uk>
  5. * Copyright (C) 2006 Simtec Electronics
  6. *
  7. * KS8695 - Kernel uncompressor
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ASM_ARCH_UNCOMPRESS_H
  14. #define __ASM_ARCH_UNCOMPRESS_H
  15. #include <linux/io.h>
  16. #include <mach/regs-uart.h>
  17. static inline void putc(char c)
  18. {
  19. while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE))
  20. barrier();
  21. __raw_writel(c, (void __iomem*)KS8695_UART_PA + KS8695_URTH);
  22. }
  23. static inline void flush(void)
  24. {
  25. while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTE))
  26. barrier();
  27. }
  28. #define arch_decomp_setup()
  29. #endif