memory-map.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * Copyright (C) 2005-2006 Atmel Corporation
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #ifndef __AT32AP7000_MEMORY_MAP_H__
  23. #define __AT32AP7000_MEMORY_MAP_H__
  24. /* Internal and external memories */
  25. #define EBI_SRAM_CS0_BASE 0x00000000
  26. #define EBI_SRAM_CS0_SIZE 0x04000000
  27. #define EBI_SRAM_CS4_BASE 0x04000000
  28. #define EBI_SRAM_CS4_SIZE 0x04000000
  29. #define EBI_SRAM_CS2_BASE 0x08000000
  30. #define EBI_SRAM_CS2_SIZE 0x04000000
  31. #define EBI_SRAM_CS3_BASE 0x0c000000
  32. #define EBI_SRAM_CS3_SIZE 0x04000000
  33. #define EBI_SRAM_CS1_BASE 0x10000000
  34. #define EBI_SRAM_CS1_SIZE 0x10000000
  35. #define EBI_SRAM_CS5_BASE 0x20000000
  36. #define EBI_SRAM_CS5_SIZE 0x04000000
  37. #define EBI_SDRAM_BASE EBI_SRAM_CS1_BASE
  38. #define EBI_SDRAM_SIZE EBI_SRAM_CS1_SIZE
  39. #define INTERNAL_SRAM_BASE 0x24000000
  40. #define INTERNAL_SRAM_SIZE 0x00008000
  41. /* Devices on the High Speed Bus (HSB) */
  42. #define LCDC_BASE 0xFF000000
  43. #define DMAC_BASE 0xFF200000
  44. #define USB_FIFO 0xFF300000
  45. /* Devices on Peripheral Bus A (PBA) */
  46. #define SPI0_BASE 0xFFE00000
  47. #define SPI1_BASE 0xFFE00400
  48. #define TWI_BASE 0xFFE00800
  49. #define USART0_BASE 0xFFE00C00
  50. #define USART1_BASE 0xFFE01000
  51. #define USART2_BASE 0xFFE01400
  52. #define USART3_BASE 0xFFE01800
  53. #define SSC0_BASE 0xFFE01C00
  54. #define SSC1_BASE 0xFFE02000
  55. #define SSC2_BASE 0xFFE02400
  56. #define PIOA_BASE 0xFFE02800
  57. #define PIOB_BASE 0xFFE02C00
  58. #define PIOC_BASE 0xFFE03000
  59. #define PIOD_BASE 0xFFE03400
  60. #define PIOE_BASE 0xFFE03800
  61. #define PSIF_BASE 0xFFE03C00
  62. /* Devices on Peripheral Bus B (PBB) */
  63. #define SM_BASE 0xFFF00000
  64. #define INTC_BASE 0xFFF00400
  65. #define HMATRIX_BASE 0xFFF00800
  66. #define TIMER0_BASE 0xFFF00C00
  67. #define TIMER1_BASE 0xFFF01000
  68. #define PWM_BASE 0xFFF01400
  69. #define MACB0_BASE 0xFFF01800
  70. #define MACB1_BASE 0xFFF01C00
  71. #define DAC_BASE 0xFFF02000
  72. #define MMCI_BASE 0xFFF02400
  73. #define AUDIOC_BASE 0xFFF02800
  74. #define HISI_BASE 0xFFF02C00
  75. #define USB_BASE 0xFFF03000
  76. #define HSMC_BASE 0xFFF03400
  77. #define HSDRAMC_BASE 0xFFF03800
  78. #define ECC_BASE 0xFFF03C00
  79. #endif /* __AT32AP7000_MEMORY_MAP_H__ */