map-s3c.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2008 Simtec Electronics
  4. * Ben Dooks <[email protected]>
  5. *
  6. * S3C24XX - Memory map definitions
  7. */
  8. #ifndef __ASM_PLAT_MAP_S3C_H
  9. #define __ASM_PLAT_MAP_S3C_H __FILE__
  10. #include "map.h"
  11. #define S3C24XX_VA_IRQ S3C_VA_IRQ
  12. #define S3C24XX_VA_MEMCTRL S3C_VA_MEM
  13. #define S3C24XX_VA_UART S3C_VA_UART
  14. #define S3C24XX_VA_TIMER S3C_VA_TIMER
  15. #define S3C24XX_VA_CLKPWR S3C_VA_SYS
  16. #define S3C24XX_VA_WATCHDOG S3C_VA_WATCHDOG
  17. #define S3C2412_VA_SSMC S3C_ADDR_CPU(0x00000000)
  18. #define S3C2412_VA_EBI S3C_ADDR_CPU(0x00100000)
  19. #define S3C2410_PA_UART (0x50000000)
  20. #define S3C24XX_PA_UART S3C2410_PA_UART
  21. /*
  22. * GPIO ports
  23. *
  24. * the calculation for the VA of this must ensure that
  25. * it is the same distance apart from the UART in the
  26. * phsyical address space, as the initial mapping for the IO
  27. * is done as a 1:1 mapping. This puts it (currently) at
  28. * 0xFA800000, which is not in the way of any current mapping
  29. * by the base system.
  30. */
  31. #define S3C2410_PA_GPIO (0x56000000)
  32. #define S3C24XX_PA_GPIO S3C2410_PA_GPIO
  33. #define S3C24XX_VA_GPIO ((S3C24XX_PA_GPIO - S3C24XX_PA_UART) + S3C24XX_VA_UART)
  34. #define S3C64XX_VA_GPIO S3C_ADDR_CPU(0x00000000)
  35. #define S3C64XX_VA_MODEM S3C_ADDR_CPU(0x00100000)
  36. #define S3C64XX_VA_USB_HSPHY S3C_ADDR_CPU(0x00200000)
  37. #define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY
  38. #define S3C2410_ADDR(x) S3C_ADDR(x)
  39. /* deal with the registers that move under the 2412/2413 */
  40. #if defined(CONFIG_CPU_S3C2412)
  41. #ifndef __ASSEMBLY__
  42. extern void __iomem *s3c24xx_va_gpio2;
  43. #endif
  44. #ifdef CONFIG_CPU_S3C2412_ONLY
  45. #define S3C24XX_VA_GPIO2 (S3C24XX_VA_GPIO + 0x10)
  46. #else
  47. #define S3C24XX_VA_GPIO2 s3c24xx_va_gpio2
  48. #endif
  49. #else
  50. #define s3c24xx_va_gpio2 S3C24XX_VA_GPIO
  51. #define S3C24XX_VA_GPIO2 S3C24XX_VA_GPIO
  52. #endif
  53. #include "map-s5p.h"
  54. #endif /* __ASM_PLAT_MAP_S3C_H */