ag101.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * Copyright (C) 2011 Andes Technology Corporation
  3. * Nobuhiro Lin, Andes Technology Corporation <nobuhiro@andestech.com>
  4. * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef __AG101_H
  21. #define __AG101_H
  22. /* Hardware register bases */
  23. /* AHB Controller */
  24. #define CONFIG_FTAHBC020S_BASE 0x90100000
  25. /* Static Memory Controller (SRAM) */
  26. #define CONFIG_FTSMC020_BASE 0x90200000
  27. /* FTSDMC021 SDRAM Controller */
  28. #define CONFIG_FTSDMC021_BASE 0x90300000
  29. /* DMA Controller */
  30. #define CONFIG_FTDMAC020_BASE 0x90400000
  31. /* AHB-to-APB Bridge */
  32. #define CONFIG_FTAPBBRG020S_01_BASE 0x90500000
  33. /* LCD Controller */
  34. #define CONFIG_FTLCDC100_BASE 0x90600000
  35. /* Reserved */
  36. #define CONFIG_RESERVED_01_BASE 0x90700000
  37. /* Reserved */
  38. #define CONFIG_RESERVED_02_BASE 0x90800000
  39. /* Ethernet */
  40. #define CONFIG_FTMAC100_BASE 0x90900000
  41. /* External USB host */
  42. #define CONFIG_EXT_USB_HOST_BASE 0x90A00000
  43. /* USB Device */
  44. #define CONFIG_USB_DEV_BASE 0x90B00000
  45. /* External AHB-to-PCI Bridge (FTPCI100 not exist in ag101) */
  46. #define CONFIG_EXT_AHBPCIBRG_BASE 0x90C00000
  47. /* Reserved */
  48. #define CONFIG_RESERVED_03_BASE 0x90D00000
  49. /* External AHB-to-APB Bridger (FTAPBBRG020S_02) */
  50. #define CONFIG_EXT_AHBAPBBRG_BASE 0x90E00000
  51. /* External AHB slave1 (LCD) */
  52. #define CONFIG_EXT_AHBSLAVE01_BASE 0x90F00000
  53. /* External AHB slave2 (FUSBH200) */
  54. #define CONFIG_EXT_AHBSLAVE02_BASE 0x92000000
  55. /* DEBUG LED */
  56. #define CONFIG_DEBUG_LED 0x902FFFFC
  57. /* APB Device definitions */
  58. /* Power Management Unit */
  59. #define CONFIG_FTPMU010_BASE 0x98100000
  60. /* BT UART 2/IrDA (UART 01 in Linux) */
  61. #define CONFIG_FTUART010_01_BASE 0x98300000
  62. /* Counter/Timers */
  63. #define CONFIG_FTTMR010_BASE 0x98400000
  64. /* Watchdog Timer */
  65. #define CONFIG_FTWDT010_BASE 0x98500000
  66. /* Real Time Clock */
  67. #define CONFIG_FTRTC010_BASE 0x98600000
  68. /* GPIO */
  69. #define CONFIG_FTGPIO010_BASE 0x98700000
  70. /* Interrupt Controller */
  71. #define CONFIG_FTINTC010_BASE 0x98800000
  72. /* I2C */
  73. #define CONFIG_FTIIC010_BASE 0x98A00000
  74. /* Reserved */
  75. #define CONFIG_RESERVED_04_BASE 0x98C00000
  76. /* Compat Flash Controller */
  77. #define CONFIG_FTCFC010_BASE 0x98D00000
  78. /* SD Controller */
  79. #define CONFIG_FTSDC010_BASE 0x98E00000
  80. /* Synchronous Serial Port Controller (SSP) I2S/AC97 */
  81. #define CONFIG_FTSSP010_02_BASE 0x99400000
  82. /* ST UART ? SSP 02 (UART 02 in Linux) */
  83. #define CONFIG_FTUART010_02_BASE 0x99600000
  84. /* The following address was not defined in Linux */
  85. /* FF UART 3 */
  86. #define CONFIG_FTUART010_03_BASE 0x98200000
  87. /* Synchronous Serial Port Controller (SSP) 01 */
  88. #define CONFIG_FTSSP010_01_BASE 0x98B00000
  89. /* IrDA */
  90. #define CONFIG_IRDA_BASE 0x98900000
  91. /* PWM - Pulse Width Modulator Controller */
  92. #define CONFIG_PMW_BASE 0x99100000
  93. #endif /* __AG101_H */