uncompress.h 455 B

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