spear300.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * arch/arm/mach-spear3xx/include/mach/spear300.h
  3. *
  4. * SPEAr300 Machine 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. #ifdef CONFIG_MACH_SPEAR300
  14. #ifndef __MACH_SPEAR300_H
  15. #define __MACH_SPEAR300_H
  16. /* Base address of various IPs */
  17. #define SPEAR300_TELECOM_BASE UL(0x50000000)
  18. /* Interrupt registers offsets and masks */
  19. #define INT_ENB_MASK_REG 0x54
  20. #define INT_STS_MASK_REG 0x58
  21. #define IT_PERS_S_IRQ_MASK (1 << 0)
  22. #define IT_CHANGE_S_IRQ_MASK (1 << 1)
  23. #define I2S_IRQ_MASK (1 << 2)
  24. #define TDM_IRQ_MASK (1 << 3)
  25. #define CAMERA_L_IRQ_MASK (1 << 4)
  26. #define CAMERA_F_IRQ_MASK (1 << 5)
  27. #define CAMERA_V_IRQ_MASK (1 << 6)
  28. #define KEYBOARD_IRQ_MASK (1 << 7)
  29. #define GPIO1_IRQ_MASK (1 << 8)
  30. #define SHIRQ_RAS1_MASK 0x1FF
  31. #define SPEAR300_CLCD_BASE UL(0x60000000)
  32. #define SPEAR300_SDHCI_BASE UL(0x70000000)
  33. #define SPEAR300_NAND_0_BASE UL(0x80000000)
  34. #define SPEAR300_NAND_1_BASE UL(0x84000000)
  35. #define SPEAR300_NAND_2_BASE UL(0x88000000)
  36. #define SPEAR300_NAND_3_BASE UL(0x8c000000)
  37. #define SPEAR300_NOR_0_BASE UL(0x90000000)
  38. #define SPEAR300_NOR_1_BASE UL(0x91000000)
  39. #define SPEAR300_NOR_2_BASE UL(0x92000000)
  40. #define SPEAR300_NOR_3_BASE UL(0x93000000)
  41. #define SPEAR300_FSMC_BASE UL(0x94000000)
  42. #define SPEAR300_SOC_CONFIG_BASE UL(0x99000000)
  43. #define SPEAR300_KEYBOARD_BASE UL(0xA0000000)
  44. #define SPEAR300_GPIO_BASE UL(0xA9000000)
  45. #endif /* __MACH_SPEAR300_H */
  46. #endif /* CONFIG_MACH_SPEAR300 */