at91sam9x5.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Chip-specific header file for the AT91SAM9x5 family
  3. *
  4. * Copyright (C) 2009-2012 Atmel Corporation.
  5. *
  6. * Common definitions.
  7. * Based on AT91SAM9x5 datasheet.
  8. *
  9. * Licensed under GPLv2 or later.
  10. */
  11. #ifndef AT91SAM9X5_H
  12. #define AT91SAM9X5_H
  13. /*
  14. * Peripheral identifiers/interrupts.
  15. */
  16. #define AT91SAM9X5_ID_PIOAB 2 /* Parallel I/O Controller A and B */
  17. #define AT91SAM9X5_ID_PIOCD 3 /* Parallel I/O Controller C and D */
  18. #define AT91SAM9X5_ID_SMD 4 /* SMD Soft Modem (SMD) */
  19. #define AT91SAM9X5_ID_USART0 5 /* USART 0 */
  20. #define AT91SAM9X5_ID_USART1 6 /* USART 1 */
  21. #define AT91SAM9X5_ID_USART2 7 /* USART 2 */
  22. #define AT91SAM9X5_ID_USART3 8 /* USART 3 */
  23. #define AT91SAM9X5_ID_TWI0 9 /* Two-Wire Interface 0 */
  24. #define AT91SAM9X5_ID_TWI1 10 /* Two-Wire Interface 1 */
  25. #define AT91SAM9X5_ID_TWI2 11 /* Two-Wire Interface 2 */
  26. #define AT91SAM9X5_ID_MCI0 12 /* High Speed Multimedia Card Interface 0 */
  27. #define AT91SAM9X5_ID_SPI0 13 /* Serial Peripheral Interface 0 */
  28. #define AT91SAM9X5_ID_SPI1 14 /* Serial Peripheral Interface 1 */
  29. #define AT91SAM9X5_ID_UART0 15 /* UART 0 */
  30. #define AT91SAM9X5_ID_UART1 16 /* UART 1 */
  31. #define AT91SAM9X5_ID_TCB 17 /* Timer Counter 0, 1, 2, 3, 4 and 5 */
  32. #define AT91SAM9X5_ID_PWM 18 /* Pulse Width Modulation Controller */
  33. #define AT91SAM9X5_ID_ADC 19 /* ADC Controller */
  34. #define AT91SAM9X5_ID_DMA0 20 /* DMA Controller 0 */
  35. #define AT91SAM9X5_ID_DMA1 21 /* DMA Controller 1 */
  36. #define AT91SAM9X5_ID_UHPHS 22 /* USB Host High Speed */
  37. #define AT91SAM9X5_ID_UDPHS 23 /* USB Device High Speed */
  38. #define AT91SAM9X5_ID_EMAC0 24 /* Ethernet MAC0 */
  39. #define AT91SAM9X5_ID_LCDC 25 /* LCD Controller */
  40. #define AT91SAM9X5_ID_ISI 25 /* Image Sensor Interface */
  41. #define AT91SAM9X5_ID_MCI1 26 /* High Speed Multimedia Card Interface 1 */
  42. #define AT91SAM9X5_ID_EMAC1 27 /* Ethernet MAC1 */
  43. #define AT91SAM9X5_ID_SSC 28 /* Synchronous Serial Controller */
  44. #define AT91SAM9X5_ID_CAN0 29 /* CAN Controller 0 */
  45. #define AT91SAM9X5_ID_CAN1 30 /* CAN Controller 1 */
  46. #define AT91SAM9X5_ID_IRQ0 31 /* Advanced Interrupt Controller */
  47. /*
  48. * User Peripheral physical base addresses.
  49. */
  50. #define AT91SAM9X5_BASE_USART0 0xf801c000
  51. #define AT91SAM9X5_BASE_USART1 0xf8020000
  52. #define AT91SAM9X5_BASE_USART2 0xf8024000
  53. /*
  54. * Base addresses for early serial code (uncompress.h)
  55. */
  56. #define AT91_DBGU AT91_BASE_DBGU0
  57. #define AT91_USART0 AT91SAM9X5_BASE_USART0
  58. #define AT91_USART1 AT91SAM9X5_BASE_USART1
  59. #define AT91_USART2 AT91SAM9X5_BASE_USART2
  60. /*
  61. * Internal Memory.
  62. */
  63. #define AT91SAM9X5_SRAM_BASE 0x00300000 /* Internal SRAM base address */
  64. #define AT91SAM9X5_SRAM_SIZE SZ_32K /* Internal SRAM size (32Kb) */
  65. #define AT91SAM9X5_ROM_BASE 0x00400000 /* Internal ROM base address */
  66. #define AT91SAM9X5_ROM_SIZE SZ_64K /* Internal ROM size (64Kb) */
  67. #endif