arm: add Nomadik 8815 SoC support
[barebox-mini2440.git] / arch / arm / mach-nomadik / include / mach / fsmc.h
blobe010c7215ca7dfa08c3cc3e9a2da6970b00f93c3
1 /* Definitions for the Nomadik FSMC "Flexible Static Memory controller" */
3 #ifndef __ASM_ARCH_FSMC_H
4 #define __ASM_ARCH_FSMC_H
6 #include <mach/hardware.h>
7 /*
8 * Register list
9 */
11 /* bus control reg. and bus timing reg. for CS0..CS3 */
12 #define FSMC_BCR(x) (NOMADIK_FSMC_VA + (x << 3))
13 #define FSMC_BTR(x) (NOMADIK_FSMC_VA + (x << 3) + 0x04)
15 /* PC-card and NAND:
16 * PCR = control register
17 * PMEM = memory timing
18 * PATT = attribute timing
19 * PIO = I/O timing
20 * PECCR = ECC result
22 #define FSMC_PCR(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x00)
23 #define FSMC_PMEM(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x08)
24 #define FSMC_PATT(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x0c)
25 #define FSMC_PIO(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x10)
26 #define FSMC_PECCR(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x14)
28 #endif /* __ASM_ARCH_FSMC_H */