r1910 - trunk/src/target/u-boot/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sat May 5 04:58:23 CEST 2007


Author: laforge
Date: 2007-05-05 04:58:20 +0200 (Sat, 05 May 2007)
New Revision: 1910

Modified:
   trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
Log:
* make LCM SPI timings slower (200uS clock cycle rather 150uS, 90mS Top instead of 50mS) to work around bad timing info in data sheet


Modified: trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch	2007-05-04 10:03:00 UTC (rev 1909)
+++ trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch	2007-05-05 02:58:20 UTC (rev 1910)
@@ -8,7 +8,7 @@
 ===================================================================
 --- u-boot.orig/Makefile
 +++ u-boot/Makefile
-@@ -1984,6 +1984,14 @@
+@@ -1988,6 +1988,14 @@
  sbc2410x_config: unconfig
  	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
  
@@ -1355,7 +1355,7 @@
 ===================================================================
 --- /dev/null
 +++ u-boot/board/neo1973/jbt6k74.c
-@@ -0,0 +1,405 @@
+@@ -0,0 +1,406 @@
 +/* u-boot driver for the tpo JBT6K74-AS LCM ASIC
 + *
 + * Copyright (C) 2006-2007 by OpenMoko, Inc.
@@ -1470,7 +1470,7 @@
 +
 +/* 150uS minimum clock cycle, we have two of this plus our other
 + * instructions */
-+#define SPI_DELAY	udelay(75)
++#define SPI_DELAY	udelay(100)	/* 200uS */
 +
 +
 +#define JBT_TX_BUF_SIZE
@@ -1756,8 +1756,9 @@
 +	/* get LCM out of reset */
 +	gpio->GPCDAT |= (1 << 6);
 +
-+	/* wait 50ms (Tpos of LCM) */
-+	udelay(50000);
++	/* according to data sheet: wait 50ms (Tpos of LCM). However, 50ms
++	 * seems unreliable with later LCM batches, increasing to 90ms */
++	udelay(90000);
 +
 +	return 0;
 +}





More information about the commitlog mailing list