aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1312-GTA02-Improve-NAND-timings.patch
blob: 67f867fcae0eb50a38b0d860181c5cf2ecb4c4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From e144bf41b8674bce731e1afebcd04030a85b4a5b Mon Sep 17 00:00:00 2001
From: Harald Welte <laforge@openmoko.org>
Date: Tue, 21 Oct 2008 08:13:09 +0100
Subject: [PATCH] GTA02: Improve NAND timings

Rather than using conservative default timings for the NAND flash,
use the timings as specified in the S3C2442B MCP data sheet.

Signed-off-by: Harald Welte <laforge@openmoko.org>
---
 arch/arm/mach-s3c2440/mach-gta02.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 1a9d823..b1aa95b 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -872,14 +872,14 @@ static struct s3c2410_nand_set gta02_nand_sets[] = {
 	},
 };
 
-/* choose a set of timings which should suit most 512Mbit
- * chips and beyond.
+/* choose a set of timings derived from S3C@2442B MCP54 
+ * data sheet (K5D2G13ACM-D075 MCP Memory)
  */
 
 static struct s3c2410_platform_nand gta02_nand_info = {
-	.tacls		= 20,
-	.twrph0		= 60,
-	.twrph1		= 20,
+	.tacls		= 0,
+	.twrph0		= 25,
+	.twrph1		= 15,
 	.nr_sets	= ARRAY_SIZE(gta02_nand_sets),
 	.sets		= gta02_nand_sets,
 	.software_ecc	= 1,
-- 
1.5.6.5