spear.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.linux@gmail.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 <asm/memory.h>
  16. /* ICM1 - Low speed connection */
  17. #define SPEAR3XX_ICM1_2_BASE UL(0xD0000000)
  18. #define VA_SPEAR3XX_ICM1_2_BASE UL(0xFD000000)
  19. #define SPEAR3XX_ICM1_UART_BASE UL(0xD0000000)
  20. #define VA_SPEAR3XX_ICM1_UART_BASE (VA_SPEAR3XX_ICM1_2_BASE | SPEAR3XX_ICM1_UART_BASE)
  21. #define SPEAR3XX_ICM1_SSP_BASE UL(0xD0100000)
  22. /* ML1 - Multi Layer CPU Subsystem */
  23. #define SPEAR3XX_ICM3_ML1_2_BASE UL(0xF0000000)
  24. #define VA_SPEAR6XX_ML_CPU_BASE UL(0xF0000000)
  25. /* ICM3 - Basic Subsystem */
  26. #define SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000)
  27. #define VA_SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000)
  28. #define SPEAR3XX_ICM3_DMA_BASE UL(0xFC400000)
  29. #define SPEAR3XX_ICM3_SYS_CTRL_BASE UL(0xFCA00000)
  30. #define VA_SPEAR3XX_ICM3_SYS_CTRL_BASE (VA_SPEAR3XX_ICM3_SMI_CTRL_BASE | SPEAR3XX_ICM3_SYS_CTRL_BASE)
  31. #define SPEAR3XX_ICM3_MISC_REG_BASE UL(0xFCA80000)
  32. #define VA_SPEAR3XX_ICM3_MISC_REG_BASE (VA_SPEAR3XX_ICM3_SMI_CTRL_BASE | SPEAR3XX_ICM3_MISC_REG_BASE)
  33. /* Debug uart for linux, will be used for debug and uncompress messages */
  34. #define SPEAR_DBG_UART_BASE SPEAR3XX_ICM1_UART_BASE
  35. #define VA_SPEAR_DBG_UART_BASE VA_SPEAR3XX_ICM1_UART_BASE
  36. /* Sysctl base for spear platform */
  37. #define SPEAR_SYS_CTRL_BASE SPEAR3XX_ICM3_SYS_CTRL_BASE
  38. #define VA_SPEAR_SYS_CTRL_BASE VA_SPEAR3XX_ICM3_SYS_CTRL_BASE
  39. /* SPEAr320 Macros */
  40. #define SPEAR320_SOC_CONFIG_BASE UL(0xB3000000)
  41. #define VA_SPEAR320_SOC_CONFIG_BASE UL(0xFE000000)
  42. #define SPEAR320_CONTROL_REG IOMEM(VA_SPEAR320_SOC_CONFIG_BASE)
  43. #define SPEAR320_EXT_CTRL_REG IOMEM(VA_SPEAR320_SOC_CONFIG_BASE + 0x0018)
  44. #define SPEAR320_UARTX_PCLK_MASK 0x1
  45. #define SPEAR320_UART2_PCLK_SHIFT 8
  46. #define SPEAR320_UART3_PCLK_SHIFT 9
  47. #define SPEAR320_UART4_PCLK_SHIFT 10
  48. #define SPEAR320_UART5_PCLK_SHIFT 11
  49. #define SPEAR320_UART6_PCLK_SHIFT 12
  50. #define SPEAR320_RS485_PCLK_SHIFT 13
  51. #endif /* __MACH_SPEAR3XX_H */