spear300.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 0x50000000
  18. #define SPEAR300_TELECOM_SIZE 0x10000000
  19. /* Interrupt registers offsets and masks */
  20. #define SPEAR300_TELECOM_REG_SIZE 0x00010000
  21. #define INT_ENB_MASK_REG 0x54
  22. #define INT_STS_MASK_REG 0x58
  23. #define IT_PERS_S_IRQ_MASK (1 << 0)
  24. #define IT_CHANGE_S_IRQ_MASK (1 << 1)
  25. #define I2S_IRQ_MASK (1 << 2)
  26. #define TDM_IRQ_MASK (1 << 3)
  27. #define CAMERA_L_IRQ_MASK (1 << 4)
  28. #define CAMERA_F_IRQ_MASK (1 << 5)
  29. #define CAMERA_V_IRQ_MASK (1 << 6)
  30. #define KEYBOARD_IRQ_MASK (1 << 7)
  31. #define GPIO1_IRQ_MASK (1 << 8)
  32. #define SHIRQ_RAS1_MASK 0x1FF
  33. #define SPEAR300_CLCD_BASE 0x60000000
  34. #define SPEAR300_CLCD_SIZE 0x10000000
  35. #define SPEAR300_SDIO_BASE 0x70000000
  36. #define SPEAR300_SDIO_SIZE 0x10000000
  37. #define SPEAR300_NAND_0_BASE 0x80000000
  38. #define SPEAR300_NAND_0_SIZE 0x04000000
  39. #define SPEAR300_NAND_1_BASE 0x84000000
  40. #define SPEAR300_NAND_1_SIZE 0x04000000
  41. #define SPEAR300_NAND_2_BASE 0x88000000
  42. #define SPEAR300_NAND_2_SIZE 0x04000000
  43. #define SPEAR300_NAND_3_BASE 0x8c000000
  44. #define SPEAR300_NAND_3_SIZE 0x04000000
  45. #define SPEAR300_NOR_0_BASE 0x90000000
  46. #define SPEAR300_NOR_0_SIZE 0x01000000
  47. #define SPEAR300_NOR_1_BASE 0x91000000
  48. #define SPEAR300_NOR_1_SIZE 0x01000000
  49. #define SPEAR300_NOR_2_BASE 0x92000000
  50. #define SPEAR300_NOR_2_SIZE 0x01000000
  51. #define SPEAR300_NOR_3_BASE 0x93000000
  52. #define SPEAR300_NOR_3_SIZE 0x01000000
  53. #define SPEAR300_FSMC_BASE 0x94000000
  54. #define SPEAR300_FSMC_SIZE 0x05000000
  55. #define SPEAR300_SOC_CONFIG_BASE 0x99000000
  56. #define SPEAR300_SOC_CONFIG_SIZE 0x00000008
  57. #define SPEAR300_KEYBOARD_BASE 0xA0000000
  58. #define SPEAR300_KEYBOARD_SIZE 0x09000000
  59. #define SPEAR300_GPIO_BASE 0xA9000000
  60. #define SPEAR300_GPIO_SIZE 0x07000000
  61. #endif /* __MACH_SPEAR300_H */
  62. #endif /* CONFIG_MACH_SPEAR300 */