uncompress.h 427 B

123456789101112131415161718192021222324
  1. #include <asm/types.h>
  2. #include <linux/serial_reg.h>
  3. #include <mach/hardware.h>
  4. #define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
  5. #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
  6. static inline void putc(char c)
  7. {
  8. while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
  9. barrier();
  10. UART_BASE[UART_TX] = c;
  11. }
  12. static inline void flush(void)
  13. {
  14. }
  15. /*
  16. * nothing to do
  17. */
  18. #define arch_decomp_setup()
  19. #define arch_decomp_wdog()