at91cap9.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * [origin: Linux kernel include/asm-arm/arch-at91/at91cap9.h]
  3. *
  4. * Copyright (C) 2007 Stelian Pop <stelian@popies.net>
  5. * Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
  6. * Copyright (C) 2007 Atmel Corporation.
  7. *
  8. * Common definitions.
  9. * Based on AT91CAP9 datasheet revision B (Preliminary).
  10. *
  11. * SPDX-License-Identifier: GPL-2.0+
  12. */
  13. #ifndef AT91CAP9_H
  14. #define AT91CAP9_H
  15. /*
  16. * Peripheral identifiers/interrupts.
  17. */
  18. #define AT91_ID_FIQ 0 /* Advanced Interrupt Controller (FIQ) */
  19. #define AT91_ID_SYS 1 /* System Peripherals */
  20. #define AT91CAP9_ID_PIOABCD 2 /* Parallel IO Controller A, B, C and D */
  21. #define AT91CAP9_ID_MPB0 3 /* MP Block Peripheral 0 */
  22. #define AT91CAP9_ID_MPB1 4 /* MP Block Peripheral 1 */
  23. #define AT91CAP9_ID_MPB2 5 /* MP Block Peripheral 2 */
  24. #define AT91CAP9_ID_MPB3 6 /* MP Block Peripheral 3 */
  25. #define AT91CAP9_ID_MPB4 7 /* MP Block Peripheral 4 */
  26. #define AT91CAP9_ID_US0 8 /* USART 0 */
  27. #define AT91CAP9_ID_US1 9 /* USART 1 */
  28. #define AT91CAP9_ID_US2 10 /* USART 2 */
  29. #define AT91CAP9_ID_MCI0 11 /* Multimedia Card Interface 0 */
  30. #define AT91CAP9_ID_MCI1 12 /* Multimedia Card Interface 1 */
  31. #define AT91CAP9_ID_CAN 13 /* CAN */
  32. #define AT91CAP9_ID_TWI 14 /* Two-Wire Interface */
  33. #define AT91CAP9_ID_SPI0 15 /* Serial Peripheral Interface 0 */
  34. #define AT91CAP9_ID_SPI1 16 /* Serial Peripheral Interface 0 */
  35. #define AT91CAP9_ID_SSC0 17 /* Serial Synchronous Controller 0 */
  36. #define AT91CAP9_ID_SSC1 18 /* Serial Synchronous Controller 1 */
  37. #define AT91CAP9_ID_AC97C 19 /* AC97 Controller */
  38. #define AT91CAP9_ID_TCB 20 /* Timer Counter 0, 1 and 2 */
  39. #define AT91CAP9_ID_PWMC 21 /* Pulse Width Modulation Controller */
  40. #define AT91CAP9_ID_EMAC 22 /* Ethernet */
  41. #define AT91CAP9_ID_AESTDES 23 /* Advanced Encryption Standard, Triple DES */
  42. #define AT91CAP9_ID_ADC 24 /* Analog-to-Digital Converter */
  43. #define AT91CAP9_ID_ISI 25 /* Image Sensor Interface */
  44. #define AT91CAP9_ID_LCDC 26 /* LCD Controller */
  45. #define AT91CAP9_ID_DMA 27 /* DMA Controller */
  46. #define AT91CAP9_ID_UDPHS 28 /* USB High Speed Device Port */
  47. #define AT91CAP9_ID_UHP 29 /* USB Host Port */
  48. #define AT91CAP9_ID_IRQ0 30 /* Advanced Interrupt Controller (IRQ0) */
  49. #define AT91CAP9_ID_IRQ1 31 /* Advanced Interrupt Controller (IRQ1) */
  50. #define AT91_PIO_BASE 0xfffff200
  51. #define AT91_PMC_BASE 0xfffffc00
  52. #define AT91_RSTC_BASE 0xfffffd00
  53. #define AT91_PIT_BASE 0xfffffd30
  54. /*
  55. * Internal Memory.
  56. */
  57. #define AT91CAP9_SRAM_BASE 0x00100000 /* Internal SRAM base address */
  58. #define AT91CAP9_SRAM_SIZE (32 * SZ_1K) /* Internal SRAM size (32Kb) */
  59. #define AT91CAP9_ROM_BASE 0x00400000 /* Internal ROM base address */
  60. #define AT91CAP9_ROM_SIZE (32 * SZ_1K) /* Internal ROM size (32Kb) */
  61. #define AT91CAP9_LCDC_BASE 0x00500000 /* LCD Controller */
  62. #define AT91CAP9_UDPHS_BASE 0x00600000 /* USB High Speed Device Port */
  63. #define AT91CAP9_UHP_BASE 0x00700000 /* USB Host controller */
  64. #define CONFIG_DRAM_BASE AT91_CHIPSELECT_6
  65. /*
  66. * Cpu Name
  67. */
  68. #define CONFIG_SYS_AT91_CPU_NAME "AT91CAP9"
  69. #endif