ag102.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (C) 2011 Andes Technology Corporation
  3. * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19. #ifndef __AG102_H
  20. #define __AG102_H
  21. /*
  22. * Hardware register bases
  23. */
  24. /* PCI Controller */
  25. #define CONFIG_FTPCI100_BASE 0x90000000
  26. /* LPC Controller */
  27. #define CONFIG_LPC_IO_BASE 0x90100000
  28. /* LPC Controller */
  29. #define CONFIG_LPC_BASE 0x90200000
  30. /* NDS32 Data Local Memory 01 */
  31. #define CONFIG_NDS_DLM1_BASE 0x90300000
  32. /* NDS32 Data Local Memory 02 */
  33. #define CONFIG_NDS_DLM2_BASE 0x90400000
  34. /* Synopsys DWC DDR2/1 Controller */
  35. #define CONFIG_DWCDDR21MCTL_BASE 0x90500000
  36. /* DMA Controller */
  37. #define CONFIG_FTDMAC020_BASE 0x90600000
  38. /* FTIDE020_S IDE (ATA) Controller */
  39. #define CONFIG_FTIDE020S_BASE 0x90700000
  40. /* USB OTG Controller */
  41. #define CONFIG_FZOTG266HD0A_BASE 0x90800000
  42. /* Andes L2 Cache Controller */
  43. #define CONFIG_NCEL2C100_BASE 0x90900000
  44. /* XGI XG22 GPU */
  45. #define CONFIG_XGI_XG22_BASE 0x90A00000
  46. /* GMAC Ethernet Controller */
  47. #define CONFIG_FTGMAC100_BASE 0x90B00000
  48. /* AHB Controller */
  49. #define CONFIG_FTAHBC020S_BASE 0x90C00000
  50. /* AHB-to-APB Bridge Controller */
  51. #define CONFIG_FTAPBBRG020S_01_BASE 0x90D00000
  52. /* External AHB2AHB Controller */
  53. #define CONFIG_EXT_AHB2AHB_BASE 0x90E00000
  54. /* Andes Multi-core Interrupt Controller */
  55. #define CONFIG_NCEMIC100_BASE 0x90F00000
  56. /*
  57. * APB Device definitions
  58. */
  59. /* Compat Flash Controller */
  60. #define CONFIG_FTCFC010_BASE 0x94000000
  61. /* APB - SSP (SPI) (without AC97) Controller */
  62. #define CONFIG_FTSSP010_01_BASE 0x94100000
  63. /* UART1 - APB STUART Controller (UART0 in Linux) */
  64. #define CONFIG_FTUART010_01_BASE 0x94200000
  65. /* FTSDC010 SD Controller */
  66. #define CONFIG_FTSDC010_BASE 0x94400000
  67. /* APB - SSP with HDA/AC97 Controller */
  68. #define CONFIG_FTSSP010_02_BASE 0x94500000
  69. /* UART2 - APB STUART Controller (UART1 in Linux) */
  70. #define CONFIG_FTUART010_02_BASE 0x94600000
  71. /* PCU Controller */
  72. #define CONFIG_ANDES_PCU_BASE 0x94800000
  73. /* FTTMR010 Timer */
  74. #define CONFIG_FTTMR010_BASE 0x94900000
  75. /* Watch Dog Controller */
  76. #define CONFIG_FTWDT010_BASE 0x94A00000
  77. /* FTRTC010 Real Time Clock */
  78. #define CONFIG_FTRTC010_BASE 0x98B00000
  79. /* GPIO Controller */
  80. #define CONFIG_FTGPIO010_BASE 0x94C00000
  81. /* I2C Controller */
  82. #define CONFIG_FTIIC010_BASE 0x94E00000
  83. /* PWM - Pulse Width Modulator Controller */
  84. #define CONFIG_FTPWM010_BASE 0x94F00000
  85. /* Debug LED */
  86. #define CONFIG_DEBUG_LED 0x902FFFFC
  87. /* Power Management Unit */
  88. #define CONFIG_FTPMU010_BASE 0x98100000
  89. #endif /* __AG102_H */