spear.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * arch/arm/mach-spear3xx/include/mach/spear.h
  3. *
  4. * SPEAr3xx Machine family specific definition
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Viresh Kumar<viresh.kumar@st.com>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #ifndef __MACH_SPEAR3XX_H
  14. #define __MACH_SPEAR3XX_H
  15. #include <mach/spear300.h>
  16. #include <mach/spear310.h>
  17. #include <mach/spear320.h>
  18. #define SPEAR3XX_ML_SDRAM_BASE 0x00000000
  19. #define SPEAR3XX_ICM9_BASE 0xC0000000
  20. /* ICM1 - Low speed connection */
  21. #define SPEAR3XX_ICM1_2_BASE 0xD0000000
  22. #define SPEAR3XX_ICM1_UART_BASE 0xD0000000
  23. #define VA_SPEAR3XX_ICM1_UART_BASE IO_ADDRESS(SPEAR3XX_ICM1_UART_BASE)
  24. #define SPEAR3XX_ICM1_ADC_BASE 0xD0080000
  25. #define SPEAR3XX_ICM1_SSP_BASE 0xD0100000
  26. #define SPEAR3XX_ICM1_I2C_BASE 0xD0180000
  27. #define SPEAR3XX_ICM1_JPEG_BASE 0xD0800000
  28. #define SPEAR3XX_ICM1_IRDA_BASE 0xD1000000
  29. #define SPEAR3XX_ICM1_SRAM_BASE 0xD2800000
  30. /* ICM2 - Application Subsystem */
  31. #define SPEAR3XX_ICM2_HWACCEL0_BASE 0xD8800000
  32. #define SPEAR3XX_ICM2_HWACCEL1_BASE 0xD9000000
  33. /* ICM4 - High Speed Connection */
  34. #define SPEAR3XX_ICM4_BASE 0xE0000000
  35. #define SPEAR3XX_ICM4_MII_BASE 0xE0800000
  36. #define SPEAR3XX_ICM4_USBD_FIFO_BASE 0xE1000000
  37. #define SPEAR3XX_ICM4_USBD_CSR_BASE 0xE1100000
  38. #define SPEAR3XX_ICM4_USBD_PLDT_BASE 0xE1200000
  39. #define SPEAR3XX_ICM4_USB_EHCI0_1_BASE 0xE1800000
  40. #define SPEAR3XX_ICM4_USB_OHCI0_BASE 0xE1900000
  41. #define SPEAR3XX_ICM4_USB_OHCI1_BASE 0xE2100000
  42. #define SPEAR3XX_ICM4_USB_ARB_BASE 0xE2800000
  43. /* ML1 - Multi Layer CPU Subsystem */
  44. #define SPEAR3XX_ICM3_ML1_2_BASE 0xF0000000
  45. #define SPEAR3XX_ML1_TMR_BASE 0xF0000000
  46. #define SPEAR3XX_ML1_VIC_BASE 0xF1100000
  47. #define VA_SPEAR3XX_ML1_VIC_BASE IO_ADDRESS(SPEAR3XX_ML1_VIC_BASE)
  48. /* ICM3 - Basic Subsystem */
  49. #define SPEAR3XX_ICM3_SMEM_BASE 0xF8000000
  50. #define SPEAR3XX_ICM3_SMI_CTRL_BASE 0xFC000000
  51. #define SPEAR3XX_ICM3_DMA_BASE 0xFC400000
  52. #define SPEAR3XX_ICM3_SDRAM_CTRL_BASE 0xFC600000
  53. #define SPEAR3XX_ICM3_TMR0_BASE 0xFC800000
  54. #define SPEAR3XX_ICM3_WDT_BASE 0xFC880000
  55. #define SPEAR3XX_ICM3_RTC_BASE 0xFC900000
  56. #define SPEAR3XX_ICM3_GPIO_BASE 0xFC980000
  57. #define SPEAR3XX_ICM3_SYS_CTRL_BASE 0xFCA00000
  58. #define VA_SPEAR3XX_ICM3_SYS_CTRL_BASE IO_ADDRESS(SPEAR3XX_ICM3_SYS_CTRL_BASE)
  59. #define SPEAR3XX_ICM3_MISC_REG_BASE 0xFCA80000
  60. #define VA_SPEAR3XX_ICM3_MISC_REG_BASE IO_ADDRESS(SPEAR3XX_ICM3_MISC_REG_BASE)
  61. #define SPEAR3XX_ICM3_TMR1_BASE 0xFCB00000
  62. /* Debug uart for linux, will be used for debug and uncompress messages */
  63. #define SPEAR_DBG_UART_BASE SPEAR3XX_ICM1_UART_BASE
  64. #define VA_SPEAR_DBG_UART_BASE VA_SPEAR3XX_ICM1_UART_BASE
  65. /* Sysctl base for spear platform */
  66. #define SPEAR_SYS_CTRL_BASE SPEAR3XX_ICM3_SYS_CTRL_BASE
  67. #define VA_SPEAR_SYS_CTRL_BASE VA_SPEAR3XX_ICM3_SYS_CTRL_BASE
  68. #endif /* __MACH_SPEAR3XX_H */