* [PATCH] pxa3xx_nand: Add Samsung512MbX8
@ 2008-08-19 10:24 Mike Rapoport
2008-08-20 3:22 ` Eric Miao
0 siblings, 1 reply; 2+ messages in thread
From: Mike Rapoport @ 2008-08-19 10:24 UTC (permalink / raw)
To: eric miao; +Cc: linux-mtd, ARM Linux
Add definitions of Samsung512MbX8 flashes
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
drivers/mtd/nand/pxa3xx_nand.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index a64ad15..06e03bf 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -291,10 +291,34 @@ static struct pxa3xx_nand_flash micron1GbX16 = {
.chip_id = 0xb12c,
};
+static struct pxa3xx_nand_timing samsung512MbX8_timing = {
+ .tCH = 25,
+ .tCS = 44,
+ .tWH = 32,
+ .tWP = 44,
+ .tRH = 32,
+ .tRP = 44,
+ .tR = 25000,
+ .tWHR = 96,
+ .tAR = 25,
+};
+
+static struct pxa3xx_nand_flash samsung512MbX8 = {
+ .timing = &samsung512MbX8_timing,
+ .cmdset = &largepage_cmdset,
+ .page_per_block = 64,
+ .page_size = 2048,
+ .flash_width = 8,
+ .dfc_width = 8,
+ .num_blocks = 4096,
+ .chip_id = 0xdcec,
+};
+
static struct pxa3xx_nand_flash *builtin_flash_types[] = {
&samsung512MbX16,
µn1GbX8,
µn1GbX16,
+ &samsung512MbX8,
};
#define NDTR0_tCH(c) (min((c), 7) << 19)
--
Sincerely yours,
Mike.
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-20 3:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 10:24 [PATCH] pxa3xx_nand: Add Samsung512MbX8 Mike Rapoport
2008-08-20 3:22 ` Eric Miao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox