aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSemun Lee <semun.lee@samsung.com>2008-09-01 06:49:27 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-09-01 06:49:27 -0400
commit4262bd2981307258b31e15f1a526d2b3884e77b5 (patch)
treed5b03787a63bf43bf28f2a4dd54d994c44e57797
parent3fc678a0e63138f56109ea31850f19b2e29c45b8 (diff)
[MTD] [NAND] pxa3xx_nand_flash: Add definition of STM2GbX16 NAND flashes
Signed-off-by: Semun Lee <semun.lee@samsung.com> Acked-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index a64ad15b8fdd..0cd213c8e69f 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -291,10 +291,33 @@ static struct pxa3xx_nand_flash micron1GbX16 = {
291 .chip_id = 0xb12c, 291 .chip_id = 0xb12c,
292}; 292};
293 293
294static struct pxa3xx_nand_timing stm2GbX16_timing = {
295 .tCH = 10,
296 .tCS = 35,
297 .tWH = 15,
298 .tWP = 25,
299 .tRH = 15,
300 .tRP = 25,
301 .tR = 25000,
302 .tWHR = 60,
303 .tAR = 10,
304};
305
306static struct pxa3xx_nand_flash stm2GbX16 = {
307 .timing = &stm2GbX16_timing,
308 .page_per_block = 64,
309 .page_size = 2048,
310 .flash_width = 16,
311 .dfc_width = 16,
312 .num_blocks = 2048,
313 .chip_id = 0xba20,
314};
315
294static struct pxa3xx_nand_flash *builtin_flash_types[] = { 316static struct pxa3xx_nand_flash *builtin_flash_types[] = {
295 &samsung512MbX16, 317 &samsung512MbX16,
296 &micron1GbX8, 318 &micron1GbX8,
297 &micron1GbX16, 319 &micron1GbX16,
320 &stm2GbX16,
298}; 321};
299 322
300#define NDTR0_tCH(c) (min((c), 7) << 19) 323#define NDTR0_tCH(c) (min((c), 7) << 19)