Stelian Pop | 048bcfb | 2008-03-26 19:52:30 +0100 | [diff] [blame] | 1 | /* |
Stelian Pop | 97904f7 | 2008-05-08 20:52:10 +0200 | [diff] [blame] | 2 | * [origin: Linux kernel include/asm-arm/arch-at91/at91cap9.h] |
Stelian Pop | 048bcfb | 2008-03-26 19:52:30 +0100 | [diff] [blame] | 3 | * |
Stelian Pop | 5ee0c7f | 2011-11-01 00:00:39 +0100 | [diff] [blame] | 4 | * Copyright (C) 2007 Stelian Pop <stelian@popies.net> |
Stelian Pop | 048bcfb | 2008-03-26 19:52:30 +0100 | [diff] [blame] | 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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Stelian Pop | 048bcfb | 2008-03-26 19:52:30 +0100 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef AT91CAP9_H |
| 15 | #define AT91CAP9_H |
| 16 | |
| 17 | /* |
| 18 | * Peripheral identifiers/interrupts. |
| 19 | */ |
| 20 | #define AT91_ID_FIQ 0 /* Advanced Interrupt Controller (FIQ) */ |
| 21 | #define AT91_ID_SYS 1 /* System Peripherals */ |
| 22 | #define AT91CAP9_ID_PIOABCD 2 /* Parallel IO Controller A, B, C and D */ |
| 23 | #define AT91CAP9_ID_MPB0 3 /* MP Block Peripheral 0 */ |
| 24 | #define AT91CAP9_ID_MPB1 4 /* MP Block Peripheral 1 */ |
| 25 | #define AT91CAP9_ID_MPB2 5 /* MP Block Peripheral 2 */ |
| 26 | #define AT91CAP9_ID_MPB3 6 /* MP Block Peripheral 3 */ |
| 27 | #define AT91CAP9_ID_MPB4 7 /* MP Block Peripheral 4 */ |
| 28 | #define AT91CAP9_ID_US0 8 /* USART 0 */ |
| 29 | #define AT91CAP9_ID_US1 9 /* USART 1 */ |
| 30 | #define AT91CAP9_ID_US2 10 /* USART 2 */ |
| 31 | #define AT91CAP9_ID_MCI0 11 /* Multimedia Card Interface 0 */ |
| 32 | #define AT91CAP9_ID_MCI1 12 /* Multimedia Card Interface 1 */ |
| 33 | #define AT91CAP9_ID_CAN 13 /* CAN */ |
| 34 | #define AT91CAP9_ID_TWI 14 /* Two-Wire Interface */ |
| 35 | #define AT91CAP9_ID_SPI0 15 /* Serial Peripheral Interface 0 */ |
| 36 | #define AT91CAP9_ID_SPI1 16 /* Serial Peripheral Interface 0 */ |
| 37 | #define AT91CAP9_ID_SSC0 17 /* Serial Synchronous Controller 0 */ |
| 38 | #define AT91CAP9_ID_SSC1 18 /* Serial Synchronous Controller 1 */ |
| 39 | #define AT91CAP9_ID_AC97C 19 /* AC97 Controller */ |
| 40 | #define AT91CAP9_ID_TCB 20 /* Timer Counter 0, 1 and 2 */ |
| 41 | #define AT91CAP9_ID_PWMC 21 /* Pulse Width Modulation Controller */ |
| 42 | #define AT91CAP9_ID_EMAC 22 /* Ethernet */ |
| 43 | #define AT91CAP9_ID_AESTDES 23 /* Advanced Encryption Standard, Triple DES */ |
| 44 | #define AT91CAP9_ID_ADC 24 /* Analog-to-Digital Converter */ |
| 45 | #define AT91CAP9_ID_ISI 25 /* Image Sensor Interface */ |
| 46 | #define AT91CAP9_ID_LCDC 26 /* LCD Controller */ |
| 47 | #define AT91CAP9_ID_DMA 27 /* DMA Controller */ |
| 48 | #define AT91CAP9_ID_UDPHS 28 /* USB High Speed Device Port */ |
| 49 | #define AT91CAP9_ID_UHP 29 /* USB Host Port */ |
| 50 | #define AT91CAP9_ID_IRQ0 30 /* Advanced Interrupt Controller (IRQ0) */ |
| 51 | #define AT91CAP9_ID_IRQ1 31 /* Advanced Interrupt Controller (IRQ1) */ |
| 52 | |
Jens Scharsig | 698ad06 | 2010-02-03 22:46:01 +0100 | [diff] [blame] | 53 | #define AT91_PIO_BASE 0xfffff200 |
| 54 | #define AT91_PMC_BASE 0xfffffc00 |
| 55 | #define AT91_RSTC_BASE 0xfffffd00 |
| 56 | #define AT91_PIT_BASE 0xfffffd30 |
| 57 | |
Stelian Pop | f548878 | 2008-05-08 14:52:34 +0200 | [diff] [blame] | 58 | /* |
Stelian Pop | 048bcfb | 2008-03-26 19:52:30 +0100 | [diff] [blame] | 59 | * Internal Memory. |
| 60 | */ |
| 61 | #define AT91CAP9_SRAM_BASE 0x00100000 /* Internal SRAM base address */ |
| 62 | #define AT91CAP9_SRAM_SIZE (32 * SZ_1K) /* Internal SRAM size (32Kb) */ |
| 63 | |
| 64 | #define AT91CAP9_ROM_BASE 0x00400000 /* Internal ROM base address */ |
| 65 | #define AT91CAP9_ROM_SIZE (32 * SZ_1K) /* Internal ROM size (32Kb) */ |
| 66 | |
| 67 | #define AT91CAP9_LCDC_BASE 0x00500000 /* LCD Controller */ |
| 68 | #define AT91CAP9_UDPHS_BASE 0x00600000 /* USB High Speed Device Port */ |
| 69 | #define AT91CAP9_UHP_BASE 0x00700000 /* USB Host controller */ |
| 70 | |
| 71 | #define CONFIG_DRAM_BASE AT91_CHIPSELECT_6 |
| 72 | |
Jean-Christophe PLAGNIOL-VILLARD | b21aa66 | 2009-05-31 12:44:46 +0200 | [diff] [blame] | 73 | /* |
| 74 | * Cpu Name |
| 75 | */ |
Achim Ehrlich | 443873d | 2010-02-24 10:29:16 +0100 | [diff] [blame] | 76 | #define CONFIG_SYS_AT91_CPU_NAME "AT91CAP9" |
Jean-Christophe PLAGNIOL-VILLARD | b21aa66 | 2009-05-31 12:44:46 +0200 | [diff] [blame] | 77 | |
Stelian Pop | 048bcfb | 2008-03-26 19:52:30 +0100 | [diff] [blame] | 78 | #endif |