uncompress.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. *
  3. * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
  4. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
  5. */
  6. /*
  7. * The code contained herein is licensed under the GNU General Public
  8. * License. You may obtain a copy of the GNU General Public License
  9. * Version 2 or later at the following locations:
  10. *
  11. * http://www.opensource.org/licenses/gpl-license.html
  12. * http://www.gnu.org/copyleft/gpl.html
  13. */
  14. #ifndef __ASM_PLAT_UNCOMPRESS_H
  15. #define __ASM_PLAT_UNCOMPRESS_H
  16. /*
  17. * Register includes are for when the MMU enabled; we need to define our
  18. * own stuff here for pre-MMU use
  19. */
  20. #define UARTDBG_BASE 0x80070000
  21. #define UART(c) (((volatile unsigned *)UARTDBG_BASE)[c])
  22. /*
  23. * This does not append a newline
  24. */
  25. static void putc(char c)
  26. {
  27. /* Wait for TX fifo empty */
  28. while ((UART(6) & (1<<7)) == 0)
  29. continue;
  30. /* Write byte */
  31. UART(0) = c;
  32. /* Wait for last bit to exit the UART */
  33. while (UART(6) & (1<<3))
  34. continue;
  35. }
  36. static void flush(void)
  37. {
  38. }
  39. /*
  40. * nothing to do
  41. */
  42. #define arch_decomp_setup()
  43. #define arch_decomp_wdog()
  44. #endif /* __ASM_PLAT_UNCOMPRESS_H */