Send commitlog mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r2827 - trunk/src/target/OM-2007/artwork/sounds
([EMAIL PROTECTED])
2. r2828 - trunk/src/target/OM-2007.2/artwork/sounds
([EMAIL PROTECTED])
3. r2829 - in developers/werner: . usbreset
([EMAIL PROTECTED])
4. r2830 - trunk/src/target/u-boot/patches
([EMAIL PROTECTED])
--- Begin Message ---
Author: wansti
Date: 2007-08-24 13:45:22 +0200 (Fri, 24 Aug 2007)
New Revision: 2827
Added:
trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.mp3
trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.ogg
trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.wav
Log:
An unintrusive startup sound (for all you developers who have to reboot a lot
:-))
Added: trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.mp3
===================================================================
(Binary files differ)
Property changes on:
trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.mp3
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.ogg
===================================================================
(Binary files differ)
Property changes on:
trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.ogg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.wav
===================================================================
(Binary files differ)
Property changes on:
trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.wav
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
--- End Message ---
--- Begin Message ---
Author: stefan
Date: 2007-08-24 14:00:08 +0200 (Fri, 24 Aug 2007)
New Revision: 2828
Added:
trunk/src/target/OM-2007.2/artwork/sounds/UnintrusiveStartup.mp3
trunk/src/target/OM-2007.2/artwork/sounds/UnintrusiveStartup.ogg
trunk/src/target/OM-2007.2/artwork/sounds/UnintrusiveStartup.wav
Log:
* Copy new sound files over to OM2007.2 as wansti has not access to it yet.
Copied: trunk/src/target/OM-2007.2/artwork/sounds/UnintrusiveStartup.mp3 (from
rev 2827, trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.mp3)
Copied: trunk/src/target/OM-2007.2/artwork/sounds/UnintrusiveStartup.ogg (from
rev 2827, trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.ogg)
Copied: trunk/src/target/OM-2007.2/artwork/sounds/UnintrusiveStartup.wav (from
rev 2827, trunk/src/target/OM-2007/artwork/sounds/UnintrusiveStartup.wav)
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2007-08-24 15:40:46 +0200 (Fri, 24 Aug 2007)
New Revision: 2829
Added:
developers/werner/usbreset/
developers/werner/usbreset/Makefile
developers/werner/usbreset/usbreset.c
Log:
Quick and dirty "reset all USB devices" hack.
Added: developers/werner/usbreset/Makefile
===================================================================
--- developers/werner/usbreset/Makefile 2007-08-24 12:00:08 UTC (rev 2828)
+++ developers/werner/usbreset/Makefile 2007-08-24 13:40:46 UTC (rev 2829)
@@ -0,0 +1,7 @@
+CFLAGS=-Wall -g
+LDLIBS=-lusb
+
+all: usbreset
+
+install: usbreset
+ install -m 555 usbreset /usr/local/bin
Added: developers/werner/usbreset/usbreset.c
===================================================================
--- developers/werner/usbreset/usbreset.c 2007-08-24 12:00:08 UTC (rev
2828)
+++ developers/werner/usbreset/usbreset.c 2007-08-24 13:40:46 UTC (rev
2829)
@@ -0,0 +1,31 @@
+#include <stdio.h>
+#include <usb.h>
+
+
+int main(void)
+{
+ struct usb_bus *usb_bus;
+ struct usb_device *dev;
+
+ usb_init();
+ usb_find_busses();
+ usb_find_devices();
+ for (usb_bus = usb_get_busses(); usb_bus; usb_bus = usb_bus->next )
+ for (dev = usb_bus->devices; dev; dev = dev->next) {
+ struct usb_dev_handle *handle;
+
+ handle = usb_open(dev);
+ if (!handle) {
+ fprintf(stderr, "usb_open: %s\n",
+ usb_strerror());
+ continue;
+ }
+ if (usb_reset(handle) < 0) {
+ fprintf(stderr, "usb_reset: %s\n",
+ usb_strerror());
+ continue;
+ }
+ fprintf(stderr,"reset\n");
+ }
+ return 0;
+}
--- End Message ---
--- Begin Message ---
Author: laforge
Date: 2007-08-24 21:38:25 +0200 (Fri, 24 Aug 2007)
New Revision: 2830
Modified:
trunk/src/target/u-boot/patches/uboot-gta02.patch
Log:
make u-boot actaully work on the first GTA02v2 samples:
* memory is x32, has 9-bit column addresses and a 64/64 bank6/7 split
* cpu powers up with low voltage, so don't go to 304MHz PLL before
reconfiguring core power
* disable all internal pull-down resistors
* switch vibrator and LED into output mode, since PWM is not active
yet after power-up
* switch GPJ4 (nGSM_EN) to high to activate serial console on debug board
* don't power-cycle DOWN2 converter, there's now way more than just the glamo
Modified: trunk/src/target/u-boot/patches/uboot-gta02.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-gta02.patch 2007-08-24 13:40:46 UTC
(rev 2829)
+++ trunk/src/target/u-boot/patches/uboot-gta02.patch 2007-08-24 19:38:25 UTC
(rev 2830)
@@ -91,7 +91,7 @@
===================================================================
--- /dev/null
+++ u-boot/board/neo1973/gta02/gta02.c
-@@ -0,0 +1,356 @@
+@@ -0,0 +1,370 @@
+/*
+ * (C) 2006-2007 by OpenMoko, Inc.
+ * Author: Harald Welte <[EMAIL PROTECTED]>
@@ -138,6 +138,7 @@
+/* That many seconds the power key needs to be pressed to power up */
+#define POWER_KEY_SECONDS 2
+
++#if defined(CONFIG_ARCH_GTA02_v1)
+//#define M_MDIV 0x7f /* Fout = 405.00MHz */
+#define M_MDIV 0x7d /* Fout = 399.00MHz */
+#define M_PDIV 0x2
@@ -146,6 +147,15 @@
+#define U_M_MDIV 0x38
+#define U_M_PDIV 0x2
+#define U_M_SDIV 0x2
++#else
++/* configure GTA02v2 to low speed until we've increased the voltage */
++#define M_MDIV 80
++#define M_PDIV 8
++#define M_SDIV 0
++#define U_M_MDIV 80
++#define U_M_PDIV 8
++#define U_M_SDIV 1
++#endif
+
+unsigned int neo1973_wakeup_cause;
+extern int nobootdelay;
@@ -212,28 +222,30 @@
+ gpio->GPACON = 0x007E1FFF;
+ gpio->GPADAT |= (1 << 16); /* Set GPA16 to high (nNAND_WP) */
+
-+ gpio->GPBCON = 0x001555AA;
-+ //gpio->GPBUP = 0x000007FF;
++ gpio->GPBCON = 0x00155555;
++ gpio->GPBUP = 0x000007FF;
+
+ gpio->GPCCON = 0x55415155;
-+ //gpio->GPCUP = 0x0000FFFF;
++ gpio->GPCUP = 0x0000FFFF;
+
+ gpio->GPDCON = 0x55555555;
-+ //gpio->GPDUP = 0x0000FFFF;
++ gpio->GPDUP = 0x0000FFFF;
+
+ gpio->GPECON = 0xAAAAAAAA;
-+ //gpio->GPEUP = 0x0000FFFF;
++ gpio->GPEUP = 0x0000FFFF;
+
+ gpio->GPFCON = 0x0000AAAA;
-+ //gpio->GPFUP = 0x000000FF;
++ gpio->GPFUP = 0x000000FF;
+
+ gpio->GPGCON = 0x0156FE7A;
-+ //gpio->GPGUP = 0x0000FFFF;
++ gpio->GPGUP = 0x0000FFFF;
+
+ gpio->GPHCON = 0x001AAAAA;
-+ //gpio->GPHUP = 0x000007FF;
++ gpio->GPHUP = 0x000007FF;
+
+ gpio->GPJCON = 0x1551544;
++ gpio->GPJUP = 0x1ffff;
++ gpio->GPJDAT |= (1 << 4); /* Set GPJ4 to high (nGSM_EN) */
+#else
+#error Please define GTA02 version
+#endif
@@ -262,12 +274,14 @@
+ /* Initialize the Power Management Unit with a safe register set */
+ pcf50633_init();
+
++#if defined(CONFIG_ARCH_GTA02_v1)
+ /* Glamo3362 reset and power cycle */
+ gpio->GPJDAT &= ~0x000000001;
+ pcf50633_reg_write(PCF50633_REG_DOWN2ENA, 0);
+ udelay(50*1000);
+ pcf50633_reg_write(PCF50633_REG_DOWN2ENA, 0x2);
+ gpio->GPJDAT |= 0x000000001;
++#endif
+
+#if 0
+ /* if there's no other reason, must be regular reset */
@@ -1300,17 +1314,29 @@
#define B1_Tah 0x0 /* 0clk */
#define B1_Tacp 0x0
#define B1_PMC 0x0
-@@ -112,7 +112,8 @@
- #if defined (CONFIG_ARCH_GTA01_v3) || defined(CONFIG_ARCH_GTA01_v4)
+@@ -109,16 +109,18 @@
+
+ #define B6_MT 0x3 /* SDRAM */
+ #define B6_Trcd 0x1 /* 3clk */
+-#if defined (CONFIG_ARCH_GTA01_v3) || defined(CONFIG_ARCH_GTA01_v4)
++#if defined (CONFIG_ARCH_GTA01_v3) || defined(CONFIG_ARCH_GTA01_v4) || \
++ defined(CONFIG_ARCH_GTA02_v2)
#define B6_SCAN 0x1 /* 9bit */
++#define B7_SCAN 0x1 /* 9bit */
#elif defined(CONFIG_ARCH_GTA01B_v2) || defined(CONFIG_ARCH_GTA01B_v3) || \
- defined(CONFIG_ARCH_GTA01B_v4)
+ defined(CONFIG_ARCH_GTA01B_v4) || defined(CONFIG_ARCH_GTA02_v1) || \
-+ defined(CONFIG_ARCH_GTA02_v2)
#define B6_SCAN 0x2 /* 10bit */
++#define B7_SCAN 0x2 /* 10bit */
#endif
-@@ -165,6 +166,27 @@
+ #define B7_MT 0x3 /* SDRAM */
+ #define B7_Trcd 0x1 /* 3clk */
+-#define B7_SCAN 0x2 /* 10bit */
+
+ /* REFRESH parameter */
+ #define REFEN 0x1 /* Refresh enable */
+@@ -165,6 +167,27 @@
str r1, [r0]
#endif
@@ -1338,6 +1364,17 @@
/* everything is fine now */
mov pc, lr
+@@ -182,6 +205,10 @@
+ .word ((B6_MT<<15)+(B6_Trcd<<2)+(B6_SCAN))
+ .word ((B7_MT<<15)+(B7_Trcd<<2)+(B7_SCAN))
+ .word ((REFEN<<23)+(TREFMD<<22)+(Trp<<20)+(Trc<<18)+(Tchr<<16)+REFCNT)
++#if defined(CONFIG_ARCH_GTA02_v2)
++ .word 0xb1
++#else
+ .word 0xb2
++#endif
+ .word 0x30
+ .word 0x30
Index: u-boot/board/neo1973/gta02/pcf50633.c
===================================================================
--- /dev/null
--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog