u300-regs.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. *
  3. * arch/arm/mach-u300/include/mach/u300-regs.h
  4. *
  5. *
  6. * Copyright (C) 2006-2009 ST-Ericsson AB
  7. * License terms: GNU General Public License (GPL) version 2
  8. * Basic register address definitions in physical memory and
  9. * some block definitions for core devices like the timer.
  10. * Author: Linus Walleij <linus.walleij@stericsson.com>
  11. */
  12. #ifndef __MACH_U300_REGS_H
  13. #define __MACH_U300_REGS_H
  14. /*
  15. * These are the large blocks of memory allocated for I/O.
  16. * the defines are used for setting up the I/O memory mapping.
  17. */
  18. #ifdef __ASSEMBLER__
  19. #define IOMEM(a) (a)
  20. #else
  21. #define IOMEM(a) (void __iomem *) a
  22. #endif
  23. /* NAND Flash CS0 */
  24. #define U300_NAND_CS0_PHYS_BASE 0x80000000
  25. /* NFIF */
  26. #define U300_NAND_IF_PHYS_BASE 0x9f800000
  27. /* AHB Peripherals */
  28. #define U300_AHB_PER_PHYS_BASE 0xa0000000
  29. #define U300_AHB_PER_VIRT_BASE 0xff010000
  30. /* FAST Peripherals */
  31. #define U300_FAST_PER_PHYS_BASE 0xc0000000
  32. #define U300_FAST_PER_VIRT_BASE 0xff020000
  33. /* SLOW Peripherals */
  34. #define U300_SLOW_PER_PHYS_BASE 0xc0010000
  35. #define U300_SLOW_PER_VIRT_BASE 0xff000000
  36. /* Boot ROM */
  37. #define U300_BOOTROM_PHYS_BASE 0xffff0000
  38. #define U300_BOOTROM_VIRT_BASE 0xffff0000
  39. /* SEMI config base */
  40. #ifdef CONFIG_MACH_U300_BS335
  41. #define U300_SEMI_CONFIG_BASE 0x2FFE0000
  42. #else
  43. #define U300_SEMI_CONFIG_BASE 0x30000000
  44. #endif
  45. /*
  46. * AHB peripherals
  47. */
  48. /* AHB Peripherals Bridge Controller */
  49. #define U300_AHB_BRIDGE_BASE (U300_AHB_PER_PHYS_BASE+0x0000)
  50. /* Vectored Interrupt Controller 0, servicing 32 interrupts */
  51. #define U300_INTCON0_BASE (U300_AHB_PER_PHYS_BASE+0x1000)
  52. #define U300_INTCON0_VBASE IOMEM(U300_AHB_PER_VIRT_BASE+0x1000)
  53. /* Vectored Interrupt Controller 1, servicing 32 interrupts */
  54. #define U300_INTCON1_BASE (U300_AHB_PER_PHYS_BASE+0x2000)
  55. #define U300_INTCON1_VBASE IOMEM(U300_AHB_PER_VIRT_BASE+0x2000)
  56. /* Memory Stick Pro (MSPRO) controller */
  57. #define U300_MSPRO_BASE (U300_AHB_PER_PHYS_BASE+0x3000)
  58. /* EMIF Configuration Area */
  59. #define U300_EMIF_CFG_BASE (U300_AHB_PER_PHYS_BASE+0x4000)
  60. /*
  61. * FAST peripherals
  62. */
  63. /* FAST bridge control */
  64. #define U300_FAST_BRIDGE_BASE (U300_FAST_PER_PHYS_BASE+0x0000)
  65. /* MMC/SD controller */
  66. #define U300_MMCSD_BASE (U300_FAST_PER_PHYS_BASE+0x1000)
  67. /* PCM I2S0 controller */
  68. #define U300_PCM_I2S0_BASE (U300_FAST_PER_PHYS_BASE+0x2000)
  69. /* PCM I2S1 controller */
  70. #define U300_PCM_I2S1_BASE (U300_FAST_PER_PHYS_BASE+0x3000)
  71. /* I2C0 controller */
  72. #define U300_I2C0_BASE (U300_FAST_PER_PHYS_BASE+0x4000)
  73. /* I2C1 controller */
  74. #define U300_I2C1_BASE (U300_FAST_PER_PHYS_BASE+0x5000)
  75. /* SPI controller */
  76. #define U300_SPI_BASE (U300_FAST_PER_PHYS_BASE+0x6000)
  77. #ifdef CONFIG_MACH_U300_BS335
  78. /* Fast UART1 on U335 only */
  79. #define U300_UART1_BASE (U300_SLOW_PER_PHYS_BASE+0x7000)
  80. #endif
  81. /*
  82. * SLOW peripherals
  83. */
  84. /* SLOW bridge control */
  85. #define U300_SLOW_BRIDGE_BASE (U300_SLOW_PER_PHYS_BASE)
  86. /* SYSCON */
  87. #define U300_SYSCON_BASE (U300_SLOW_PER_PHYS_BASE+0x1000)
  88. #define U300_SYSCON_VBASE IOMEM(U300_SLOW_PER_VIRT_BASE+0x1000)
  89. /* Watchdog */
  90. #define U300_WDOG_BASE (U300_SLOW_PER_PHYS_BASE+0x2000)
  91. /* UART0 */
  92. #define U300_UART0_BASE (U300_SLOW_PER_PHYS_BASE+0x3000)
  93. /* APP side special timer */
  94. #define U300_TIMER_APP_BASE (U300_SLOW_PER_PHYS_BASE+0x4000)
  95. #define U300_TIMER_APP_VBASE IOMEM(U300_SLOW_PER_VIRT_BASE+0x4000)
  96. /* Keypad */
  97. #define U300_KEYPAD_BASE (U300_SLOW_PER_PHYS_BASE+0x5000)
  98. /* GPIO */
  99. #define U300_GPIO_BASE (U300_SLOW_PER_PHYS_BASE+0x6000)
  100. /* RTC */
  101. #define U300_RTC_BASE (U300_SLOW_PER_PHYS_BASE+0x7000)
  102. /* Bus tracer */
  103. #define U300_BUSTR_BASE (U300_SLOW_PER_PHYS_BASE+0x8000)
  104. /* Event handler (hardware queue) */
  105. #define U300_EVHIST_BASE (U300_SLOW_PER_PHYS_BASE+0x9000)
  106. /* Genric Timer */
  107. #define U300_TIMER_BASE (U300_SLOW_PER_PHYS_BASE+0xa000)
  108. /* PPM */
  109. #define U300_PPM_BASE (U300_SLOW_PER_PHYS_BASE+0xb000)
  110. /*
  111. * REST peripherals
  112. */
  113. /* ISP (image signal processor) is only available in U335 */
  114. #ifdef CONFIG_MACH_U300_BS335
  115. #define U300_ISP_BASE (0xA0008000)
  116. #endif
  117. /* DMA Controller base */
  118. #define U300_DMAC_BASE (0xC0020000)
  119. /* MSL Base */
  120. #define U300_MSL_BASE (0xc0022000)
  121. /* APEX Base */
  122. #define U300_APEX_BASE (0xc0030000)
  123. /* Video Encoder Base */
  124. #ifdef CONFIG_MACH_U300_BS335
  125. #define U300_VIDEOENC_BASE (0xc0080000)
  126. #else
  127. #define U300_VIDEOENC_BASE (0xc0040000)
  128. #endif
  129. /* XGAM Base */
  130. #define U300_XGAM_BASE (0xd0000000)
  131. /*
  132. * Virtual accessor macros for static devices
  133. */
  134. #endif