uncompress.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * arch/arm/mach-sa1100/include/mach/uncompress.h
  3. *
  4. * (C) 1999 Nicolas Pitre <nico@fluxnic.net>
  5. *
  6. * Reorganised to be machine independent.
  7. */
  8. #include "hardware.h"
  9. #define IOMEM(x) (x)
  10. /*
  11. * The following code assumes the serial port has already been
  12. * initialized by the bootloader. We search for the first enabled
  13. * port in the most probable order. If you didn't setup a port in
  14. * your bootloader then nothing will appear (which might be desired).
  15. */
  16. #define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
  17. static void putc(int c)
  18. {
  19. unsigned long serial_port;
  20. do {
  21. serial_port = _Ser3UTCR0;
  22. if (UART(UTCR3) & UTCR3_TXE) break;
  23. serial_port = _Ser1UTCR0;
  24. if (UART(UTCR3) & UTCR3_TXE) break;
  25. serial_port = _Ser2UTCR0;
  26. if (UART(UTCR3) & UTCR3_TXE) break;
  27. return;
  28. } while (0);
  29. /* wait for space in the UART's transmitter */
  30. while (!(UART(UTSR1) & UTSR1_TNF))
  31. barrier();
  32. /* send the character out. */
  33. UART(UTDR) = c;
  34. }
  35. static inline void flush(void)
  36. {
  37. }
  38. /*
  39. * Nothing to do for these
  40. */
  41. #define arch_decomp_setup()
  42. #define arch_decomp_wdog()