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

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sun Apr 15 10:29:47 CEST 2007


Author: laforge
Date: 2007-04-15 10:29:46 +0200 (Sun, 15 Apr 2007)
New Revision: 1764

Modified:
   trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
Log:
* GTA01Bv4: switch on SD card voltage if sd card is detected at boot time
  (we don't detect sd card insertion/removal at runtime)


Modified: trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch	2007-04-15 07:59:55 UTC (rev 1763)
+++ trunk/src/target/u-boot/patches/uboot-20061030-neo1973.patch	2007-04-15 08:29:46 UTC (rev 1764)
@@ -118,7 +118,7 @@
 ===================================================================
 --- /dev/null
 +++ u-boot/board/neo1973/neo1973.c
-@@ -0,0 +1,363 @@
+@@ -0,0 +1,372 @@
 +/*
 + * (C) 2006 by OpenMoko, Inc.
 + * Author: Harald Welte <laforge at openmoko.org>
@@ -410,6 +410,15 @@
 +	/* switch on the backlight */
 +	neo1973_backlight(1);
 +
++#if defined(CONFIG_ARCH_GTA01B_v4)
++	{
++		/* check if sd card is inserted, and power-up if it is */
++		S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();
++		if (!(gpio->GPFDAT & (1 << 5)))
++			gpio->GPBDAT &= ~(1 << 2);
++	}
++#endif
++
 +	return 0;
 +}
 +





More information about the commitlog mailing list