uncompress.h 842 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * arch/arm/mach-mmp/include/mach/uncompress.h
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #include <linux/serial_reg.h>
  9. #include <mach/addr-map.h>
  10. #define UART1_BASE (APB_PHYS_BASE + 0x36000)
  11. #define UART2_BASE (APB_PHYS_BASE + 0x17000)
  12. #define UART3_BASE (APB_PHYS_BASE + 0x18000)
  13. static inline void putc(char c)
  14. {
  15. volatile unsigned long *UART = (unsigned long *)UART2_BASE;
  16. /* UART enabled? */
  17. if (!(UART[UART_IER] & UART_IER_UUE))
  18. return;
  19. while (!(UART[UART_LSR] & UART_LSR_THRE))
  20. barrier();
  21. UART[UART_TX] = c;
  22. }
  23. /*
  24. * This does not append a newline
  25. */
  26. static inline void flush(void)
  27. {
  28. }
  29. /*
  30. * nothing to do
  31. */
  32. #define arch_decomp_setup()
  33. #define arch_decomp_wdog()