uncompress.h 895 B

12345678910111213141516171819202122232425262728293031323334
  1. /* linux/arch/arm/mach-s5p64x0/include/mach/uncompress.h
  2. *
  3. * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * S5P64X0 - uncompress code
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __ASM_ARCH_UNCOMPRESS_H
  13. #define __ASM_ARCH_UNCOMPRESS_H
  14. #include <mach/map.h>
  15. #include <plat/uncompress.h>
  16. static void arch_detect_cpu(void)
  17. {
  18. unsigned int chipid;
  19. chipid = *(const volatile unsigned int __force *) 0xE0100118;
  20. if ((chipid & 0xff000) == 0x50000)
  21. uart_base = S5P6450_PA_UART(CONFIG_S3C_LOWLEVEL_UART_PORT);
  22. else
  23. uart_base = S5P6440_PA_UART(CONFIG_S3C_LOWLEVEL_UART_PORT);
  24. fifo_mask = S3C2440_UFSTAT_TXMASK;
  25. fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT;
  26. }
  27. #endif /* __ASM_ARCH_UNCOMPRESS_H */