uncompress.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/uncompress.h
  3. *
  4. * Copyright (c) 2008 Nuvoton technology corporation
  5. * All rights reserved.
  6. *
  7. * Wan ZongShun <mcuos.com@gmail.com>
  8. *
  9. * Based on arch/arm/mach-s3c2410/include/mach/uncompress.h
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. */
  17. #ifndef __ASM_ARCH_UNCOMPRESS_H
  18. #define __ASM_ARCH_UNCOMPRESS_H
  19. /* Defines for UART registers */
  20. #include <mach/regs-serial.h>
  21. #include <mach/map.h>
  22. #include <linux/serial_reg.h>
  23. #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
  24. static volatile u32 * const uart_base = (u32 *)UART0_PA;
  25. static void putc(int ch)
  26. {
  27. /* Check THRE and TEMT bits before we transmit the character.
  28. */
  29. while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
  30. barrier();
  31. *uart_base = ch;
  32. }
  33. static inline void flush(void)
  34. {
  35. }
  36. static void arch_decomp_setup(void)
  37. {
  38. }
  39. #endif/* __ASM_W90X900_UNCOMPRESS_H */