uncompress.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 arch_decomp_wdog()
  24. #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
  25. static volatile u32 * const uart_base = (u32 *)UART0_PA;
  26. static void putc(int ch)
  27. {
  28. /* Check THRE and TEMT bits before we transmit the character.
  29. */
  30. while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
  31. barrier();
  32. *uart_base = ch;
  33. }
  34. static inline void flush(void)
  35. {
  36. }
  37. static void arch_decomp_setup(void)
  38. {
  39. }
  40. #endif/* __ASM_W90X900_UNCOMPRESS_H */