3 * Samsung Electronics : SW.LEE <hitchcar@samsung.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
12 #ifndef __SMDK2440_NAND_H
13 #define __SMDK2440_NAND_H
15 #define CFG_ENV_NAND_BLOCK 8
18 #define NAND_OOB_SIZE (16)
19 #define NAND_PAGES_IN_BLOCK (32)
20 #define NAND_PAGE_SIZE (512)
22 #define NAND_BLOCK_SIZE (NAND_PAGE_SIZE*NAND_PAGES_IN_BLOCK)
23 #define NAND_BLOCK_MASK (NAND_BLOCK_SIZE - 1)
24 #define NAND_PAGE_MASK (NAND_PAGE_SIZE - 1)
26 #define NAND_OOB_SIZE (64)
27 #define NAND_PAGES_IN_BLOCK (64)
28 #define NAND_PAGE_SIZE (2048)
30 #define NAND_BLOCK_SIZE (NAND_PAGE_SIZE*NAND_PAGES_IN_BLOCK)
31 #define NAND_BLOCK_MASK (NAND_BLOCK_SIZE - 1)
32 #define NAND_PAGE_MASK (NAND_PAGE_SIZE - 1)
38 //#define NAND_3_ADDR_CYCLE 1
39 //#define S3C24X0_16BIT_NAND 1
42 #undef S3C24X0_16BIT_NAND
43 #define S3C24X0_16BIT_NAND 1