uncompress.h 928 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* arch/arm/mach-vt8500/include/mach/uncompress.h
  2. *
  3. * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
  4. *
  5. * Based on arch/arm/mach-dove/include/mach/uncompress.h
  6. *
  7. * This software is licensed under the terms of the GNU General Public
  8. * License version 2, as published by the Free Software Foundation, and
  9. * may be copied, distributed, and modified under those terms.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. */
  17. #define UART0_PHYS 0xd8200000
  18. #include <asm/io.h>
  19. static void putc(const char c)
  20. {
  21. while (readb(UART0_PHYS + 0x1c) & 0x2)
  22. /* Tx busy, wait and poll */;
  23. writeb(c, UART0_PHYS);
  24. }
  25. static void flush(void)
  26. {
  27. }
  28. /*
  29. * nothing to do
  30. */
  31. #define arch_decomp_setup()
  32. #define arch_decomp_wdog()