uncompress.h 596 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2009 Hans J. Koch <hjk@linutronix.de>
  3. *
  4. * This file is licensed under the terms of the GPL version 2.
  5. */
  6. #include <linux/serial_reg.h>
  7. #include <linux/types.h>
  8. #include <mach/tcc8k-regs.h>
  9. unsigned int system_rev;
  10. #define ID_MASK 0x7fff
  11. static void putc(int c)
  12. {
  13. u32 *uart_lsr = (u32 *)(UART_BASE_PHYS + (UART_LSR << 2));
  14. u32 *uart_tx = (u32 *)(UART_BASE_PHYS + (UART_TX << 2));
  15. while (!(*uart_lsr & UART_LSR_THRE))
  16. barrier();
  17. *uart_tx = c;
  18. }
  19. static inline void flush(void)
  20. {
  21. }
  22. /*
  23. * nothing to do
  24. */
  25. #define arch_decomp_setup()
  26. #define arch_decomp_wdog()