[PATCH] [S3C24xx] GTA01+GTA02: use best NAND timings

Harald Welte laforge at openmoko.org
Tue Oct 21 23:50:41 CEST 2008


Use the best possible NAND timings for the GTA01
and GTA02 devices

Signed-off-by: Harald Welte <laforge at openmoko.org>
---
 board/neo1973/gta01/gta01.c |   11 +++++++++++
 board/neo1973/gta02/gta02.c |   13 +++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/board/neo1973/gta01/gta01.c b/board/neo1973/gta01/gta01.c
index 095f080..06eb790 100644
--- a/board/neo1973/gta01/gta01.c
+++ b/board/neo1973/gta01/gta01.c
@@ -563,3 +563,14 @@ char *dynpart_names[] = {
     "u-boot", "u-boot_env", "kernel", "splash", "rootfs", NULL };
 
 
+/* at 133MHz HCLK, this is 0ns, 30ns and 30ns */
+#define GTA02_NAND_TACLS	0
+#define GTA02_NAND_TWRPH0	4
+#define GTA02_NAND_TWRPH1	4
+
+int board_nand_init(struct nand_chip *nand)
+{
+	return s3c24xx_nand_init(nand, GTA01_NAND_TACLS,
+				 GTA01_NAND_TWRPH0,
+				 GTA01_NAND_TWRPH1);
+}
diff --git a/board/neo1973/gta02/gta02.c b/board/neo1973/gta02/gta02.c
index a59a513..80caec4 100644
--- a/board/neo1973/gta02/gta02.c
+++ b/board/neo1973/gta02/gta02.c
@@ -34,6 +34,7 @@
 #include <s3c2440.h>
 #include <i2c.h>
 #include <bootmenu.h>
+#include <nand.h>
 #include <asm/atomic.h>
 
 #include "../common/neo1973.h"
@@ -864,3 +865,15 @@ int gta02_get_pcb_revision(void)
 
 	return n;
 }
+
+/* at 100MHz HCLK, this is 0ns, 30ns and 20ns */
+#define GTA02_NAND_TACLS	0
+#define GTA02_NAND_TWRPH0	3
+#define GTA02_NAND_TWRPH1	2
+
+int board_nand_init(struct nand_chip *nand)
+{
+	return s3c24xx_nand_init(nand, GTA02_NAND_TACLS,
+				 GTA02_NAND_TWRPH0,
+				 GTA02_NAND_TWRPH1);
+}
-- 
1.5.6.5


--yNb1oOkm5a9FJOVX--



More information about the openmoko-kernel mailing list