diff options
Diffstat (limited to 'include/asm-arm/arch-s3c2410/regs-nand.h')
| -rw-r--r-- | include/asm-arm/arch-s3c2410/regs-nand.h | 52 |
1 files changed, 47 insertions, 5 deletions
diff --git a/include/asm-arm/arch-s3c2410/regs-nand.h b/include/asm-arm/arch-s3c2410/regs-nand.h index 7cff235e667a..b824d371ae0b 100644 --- a/include/asm-arm/arch-s3c2410/regs-nand.h +++ b/include/asm-arm/arch-s3c2410/regs-nand.h | |||
| @@ -8,10 +8,6 @@ | |||
| 8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
| 9 | * | 9 | * |
| 10 | * S3C2410 NAND register definitions | 10 | * S3C2410 NAND register definitions |
| 11 | * | ||
| 12 | * Changelog: | ||
| 13 | * 18-Aug-2004 BJD Copied file from 2.4 and updated | ||
| 14 | * 01-May-2005 BJD Added definitions for s3c2440 controller | ||
| 15 | */ | 11 | */ |
| 16 | 12 | ||
| 17 | #ifndef __ASM_ARM_REGS_NAND | 13 | #ifndef __ASM_ARM_REGS_NAND |
| @@ -39,10 +35,19 @@ | |||
| 39 | #define S3C2440_NFESTAT1 S3C2410_NFREG(0x28) | 35 | #define S3C2440_NFESTAT1 S3C2410_NFREG(0x28) |
| 40 | #define S3C2440_NFMECC0 S3C2410_NFREG(0x2C) | 36 | #define S3C2440_NFMECC0 S3C2410_NFREG(0x2C) |
| 41 | #define S3C2440_NFMECC1 S3C2410_NFREG(0x30) | 37 | #define S3C2440_NFMECC1 S3C2410_NFREG(0x30) |
| 42 | #define S3C2440_NFSECC S3C2410_NFREG(0x34) | 38 | #define S3C2440_NFSECC S3C24E10_NFREG(0x34) |
| 43 | #define S3C2440_NFSBLK S3C2410_NFREG(0x38) | 39 | #define S3C2440_NFSBLK S3C2410_NFREG(0x38) |
| 44 | #define S3C2440_NFEBLK S3C2410_NFREG(0x3C) | 40 | #define S3C2440_NFEBLK S3C2410_NFREG(0x3C) |
| 45 | 41 | ||
| 42 | #define S3C2412_NFSBLK S3C2410_NFREG(0x20) | ||
| 43 | #define S3C2412_NFEBLK S3C2410_NFREG(0x24) | ||
| 44 | #define S3C2412_NFSTAT S3C2410_NFREG(0x28) | ||
| 45 | #define S3C2412_NFMECC_ERR0 S3C2410_NFREG(0x2C) | ||
| 46 | #define S3C2412_NFMECC_ERR1 S3C2410_NFREG(0x30) | ||
| 47 | #define S3C2412_NFMECC0 S3C2410_NFREG(0x34) | ||
| 48 | #define S3C2412_NFMECC1 S3C2410_NFREG(0x38) | ||
| 49 | #define S3C2412_NFSECC S3C2410_NFREG(0x3C) | ||
| 50 | |||
| 46 | #define S3C2410_NFCONF_EN (1<<15) | 51 | #define S3C2410_NFCONF_EN (1<<15) |
| 47 | #define S3C2410_NFCONF_512BYTE (1<<14) | 52 | #define S3C2410_NFCONF_512BYTE (1<<14) |
| 48 | #define S3C2410_NFCONF_4STEP (1<<13) | 53 | #define S3C2410_NFCONF_4STEP (1<<13) |
| @@ -77,5 +82,42 @@ | |||
| 77 | #define S3C2440_NFSTAT_RnB_CHANGE (1<<2) | 82 | #define S3C2440_NFSTAT_RnB_CHANGE (1<<2) |
| 78 | #define S3C2440_NFSTAT_ILLEGAL_ACCESS (1<<3) | 83 | #define S3C2440_NFSTAT_ILLEGAL_ACCESS (1<<3) |
| 79 | 84 | ||
| 85 | #define S3C2412_NFCONF_NANDBOOT (1<<31) | ||
| 86 | #define S3C2412_NFCONF_ECCCLKCON (1<<30) | ||
| 87 | #define S3C2412_NFCONF_ECC_MLC (1<<24) | ||
| 88 | #define S3C2412_NFCONF_TACLS_MASK (7<<12) /* 1 extra bit of Tacls */ | ||
| 89 | |||
| 90 | #define S3C2412_NFCONT_ECC4_DIRWR (1<<18) | ||
| 91 | #define S3C2412_NFCONT_LOCKTIGHT (1<<17) | ||
| 92 | #define S3C2412_NFCONT_SOFTLOCK (1<<16) | ||
| 93 | #define S3C2412_NFCONT_ECC4_ENCINT (1<<13) | ||
| 94 | #define S3C2412_NFCONT_ECC4_DECINT (1<<12) | ||
| 95 | #define S3C2412_NFCONT_MAIN_ECC_LOCK (1<<7) | ||
| 96 | #define S3C2412_NFCONT_INIT_MAIN_ECC (1<<5) | ||
| 97 | #define S3C2412_NFCONT_nFCE1 (1<<2) | ||
| 98 | #define S3C2412_NFCONT_nFCE0 (1<<1) | ||
| 99 | |||
| 100 | #define S3C2412_NFSTAT_ECC_ENCDONE (1<<7) | ||
| 101 | #define S3C2412_NFSTAT_ECC_DECDONE (1<<6) | ||
| 102 | #define S3C2412_NFSTAT_ILLEGAL_ACCESS (1<<5) | ||
| 103 | #define S3C2412_NFSTAT_RnB_CHANGE (1<<4) | ||
| 104 | #define S3C2412_NFSTAT_nFCE1 (1<<3) | ||
| 105 | #define S3C2412_NFSTAT_nFCE0 (1<<2) | ||
| 106 | #define S3C2412_NFSTAT_Res1 (1<<1) | ||
| 107 | #define S3C2412_NFSTAT_READY (1<<0) | ||
| 108 | |||
| 109 | #define S3C2412_NFECCERR_SERRDATA(x) (((x) >> 21) & 0xf) | ||
| 110 | #define S3C2412_NFECCERR_SERRBIT(x) (((x) >> 18) & 0x7) | ||
| 111 | #define S3C2412_NFECCERR_MERRDATA(x) (((x) >> 7) & 0x3ff) | ||
| 112 | #define S3C2412_NFECCERR_MERRBIT(x) (((x) >> 4) & 0x7) | ||
| 113 | #define S3C2412_NFECCERR_SPARE_ERR(x) (((x) >> 2) & 0x3) | ||
| 114 | #define S3C2412_NFECCERR_MAIN_ERR(x) (((x) >> 2) & 0x3) | ||
| 115 | #define S3C2412_NFECCERR_NONE (0) | ||
| 116 | #define S3C2412_NFECCERR_1BIT (1) | ||
| 117 | #define S3C2412_NFECCERR_MULTIBIT (2) | ||
| 118 | #define S3C2412_NFECCERR_ECCAREA (3) | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 80 | #endif /* __ASM_ARM_REGS_NAND */ | 122 | #endif /* __ASM_ARM_REGS_NAND */ |
| 81 | 123 | ||
