blob: d9405fd287591634d24d52b339cd2ec55da2ec0e [file] [log] [blame]
Alessandro Rubinief339cc2009-02-09 15:53:31 +01001/* Collection of constants used to access Nomadik registers */
2
3#ifndef __NOMADIK_H__
4#define __NOMADIK_H__
5
6/* Base addresses of our peripherals */
7#define NOMADIK_SRC_BASE 0x101E0000 /* System and Reset Cnt */
8#define NOMADIK_PMU_BASE 0x101E9000 /* Power Management Unit */
9#define NOMADIK_MPMC_BASE 0x10110000 /* SDRAM Controller */
10#define NOMADIK_FSMC_BASE 0x10100000 /* FSMC Controller */
11#define NOMADIK_1NAND_BASE 0x30000000
12#define NOMADIK_GPIO0_BASE 0x101E4000
13#define NOMADIK_GPIO1_BASE 0x101E5000
14#define NOMADIK_GPIO2_BASE 0x101E6000
15#define NOMADIK_GPIO3_BASE 0x101E7000
16#define NOMADIK_CPLD_BASE 0x36000000
17#define NOMADIK_UART0_BASE 0x101FD000
18#define NOMADIK_UART1_BASE 0x101FB000
19#define NOMADIK_UART2_BASE 0x101F2000
20
21#define NOMADIK_I2C1_BASE 0x101F7000 /* I2C1 interface */
22#define NOMADIK_I2C0_BASE 0x101F8000 /* I2C0 interface */
23
24#define NOMADIK_RTC_BASE 0x101E8000
25#define NOMADIK_ETH0_BASE 0x36800300
26#define NOMADIK_CPLD_UART_BASE 0x36480000
27
28/* Chip select registers ("Flexible Static Memory Controller") */
29
30#define REG_FSMC_BCR0 (NOMADIK_FSMC_BASE + 0x00)
31#define REG_FSMC_BTR0 (NOMADIK_FSMC_BASE + 0x04)
32#define REG_FSMC_BCR1 (NOMADIK_FSMC_BASE + 0x08)
33#define REG_FSMC_BTR1 (NOMADIK_FSMC_BASE + 0x0c)
34#define REG_FSMC_PCR0 (NOMADIK_FSMC_BASE + 0x40)
35#define REG_FSMC_PMEM0 (NOMADIK_FSMC_BASE + 0x48)
36#define REG_FSMC_PATT0 (NOMADIK_FSMC_BASE + 0x4c)
37#define REG_FSMC_ECCR0 (NOMADIK_FSMC_BASE + 0x54)
38
39#endif /* __NOMADIK_H__ */