uncompress.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
  3. * http://www.samsung.com
  4. *
  5. * EXYNOS - uncompress code
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_UNCOMPRESS_H
  12. #define __ASM_ARCH_UNCOMPRESS_H __FILE__
  13. #include <asm/mach-types.h>
  14. #include <mach/map.h>
  15. volatile u8 *uart_base;
  16. #include <plat/uncompress.h>
  17. static void arch_detect_cpu(void)
  18. {
  19. if (machine_is_smdk5250())
  20. uart_base = (volatile u8 *)EXYNOS5_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
  21. else
  22. uart_base = (volatile u8 *)EXYNOS4_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
  23. /*
  24. * For preventing FIFO overrun or infinite loop of UART console,
  25. * fifo_max should be the minimum fifo size of all of the UART channels
  26. */
  27. fifo_mask = S5PV210_UFSTAT_TXMASK;
  28. fifo_max = 15 << S5PV210_UFSTAT_TXSHIFT;
  29. }
  30. #endif /* __ASM_ARCH_UNCOMPRESS_H */