public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Mike Rapoport <mike@compulab.co.il>
To: eric miao <eric.y.miao@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>,
	ARM Linux <linux-arm-kernel@lists.arm.linux.org.uk>
Subject: [PATCH] pxa3xx_nand: Add Samsung512MbX8
Date: Tue, 19 Aug 2008 13:24:04 +0300	[thread overview]
Message-ID: <48AA9F44.6000905@compulab.co.il> (raw)

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,
 	&micron1GbX8,
 	&micron1GbX16,
+	&samsung512MbX8,
 };

 #define NDTR0_tCH(c)	(min((c), 7) << 19)


-- 
Sincerely yours,
Mike.

             reply	other threads:[~2008-08-19 10:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 10:24 Mike Rapoport [this message]
2008-08-20  3:22 ` [PATCH] pxa3xx_nand: Add Samsung512MbX8 Eric Miao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AA9F44.6000905@compulab.co.il \
    --to=mike@compulab.co.il \
    --cc=eric.y.miao@gmail.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox