uncompress.h 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* arch/arm/mach-msm/include/mach/uncompress.h
  2. *
  3. * Copyright (C) 2007 Google, Inc.
  4. *
  5. * This software is licensed under the terms of the GNU General Public
  6. * License version 2, as published by the Free Software Foundation, and
  7. * may be copied, distributed, and modified under those terms.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef __ASM_ARCH_MSM_UNCOMPRESS_H
  16. #include "hardware.h"
  17. #include "linux/io.h"
  18. #include "mach/msm_iomap.h"
  19. static void putc(int c)
  20. {
  21. #if defined(MSM_DEBUG_UART_PHYS)
  22. unsigned base = MSM_DEBUG_UART_PHYS;
  23. while (!(readl(base + 0x08) & 0x04)) ;
  24. writel(c, base + 0x0c);
  25. #endif
  26. }
  27. static inline void flush(void)
  28. {
  29. }
  30. static inline void arch_decomp_setup(void)
  31. {
  32. }
  33. static inline void arch_decomp_wdog(void)
  34. {
  35. }
  36. #endif