u300-regs.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. /* NAND Flash CS0 */
  19. #define U300_NAND_CS0_PHYS_BASE 0x80000000
  20. /* NFIF */
  21. #define U300_NAND_IF_PHYS_BASE 0x9f800000
  22. /* AHB Peripherals */
  23. #define U300_AHB_PER_PHYS_BASE 0xa0000000
  24. #define U300_AHB_PER_VIRT_BASE 0xff010000
  25. /* FAST Peripherals */
  26. #define U300_FAST_PER_PHYS_BASE 0xc0000000
  27. #define U300_FAST_PER_VIRT_BASE 0xff020000
  28. /* SLOW Peripherals */
  29. #define U300_SLOW_PER_PHYS_BASE 0xc0010000
  30. #define U300_SLOW_PER_VIRT_BASE 0xff000000
  31. /* Boot ROM */
  32. #define U300_BOOTROM_PHYS_BASE 0xffff0000
  33. #define U300_BOOTROM_VIRT_BASE 0xffff0000
  34. /* SEMI config base */
  35. #ifdef CONFIG_MACH_U300_BS335
  36. #define U300_SEMI_CONFIG_BASE 0x2FFE0000
  37. #else
  38. #define U300_SEMI_CONFIG_BASE 0x30000000
  39. #endif
  40. /*
  41. * All the following peripherals are specified at their PHYSICAL address,
  42. * so if you need to access them (in the kernel), you MUST use the macros
  43. * defined in <asm/io.h> to map to the IO_ADDRESS_AHB() IO_ADDRESS_FAST()
  44. * etc.
  45. */
  46. /*
  47. * AHB peripherals
  48. */
  49. /* AHB Peripherals Bridge Controller */
  50. #define U300_AHB_BRIDGE_BASE (U300_AHB_PER_PHYS_BASE+0x0000)
  51. /* Vectored Interrupt Controller 0, servicing 32 interrupts */
  52. #define U300_INTCON0_BASE (U300_AHB_PER_PHYS_BASE+0x1000)
  53. #define U300_INTCON0_VBASE (U300_AHB_PER_VIRT_BASE+0x1000)
  54. /* Vectored Interrupt Controller 1, servicing 32 interrupts */
  55. #define U300_INTCON1_BASE (U300_AHB_PER_PHYS_BASE+0x2000)
  56. #define U300_INTCON1_VBASE (U300_AHB_PER_VIRT_BASE+0x2000)
  57. /* Memory Stick Pro (MSPRO) controller */
  58. #define U300_MSPRO_BASE (U300_AHB_PER_PHYS_BASE+0x3000)
  59. /* EMIF Configuration Area */
  60. #define U300_EMIF_CFG_BASE (U300_AHB_PER_PHYS_BASE+0x4000)
  61. /*
  62. * FAST peripherals
  63. */
  64. /* FAST bridge control */
  65. #define U300_FAST_BRIDGE_BASE (U300_FAST_PER_PHYS_BASE+0x0000)
  66. /* MMC/SD controller */
  67. #define U300_MMCSD_BASE (U300_FAST_PER_PHYS_BASE+0x1000)
  68. /* PCM I2S0 controller */
  69. #define U300_PCM_I2S0_BASE (U300_FAST_PER_PHYS_BASE+0x2000)
  70. /* PCM I2S1 controller */
  71. #define U300_PCM_I2S1_BASE (U300_FAST_PER_PHYS_BASE+0x3000)
  72. /* I2C0 controller */
  73. #define U300_I2C0_BASE (U300_FAST_PER_PHYS_BASE+0x4000)
  74. /* I2C1 controller */
  75. #define U300_I2C1_BASE (U300_FAST_PER_PHYS_BASE+0x5000)
  76. /* SPI controller */
  77. #define U300_SPI_BASE (U300_FAST_PER_PHYS_BASE+0x6000)
  78. #ifdef CONFIG_MACH_U300_BS335
  79. /* Fast UART1 on U335 only */
  80. #define U300_UART1_BASE (U300_SLOW_PER_PHYS_BASE+0x7000)
  81. #endif
  82. /*
  83. * SLOW peripherals
  84. */
  85. /* SLOW bridge control */
  86. #define U300_SLOW_BRIDGE_BASE (U300_SLOW_PER_PHYS_BASE)
  87. /* SYSCON */
  88. #define U300_SYSCON_BASE (U300_SLOW_PER_PHYS_BASE+0x1000)
  89. #define U300_SYSCON_VBASE (U300_SLOW_PER_VIRT_BASE+0x1000)
  90. /* Watchdog */
  91. #define U300_WDOG_BASE (U300_SLOW_PER_PHYS_BASE+0x2000)
  92. /* UART0 */
  93. #define U300_UART0_BASE (U300_SLOW_PER_PHYS_BASE+0x3000)
  94. /* APP side special timer */
  95. #define U300_TIMER_APP_BASE (U300_SLOW_PER_PHYS_BASE+0x4000)
  96. #define U300_TIMER_APP_VBASE (U300_SLOW_PER_VIRT_BASE+0x4000)
  97. /* Keypad */
  98. #define U300_KEYPAD_BASE (U300_SLOW_PER_PHYS_BASE+0x5000)
  99. /* GPIO */
  100. #define U300_GPIO_BASE (U300_SLOW_PER_PHYS_BASE+0x6000)
  101. /* RTC */
  102. #define U300_RTC_BASE (U300_SLOW_PER_PHYS_BASE+0x7000)
  103. /* Bus tracer */
  104. #define U300_BUSTR_BASE (U300_SLOW_PER_PHYS_BASE+0x8000)
  105. /* Event handler (hardware queue) */
  106. #define U300_EVHIST_BASE (U300_SLOW_PER_PHYS_BASE+0x9000)
  107. /* Genric Timer */
  108. #define U300_TIMER_BASE (U300_SLOW_PER_PHYS_BASE+0xa000)
  109. /* PPM */
  110. #define U300_PPM_BASE (U300_SLOW_PER_PHYS_BASE+0xb000)
  111. /*
  112. * REST peripherals
  113. */
  114. /* ISP (image signal processor) is only available in U335 */
  115. #ifdef CONFIG_MACH_U300_BS335
  116. #define U300_ISP_BASE (0xA0008000)
  117. #endif
  118. /* DMA Controller base */
  119. #define U300_DMAC_BASE (0xC0020000)
  120. /* MSL Base */
  121. #define U300_MSL_BASE (0xc0022000)
  122. /* APEX Base */
  123. #define U300_APEX_BASE (0xc0030000)
  124. /* Video Encoder Base */
  125. #ifdef CONFIG_MACH_U300_BS335
  126. #define U300_VIDEOENC_BASE (0xc0080000)
  127. #else
  128. #define U300_VIDEOENC_BASE (0xc0040000)
  129. #endif
  130. /* XGAM Base */
  131. #define U300_XGAM_BASE (0xd0000000)
  132. /*
  133. * Virtual accessor macros for static devices
  134. */
  135. #endif