Added support for the Hynix HY27US08121A 64MB Flash chip.
authorRipduman Sohan <rss39@cl.cam.ac.uk>
Thu, 12 Nov 2009 12:19:03 +0000 (12 12:19 +0000)
committerMichel Pollet <buserror@gmail.com>
Sat, 21 Nov 2009 14:49:54 +0000 (21 14:49 +0000)
Signed-off-by: Michel Pollet <buserror@gmail.com>
cpu/arm920t/s3c24x0/nand_read.c
drivers/mtd/nand/nand_ids.c
include/linux/mtd/nand.h
include/linux/mtd/nand_ids.h

index 753bab5..5b9a9e8 100644 (file)
@@ -192,7 +192,8 @@ int nand_read_ll(unsigned char *buf, unsigned long start_addr, int size)
                *nid = nand_id;
        }       
 
-       if (nand_id == 0xec76) {        /* Samsung K91208 */
+       if (nand_id == 0xec76 || /* Samsung K91208 */
+           nand_id == 0xad76 /*Hynix HY27US08121A*/ ) {        
                nand.page_size = 512;
                nand.block_size = 16 * 1024;
                nand.bad_block_offset = 5;
index 116405c..4006123 100644 (file)
@@ -57,6 +57,7 @@ struct nand_flash_dev nand_flash_ids[] = {
 
        {"NAND 64MiB 1,8V 8-bit",       0x36, 512, 64, 0x4000, 0},
        {"NAND 64MiB 3,3V 8-bit",       0x76, 512, 64, 0x4000, 0},
+       {"NAND 64MiB 3,3V 8-bit",       0xAD, 512, 64, 0x4000, 0},
        {"NAND 64MiB 1,8V 16-bit",      0x46, 512, 64, 0x4000, NAND_BUSWIDTH_16},
        {"NAND 64MiB 3,3V 16-bit",      0x56, 512, 64, 0x4000, NAND_BUSWIDTH_16},
 
@@ -124,6 +125,7 @@ struct nand_manufacturers nand_manuf_ids[] = {
        {NAND_MFR_RENESAS, "Renesas"},
        {NAND_MFR_STMICRO, "ST Micro"},
        {NAND_MFR_MICRON, "Micron"},
+       {NAND_MFR_HYNIX,  "Hynix"},
        {0x0, "Unknown"}
 };
 #endif
index 698ab2b..da4f417 100644 (file)
@@ -350,6 +350,7 @@ struct nand_chip {
 #define NAND_MFR_RENESAS       0x07
 #define NAND_MFR_STMICRO       0x20
 #define NAND_MFR_MICRON                0x2c
+#define NAND_MFR_HYNIX          0xad
 
 /**
  * struct nand_flash_dev - NAND Flash Device ID Structure
index d9eb911..89146e7 100644 (file)
@@ -54,6 +54,7 @@ static struct nand_flash_dev nand_flash_ids[] = {
        {"Samsung K9F5616Q0C",    NAND_MFR_SAMSUNG, 0x45, 25, 0, 2, 0x4000, 1},
        {"Samsung K9K1216Q0C",    NAND_MFR_SAMSUNG, 0x46, 26, 0, 3, 0x4000, 1},
        {"Samsung K9F1G08U0M",    NAND_MFR_SAMSUNG, 0xf1, 27, 0, 2, 0, 0},
+       {"Hynix HY27US08121A",    NAND_MFR_HYNIX,   0x76, 26, 0, 3, 0x4000,0},
        {NULL,}
 };