uncompress.h 655 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm/mach-footbridge/include/mach/uncompress.h
  4. *
  5. * Copyright (C) 1996-1999 Russell King
  6. */
  7. #include <asm/mach-types.h>
  8. /*
  9. * Note! This could cause problems on the NetWinder
  10. */
  11. #define DC21285_BASE ((volatile unsigned int *)0x42000160)
  12. #define SER0_BASE ((volatile unsigned char *)0x7c0003f8)
  13. static inline void putc(char c)
  14. {
  15. if (machine_is_netwinder()) {
  16. while ((SER0_BASE[5] & 0x60) != 0x60)
  17. barrier();
  18. SER0_BASE[0] = c;
  19. } else {
  20. while (DC21285_BASE[6] & 8);
  21. DC21285_BASE[0] = c;
  22. }
  23. }
  24. static inline void flush(void)
  25. {
  26. }
  27. /*
  28. * nothing to do
  29. */
  30. #define arch_decomp_setup()