From: Ripduman Sohan Date: Thu, 12 Nov 2009 12:19:03 +0000 (+0000) Subject: Added support for the Hynix HY27US08121A 64MB Flash chip. X-Git-Url: https://repo.or.cz/w/u-boot-openmoko/mini2440.git/commitdiff_plain/a60d53ff7efaf7ee2411b8fc288e7bb6aacf7196 Added support for the Hynix HY27US08121A 64MB Flash chip. Signed-off-by: Michel Pollet --- diff --git a/cpu/arm920t/s3c24x0/nand_read.c b/cpu/arm920t/s3c24x0/nand_read.c index 753bab5d..5b9a9e82 100644 --- a/cpu/arm920t/s3c24x0/nand_read.c +++ b/cpu/arm920t/s3c24x0/nand_read.c @@ -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; diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 116405c6..40061232 100644 --- a/drivers/mtd/nand/nand_ids.c +++ b/drivers/mtd/nand/nand_ids.c @@ -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 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 698ab2b8..da4f417f 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -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 diff --git a/include/linux/mtd/nand_ids.h b/include/linux/mtd/nand_ids.h index d9eb9118..89146e7c 100644 --- a/include/linux/mtd/nand_ids.h +++ b/include/linux/mtd/nand_ids.h @@ -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,} };