at91sam9n12.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * SoC specific header file for the AT91SAM9N12
  3. *
  4. * Copyright (C) 2012 Atmel Corporation
  5. *
  6. * Common definitions, based on AT91SAM9N12 SoC datasheet
  7. *
  8. * Licensed under GPLv2 or later
  9. */
  10. #ifndef _AT91SAM9N12_H_
  11. #define _AT91SAM9N12_H_
  12. /*
  13. * Peripheral identifiers/interrupts.
  14. */
  15. #define AT91SAM9N12_ID_PIOAB 2 /* Parallel I/O Controller A and B */
  16. #define AT91SAM9N12_ID_PIOCD 3 /* Parallel I/O Controller C and D */
  17. #define AT91SAM9N12_ID_FUSE 4 /* FUSE Controller */
  18. #define AT91SAM9N12_ID_USART0 5 /* USART 0 */
  19. #define AT91SAM9N12_ID_USART1 6 /* USART 1 */
  20. #define AT91SAM9N12_ID_USART2 7 /* USART 2 */
  21. #define AT91SAM9N12_ID_USART3 8 /* USART 3 */
  22. #define AT91SAM9N12_ID_TWI0 9 /* Two-Wire Interface 0 */
  23. #define AT91SAM9N12_ID_TWI1 10 /* Two-Wire Interface 1 */
  24. #define AT91SAM9N12_ID_MCI 12 /* High Speed Multimedia Card Interface */
  25. #define AT91SAM9N12_ID_SPI0 13 /* Serial Peripheral Interface 0 */
  26. #define AT91SAM9N12_ID_SPI1 14 /* Serial Peripheral Interface 1 */
  27. #define AT91SAM9N12_ID_UART0 15 /* UART 0 */
  28. #define AT91SAM9N12_ID_UART1 16 /* UART 1 */
  29. #define AT91SAM9N12_ID_TCB 17 /* Timer Counter 0, 1, 2, 3, 4 and 5 */
  30. #define AT91SAM9N12_ID_PWM 18 /* Pulse Width Modulation Controller */
  31. #define AT91SAM9N12_ID_ADC 19 /* ADC Controller */
  32. #define AT91SAM9N12_ID_DMA 20 /* DMA Controller */
  33. #define AT91SAM9N12_ID_UHP 22 /* USB Host High Speed */
  34. #define AT91SAM9N12_ID_UDP 23 /* USB Device High Speed */
  35. #define AT91SAM9N12_ID_LCDC 25 /* LCD Controller */
  36. #define AT91SAM9N12_ID_ISI 25 /* Image Sensor Interface */
  37. #define AT91SAM9N12_ID_SSC 28 /* Synchronous Serial Controller */
  38. #define AT91SAM9N12_ID_TRNG 30 /* TRNG */
  39. #define AT91SAM9N12_ID_IRQ0 31 /* Advanced Interrupt Controller */
  40. /*
  41. * User Peripheral physical base addresses.
  42. */
  43. #define AT91SAM9N12_BASE_USART0 0xf801c000
  44. #define AT91SAM9N12_BASE_USART1 0xf8020000
  45. #define AT91SAM9N12_BASE_USART2 0xf8024000
  46. #define AT91SAM9N12_BASE_USART3 0xf8028000
  47. /*
  48. * Internal Memory.
  49. */
  50. #define AT91SAM9N12_SRAM_BASE 0x00300000 /* Internal SRAM base address */
  51. #define AT91SAM9N12_SRAM_SIZE SZ_32K /* Internal SRAM size (32Kb) */
  52. #define AT91SAM9N12_ROM_BASE 0x00100000 /* Internal ROM base address */
  53. #define AT91SAM9N12_ROM_SIZE SZ_128K /* Internal ROM size (128Kb) */
  54. #endif