uncompress.h 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * include/asm-arm/arch-ixp23xx/uncompress.h
  3. *
  4. * Copyright (C) 2002-2004 Intel Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_ARCH_UNCOMPRESS_H
  11. #define __ASM_ARCH_UNCOMPRESS_H
  12. #include <asm/hardware.h>
  13. #include <linux/serial_reg.h>
  14. #define UART_BASE ((volatile u32 *)IXP23XX_UART1_PHYS)
  15. static __inline__ void putc(char c)
  16. {
  17. int j;
  18. for (j = 0; j < 0x1000; j++) {
  19. if (UART_BASE[UART_LSR] & UART_LSR_THRE)
  20. break;
  21. }
  22. UART_BASE[UART_TX] = c;
  23. }
  24. static void putstr(const char *s)
  25. {
  26. while (*s) {
  27. putc(*s);
  28. if (*s == '\n')
  29. putc('\r');
  30. s++;
  31. }
  32. }
  33. #define arch_decomp_setup()
  34. #define arch_decomp_wdog()
  35. #endif