MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-atmel / at91x40.h
blob0e94bd83629e6f37607ea088198d4ab60be21c42
1 /*
2 ******************* AT91x40xxx ********************
3 */
5 #define ARM_CLK CONFIG_ARM_CLK
7 #define AT91_USART_CNT 2
8 #define AT91_USART0_BASE (0xfffd0000)
9 #define AT91_USART1_BASE (0xfffcc000)
10 #define AT91_TC_BASE (0xfffe0000)
11 #define AIC_BASE (0xfffff000)
12 #define AT91_PIOA_BASE (0xffff0000)
13 #define AT91_SF_CIDR (0xfff00000)
15 #define HARD_RESET_NOW()
17 #define HW_AT91_TIMER_INIT(timer) /* no PMC */
19 /* use TC0 as hardware timer to create high resolution timestamps for debugging.
20 * Timer 0 must be set up as a free running counter, e.g. in the bootloader
22 #define HW_COUNTER (((struct at91_timers *)AT91_TC_BASE)->chans[0].ch.cv)
24 /* enable US0,US1 */
25 #define HW_AT91_USART_INIT ((volatile struct pio_regs *)AT91_PIOA_BASE)->pdr = \
26 PIOA_RXD0|PIOA_TXD0|PIOA_RXD1|PIOA_TXD1;
27 /* PIOA bit allocation */
28 #define PIOA_TCLK0 (1<<0)
29 #define PIOA_TI0A0 (1<<1)
30 #define PIOA_TI0B0 (1<<2)
31 #define PIOA_TCLK1 (1<<3)
32 #define PIOA_TIOA1 (1<<4)
33 #define PIOA_TIOB1 (1<<5)
34 #define PIOA_TCLK2 (1<<6)
35 #define PIOA_TIOA2 (1<<7)
36 #define PIOA_TIOB2 (1<<8)
37 #define PIOA_IRQ0 (1<<9)
38 #define PIOA_IRQ1 (1<<10)
39 #define PIOA_IRQ2 (1<<11)
40 #define PIOA_FIQ (1<<12)
41 #define PIOA_SCK0 (1<<13)
42 #define PIOA_TXD0 (1<<14)
43 #define PIOA_RXD0 (1<<15)
45 #define PIOA_SCK1 (1<<20)
46 #define PIOA_TXD1 (1<<21)
47 #define PIOA_RXD1 (1<<22)
49 #define PIOA_MCK0 (1<<25)
50 #define PIOA_NCS2 (1<<26)
51 #define PIOA_NCS3 (1<<27)
53 #define PIOA_A20_CS7 (1<<28)
54 #define PIOA_A21_CS6 (1<<29)
55 #define PIOA_A22_CS5 (1<<30)
56 #define PIOA_A23_CS4 (1<<31)