map.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* linux/arch/arm/mach-s3c6400/include/mach/map.h
  2. *
  3. * Copyright 2008 Openmoko, Inc.
  4. * Copyright 2008 Simtec Electronics
  5. * http://armlinux.simtec.co.uk/
  6. * Ben Dooks <ben@simtec.co.uk>
  7. *
  8. * S3C64XX - Memory map definitions
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef __ASM_ARCH_MAP_H
  15. #define __ASM_ARCH_MAP_H __FILE__
  16. #include <plat/map-base.h>
  17. #define S3C_PA_UART (0x7F005000)
  18. #define S3C_PA_UART0 (S3C_PA_UART + 0x00)
  19. #define S3C_PA_UART1 (S3C_PA_UART + 0x400)
  20. #define S3C_PA_UART2 (S3C_PA_UART + 0x800)
  21. #define S3C_PA_UART3 (S3C_PA_UART + 0xC00)
  22. #define S3C_UART_OFFSET (0x400)
  23. /* See notes on UART VA mapping in debug-macro.S */
  24. #define S3C_VA_UARTx(x) (S3C_VA_UART + (S3C_PA_UART & 0xfffff) + ((x) * S3C_UART_OFFSET))
  25. #define S3C_VA_UART0 S3C_VA_UARTx(0)
  26. #define S3C_VA_UART1 S3C_VA_UARTx(1)
  27. #define S3C_VA_UART2 S3C_VA_UARTx(2)
  28. #define S3C_VA_UART3 S3C_VA_UARTx(3)
  29. #define S3C64XX_PA_SYSCON (0x7E00F000)
  30. #define S3C64XX_PA_TIMER (0x7F006000)
  31. #define S3C64XX_PA_SDRAM (0x50000000)
  32. #define S3C64XX_PA_VIC0 (0x71200000)
  33. #define S3C64XX_PA_VIC1 (0x71300000)
  34. /* place VICs close together */
  35. #define S3C_VA_VIC0 (S3C_VA_IRQ + 0x00)
  36. #define S3C_VA_VIC1 (S3C_VA_IRQ + 0x10000)
  37. /* compatibiltiy defines. */
  38. #define S3C_PA_TIMER S3C64XX_PA_TIMER
  39. #endif /* __ASM_ARCH_6400_MAP_H */