[Balloon-svn] r477 - balloon/trunk/bootldr

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: subversion@balloonboard.org
Date:  
To: balloon-svn
Subject: [Balloon-svn] r477 - balloon/trunk/bootldr
Author: nick
Date: 2008-05-02 12:52:38 +0100 (Fri, 02 May 2008)
New Revision: 477

Modified:
balloon/trunk/bootldr/balloon.c
Log:
fix gpio#01 being set to an output for balloon3. Its the unsuspend input

Modified: balloon/trunk/bootldr/balloon.c
===================================================================
--- balloon/trunk/bootldr/balloon.c    2008-05-01 12:54:09 UTC (rev 476)
+++ balloon/trunk/bootldr/balloon.c    2008-05-02 11:52:38 UTC (rev 477)
@@ -80,10 +80,13 @@
*((unsigned char *)VGENERAL_ADDRESS)=(1<<run232) | (1<<qmute) | (1<<amp_shutdown);
#endif

+// balloon3 uses gpio01 as the unsuspend input so we must not set it as an output
+#ifndef CONFIG_PXA
/* recall that for GPIOs 1 is output and 0 is input. */
/* drive nand alive line active */
GPIO_GPDR_WRITE(GPIO_GPDR_READ() | (1<<nand_power));    
GPIO_GPCR_WRITE(1<<nand_power);
+#endif

#if 0
/* set nand power active, all the rest inactive */