uncompress.h 699 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * include/asm-arm/arch-ns9xxx/uncompress.h
  3. *
  4. * Copyright (C) 2006 by Digi International Inc.
  5. * All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_UNCOMPRESS_H
  12. #define __ASM_ARCH_UNCOMPRESS_H
  13. static void putc(char c)
  14. {
  15. volatile u8 *base = (volatile u8 *)0x40000000;
  16. int t = 0x10000;
  17. do {
  18. if (base[5] & 0x20) {
  19. base[0] = c;
  20. break;
  21. }
  22. } while (--t);
  23. }
  24. #define arch_decomp_setup()
  25. #define arch_decomp_wdog()
  26. static void flush(void)
  27. {
  28. /* nothing */
  29. }
  30. #endif /* ifndef __ASM_ARCH_UNCOMPRESS_H */