map-s3c64xx.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright 2008 Openmoko, Inc.
  4. * Copyright 2008 Simtec Electronics
  5. * http://armlinux.simtec.co.uk/
  6. * Ben Dooks <[email protected]>
  7. *
  8. * S3C64XX - Memory map definitions
  9. */
  10. #ifndef __ASM_ARCH_MAP_H
  11. #define __ASM_ARCH_MAP_H __FILE__
  12. #include "map-base.h"
  13. #include "map-s3c.h"
  14. /*
  15. * Post-mux Chip Select Regions Xm0CSn_
  16. * These may be used by SROM, NAND or CF depending on settings
  17. */
  18. #define S3C64XX_PA_XM0CSN0 (0x10000000)
  19. #define S3C64XX_PA_XM0CSN1 (0x18000000)
  20. #define S3C64XX_PA_XM0CSN2 (0x20000000)
  21. #define S3C64XX_PA_XM0CSN3 (0x28000000)
  22. #define S3C64XX_PA_XM0CSN4 (0x30000000)
  23. #define S3C64XX_PA_XM0CSN5 (0x38000000)
  24. /* HSMMC units */
  25. #define S3C64XX_PA_HSMMC(x) (0x7C200000 + ((x) * 0x100000))
  26. #define S3C64XX_PA_HSMMC0 S3C64XX_PA_HSMMC(0)
  27. #define S3C64XX_PA_HSMMC1 S3C64XX_PA_HSMMC(1)
  28. #define S3C64XX_PA_HSMMC2 S3C64XX_PA_HSMMC(2)
  29. #define S3C_PA_UART (0x7F005000)
  30. #define S3C_PA_UART0 (S3C_PA_UART + 0x00)
  31. #define S3C_PA_UART1 (S3C_PA_UART + 0x400)
  32. #define S3C_PA_UART2 (S3C_PA_UART + 0x800)
  33. #define S3C_PA_UART3 (S3C_PA_UART + 0xC00)
  34. #define S3C_UART_OFFSET (0x400)
  35. /* See notes on UART VA mapping in debug-macro.S */
  36. #define S3C_VA_UARTx(x) (S3C_VA_UART + (S3C_PA_UART & 0xfffff) + ((x) * S3C_UART_OFFSET))
  37. #define S3C_VA_UART0 S3C_VA_UARTx(0)
  38. #define S3C_VA_UART1 S3C_VA_UARTx(1)
  39. #define S3C_VA_UART2 S3C_VA_UARTx(2)
  40. #define S3C_VA_UART3 S3C_VA_UARTx(3)
  41. #define S3C64XX_PA_SROM (0x70000000)
  42. #define S3C64XX_PA_ONENAND0 (0x70100000)
  43. #define S3C64XX_PA_ONENAND0_BUF (0x20000000)
  44. #define S3C64XX_SZ_ONENAND0_BUF (SZ_64M)
  45. /* NAND and OneNAND1 controllers occupy the same register region
  46. (depending on SoC POP version) */
  47. #define S3C64XX_PA_ONENAND1 (0x70200000)
  48. #define S3C64XX_PA_ONENAND1_BUF (0x28000000)
  49. #define S3C64XX_SZ_ONENAND1_BUF (SZ_64M)
  50. #define S3C64XX_PA_NAND (0x70200000)
  51. #define S3C64XX_PA_FB (0x77100000)
  52. #define S3C64XX_PA_USB_HSOTG (0x7C000000)
  53. #define S3C64XX_PA_WATCHDOG (0x7E004000)
  54. #define S3C64XX_PA_RTC (0x7E005000)
  55. #define S3C64XX_PA_KEYPAD (0x7E00A000)
  56. #define S3C64XX_PA_ADC (0x7E00B000)
  57. #define S3C64XX_PA_SYSCON (0x7E00F000)
  58. #define S3C64XX_PA_AC97 (0x7F001000)
  59. #define S3C64XX_PA_IIS0 (0x7F002000)
  60. #define S3C64XX_PA_IIS1 (0x7F003000)
  61. #define S3C64XX_PA_TIMER (0x7F006000)
  62. #define S3C64XX_PA_IIC0 (0x7F004000)
  63. #define S3C64XX_PA_SPI0 (0x7F00B000)
  64. #define S3C64XX_PA_SPI1 (0x7F00C000)
  65. #define S3C64XX_PA_PCM0 (0x7F009000)
  66. #define S3C64XX_PA_PCM1 (0x7F00A000)
  67. #define S3C64XX_PA_IISV4 (0x7F00D000)
  68. #define S3C64XX_PA_IIC1 (0x7F00F000)
  69. #define S3C64XX_PA_GPIO (0x7F008000)
  70. #define S3C64XX_SZ_GPIO SZ_4K
  71. #define S3C64XX_PA_SDRAM (0x50000000)
  72. #define S3C64XX_PA_CFCON (0x70300000)
  73. #define S3C64XX_PA_VIC0 (0x71200000)
  74. #define S3C64XX_PA_VIC1 (0x71300000)
  75. #define S3C64XX_PA_MODEM (0x74108000)
  76. #define S3C64XX_PA_USBHOST (0x74300000)
  77. #define S3C64XX_PA_USB_HSPHY (0x7C100000)
  78. /* compatibility defines. */
  79. #define S3C_PA_TIMER S3C64XX_PA_TIMER
  80. #define S3C_PA_HSMMC0 S3C64XX_PA_HSMMC0
  81. #define S3C_PA_HSMMC1 S3C64XX_PA_HSMMC1
  82. #define S3C_PA_HSMMC2 S3C64XX_PA_HSMMC2
  83. #define S3C_PA_IIC S3C64XX_PA_IIC0
  84. #define S3C_PA_IIC1 S3C64XX_PA_IIC1
  85. #define S3C_PA_NAND S3C64XX_PA_NAND
  86. #define S3C_PA_ONENAND S3C64XX_PA_ONENAND0
  87. #define S3C_PA_ONENAND_BUF S3C64XX_PA_ONENAND0_BUF
  88. #define S3C_SZ_ONENAND_BUF S3C64XX_SZ_ONENAND0_BUF
  89. #define S3C_PA_FB S3C64XX_PA_FB
  90. #define S3C_PA_USBHOST S3C64XX_PA_USBHOST
  91. #define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG
  92. #define S3C_PA_RTC S3C64XX_PA_RTC
  93. #define S3C_PA_WDT S3C64XX_PA_WATCHDOG
  94. #define S3C_PA_SPI0 S3C64XX_PA_SPI0
  95. #define S3C_PA_SPI1 S3C64XX_PA_SPI1
  96. #define SAMSUNG_PA_ADC S3C64XX_PA_ADC
  97. #define SAMSUNG_PA_CFCON S3C64XX_PA_CFCON
  98. #define SAMSUNG_PA_KEYPAD S3C64XX_PA_KEYPAD
  99. #define SAMSUNG_PA_TIMER S3C64XX_PA_TIMER
  100. #endif /* __ASM_ARCH_6400_MAP_H */