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