map.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /* linux/arch/arm/mach-s5pc100/include/mach/map.h
  2. *
  3. * Copyright 2009 Samsung Electronics Co.
  4. * Byungho Min <bhmin@samsung.com>
  5. *
  6. * Based on mach-s3c6400/include/mach/map.h
  7. *
  8. * S5PC1XX - 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. /*
  18. * map-base.h has already defined virtual memory address
  19. * S3C_VA_IRQ S3C_ADDR(0x00000000) irq controller(s)
  20. * S3C_VA_SYS S3C_ADDR(0x00100000) system control
  21. * S3C_VA_MEM S3C_ADDR(0x00200000) system control (not used)
  22. * S3C_VA_TIMER S3C_ADDR(0x00300000) timer block
  23. * S3C_VA_WATCHDOG S3C_ADDR(0x00400000) watchdog
  24. * S3C_VA_UART S3C_ADDR(0x01000000) UART
  25. *
  26. * S5PC100 specific virtual memory address can be defined here
  27. * S5PC1XX_VA_GPIO S3C_ADDR(0x00500000) GPIO
  28. *
  29. */
  30. #define S5PC100_PA_ONENAND_BUF (0xB0000000)
  31. #define S5PC100_SZ_ONENAND_BUF (SZ_256M - SZ_32M)
  32. /* Chip ID */
  33. #define S5PC100_PA_CHIPID (0xE0000000)
  34. #define S5PC1XX_PA_CHIPID S5PC100_PA_CHIPID
  35. #define S5PC1XX_VA_CHIPID S3C_VA_SYS
  36. /* System */
  37. #define S5PC100_PA_CLK (0xE0100000)
  38. #define S5PC100_PA_CLK_OTHER (0xE0200000)
  39. #define S5PC100_PA_PWR (0xE0108000)
  40. #define S5PC1XX_PA_CLK S5PC100_PA_CLK
  41. #define S5PC1XX_PA_PWR S5PC100_PA_PWR
  42. #define S5PC1XX_PA_CLK_OTHER S5PC100_PA_CLK_OTHER
  43. #define S5PC1XX_VA_CLK (S3C_VA_SYS + 0x10000)
  44. #define S5PC1XX_VA_PWR (S3C_VA_SYS + 0x20000)
  45. #define S5PC1XX_VA_CLK_OTHER (S3C_VA_SYS + 0x30000)
  46. /* GPIO */
  47. #define S5PC100_PA_GPIO (0xE0300000)
  48. #define S5PC1XX_PA_GPIO S5PC100_PA_GPIO
  49. #define S5PC1XX_VA_GPIO S3C_ADDR(0x00500000)
  50. /* Interrupt */
  51. #define S5PC100_PA_VIC (0xE4000000)
  52. #define S5PC100_VA_VIC S3C_VA_IRQ
  53. #define S5PC100_PA_VIC_OFFSET 0x100000
  54. #define S5PC100_VA_VIC_OFFSET 0x10000
  55. #define S5PC1XX_PA_VIC(x) (S5PC100_PA_VIC + ((x) * S5PC100_PA_VIC_OFFSET))
  56. #define S5PC1XX_VA_VIC(x) (S5PC100_VA_VIC + ((x) * S5PC100_VA_VIC_OFFSET))
  57. #define S5PC100_PA_ONENAND (0xE7100000)
  58. /* DMA */
  59. #define S5PC100_PA_MDMA (0xE8100000)
  60. #define S5PC100_PA_PDMA0 (0xE9000000)
  61. #define S5PC100_PA_PDMA1 (0xE9200000)
  62. /* Timer */
  63. #define S5PC100_PA_TIMER (0xEA000000)
  64. #define S5PC1XX_PA_TIMER S5PC100_PA_TIMER
  65. #define S5PC1XX_VA_TIMER S3C_VA_TIMER
  66. /* RTC */
  67. #define S5PC100_PA_RTC (0xEA300000)
  68. /* UART */
  69. #define S5PC100_PA_UART (0xEC000000)
  70. #define S5PC1XX_PA_UART S5PC100_PA_UART
  71. #define S5PC1XX_VA_UART S3C_VA_UART
  72. /* I2C */
  73. #define S5PC100_PA_I2C (0xEC100000)
  74. #define S5PC100_PA_I2C1 (0xEC200000)
  75. /* USB HS OTG */
  76. #define S5PC100_PA_USB_HSOTG (0xED200000)
  77. #define S5PC100_PA_USB_HSPHY (0xED300000)
  78. /* SD/MMC */
  79. #define S5PC100_PA_HSMMC(x) (0xED800000 + ((x) * 0x100000))
  80. #define S5PC100_PA_HSMMC0 S5PC100_PA_HSMMC(0)
  81. #define S5PC100_PA_HSMMC1 S5PC100_PA_HSMMC(1)
  82. #define S5PC100_PA_HSMMC2 S5PC100_PA_HSMMC(2)
  83. /* LCD */
  84. #define S5PC100_PA_FB (0xEE000000)
  85. /* Multimedia */
  86. #define S5PC100_PA_G2D (0xEE800000)
  87. #define S5PC100_PA_JPEG (0xEE500000)
  88. #define S5PC100_PA_ROTATOR (0xEE100000)
  89. #define S5PC100_PA_G3D (0xEF000000)
  90. /* I2S */
  91. #define S5PC100_PA_I2S0 (0xF2000000)
  92. #define S5PC100_PA_I2S1 (0xF2100000)
  93. #define S5PC100_PA_I2S2 (0xF2200000)
  94. /* KEYPAD */
  95. #define S5PC100_PA_KEYPAD (0xF3100000)
  96. /* ADC & TouchScreen */
  97. #define S5PC100_PA_TSADC (0xF3000000)
  98. /* ETC */
  99. #define S5PC100_PA_SDRAM (0x20000000)
  100. #define S5PC1XX_PA_SDRAM S5PC100_PA_SDRAM
  101. /* compatibility defines. */
  102. #define S3C_PA_RTC S5PC100_PA_RTC
  103. #define S3C_PA_UART S5PC100_PA_UART
  104. #define S3C_PA_UART0 (S5PC100_PA_UART + 0x0)
  105. #define S3C_PA_UART1 (S5PC100_PA_UART + 0x400)
  106. #define S3C_PA_UART2 (S5PC100_PA_UART + 0x800)
  107. #define S3C_PA_UART3 (S5PC100_PA_UART + 0xC00)
  108. #define S3C_VA_UART0 (S3C_VA_UART + 0x0)
  109. #define S3C_VA_UART1 (S3C_VA_UART + 0x400)
  110. #define S3C_VA_UART2 (S3C_VA_UART + 0x800)
  111. #define S3C_VA_UART3 (S3C_VA_UART + 0xC00)
  112. #define S3C_UART_OFFSET 0x400
  113. #define S3C_VA_UARTx(x) (S3C_VA_UART + ((x) * S3C_UART_OFFSET))
  114. #define S3C_PA_FB S5PC100_PA_FB
  115. #define S3C_PA_G2D S5PC100_PA_G2D
  116. #define S3C_PA_G3D S5PC100_PA_G3D
  117. #define S3C_PA_JPEG S5PC100_PA_JPEG
  118. #define S3C_PA_ROTATOR S5PC100_PA_ROTATOR
  119. #define S3C_VA_VIC0 (S3C_VA_IRQ + 0x0)
  120. #define S3C_VA_VIC1 (S3C_VA_IRQ + 0x10000)
  121. #define S3C_VA_VIC2 (S3C_VA_IRQ + 0x20000)
  122. #define S3C_PA_IIC S5PC100_PA_I2C
  123. #define S3C_PA_IIC1 S5PC100_PA_I2C1
  124. #define S3C_PA_USB_HSOTG S5PC100_PA_USB_HSOTG
  125. #define S3C_PA_USB_HSPHY S5PC100_PA_USB_HSPHY
  126. #define S3C_PA_HSMMC0 S5PC100_PA_HSMMC0
  127. #define S3C_PA_HSMMC1 S5PC100_PA_HSMMC1
  128. #define S3C_PA_HSMMC2 S5PC100_PA_HSMMC2
  129. #define S3C_PA_KEYPAD S5PC100_PA_KEYPAD
  130. #define S3C_PA_TSADC S5PC100_PA_TSADC
  131. #define S3C_PA_ONENAND S5PC100_PA_ONENAND
  132. #define S3C_PA_ONENAND_BUF S5PC100_PA_ONENAND_BUF
  133. #define S3C_SZ_ONENAND_BUF S5PC100_SZ_ONENAND_BUF
  134. #endif /* __ASM_ARCH_C100_MAP_H */