uncompress.h 974 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* include/asm-arm/arch-lh7a40x/uncompress.h
  2. *
  3. * Copyright (C) 2004 Coastal Environmental Systems
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * version 2 as published by the Free Software Foundation.
  8. *
  9. */
  10. #include <asm/arch/registers.h>
  11. #ifndef UART_R_DATA
  12. # define UART_R_DATA (0x00)
  13. #endif
  14. #ifndef UART_R_STATUS
  15. # define UART_R_STATUS (0x10)
  16. #endif
  17. #define nTxRdy (0x20) /* Not TxReady (literally Tx FIFO full) */
  18. /* Access UART with physical addresses before MMU is setup */
  19. #define UART_STATUS (*(volatile unsigned long*) (UART2_PHYS + UART_R_STATUS))
  20. #define UART_DATA (*(volatile unsigned long*) (UART2_PHYS + UART_R_DATA))
  21. static inline void putc(int ch)
  22. {
  23. while (UART_STATUS & nTxRdy)
  24. barrier();
  25. UART_DATA = ch;
  26. }
  27. static inline void flush(void)
  28. {
  29. }
  30. /* NULL functions; we don't presently need them */
  31. #define arch_decomp_setup()
  32. #define arch_decomp_wdog()