uncompress.h 705 B

1234567891011121314151617181920212223242526272829303132
  1. /* linux/include/asm-arm/arch-oxnas/uncompress.h
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 as
  5. * published by the Free Software Foundation.
  6. */
  7. #ifndef __ASM_ARCH_UNCOMPRESS_H
  8. #define __ASM_ARCH_UNCOMPRESS_H
  9. #define OXNAS_UART1_BASE 0x44200000
  10. static inline void putc(int c)
  11. {
  12. static volatile unsigned char *uart =
  13. (volatile unsigned char *)OXNAS_UART1_BASE;
  14. while (!(uart[5] & 0x20)) { /* LSR reg THR empty bit */
  15. barrier();
  16. }
  17. uart[0] = c; /* THR register */
  18. }
  19. static inline void flush(void)
  20. {
  21. }
  22. #define arch_decomp_setup()
  23. #define arch_decomp_wdog()
  24. #endif /* __ASM_ARCH_UNCOMPRESS_H */