Send commitlog mailing list submissions to
commitlog@lists.openmoko.org
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. r4542 - in developers/werner: . mmcds ([EMAIL PROTECTED])
2. Holger's qtopia repo: Changes to 'master' ([EMAIL PROTECTED])
--- Begin Message ---
Author: werner
Date: 2008-07-20 04:12:32 +0200 (Sun, 20 Jul 2008)
New Revision: 4542
Added:
developers/werner/mmcds/
developers/werner/mmcds/Makefile
developers/werner/mmcds/mmcds.c
Log:
MMC Drive Strength get/set utility. (GTA02)
Added: developers/werner/mmcds/Makefile
===================================================================
--- developers/werner/mmcds/Makefile (rev 0)
+++ developers/werner/mmcds/Makefile 2008-07-20 02:12:32 UTC (rev 4542)
@@ -0,0 +1,5 @@
+CC=arm-angstrom-linux-gnueabi-gcc
+
+CFLAGS=-Wall -g
+
+all: mmcds
Added: developers/werner/mmcds/mmcds.c
===================================================================
--- developers/werner/mmcds/mmcds.c (rev 0)
+++ developers/werner/mmcds/mmcds.c 2008-07-20 02:12:32 UTC (rev 4542)
@@ -0,0 +1,94 @@
+/*
+ * mmcds.c - Get/set the MMC drive strength (of the Smedia Glamo 3362)
+ *
+ * Copyright (C) 2008 by OpenMoko, Inc.
+ * Written by Werner Almesberger <[EMAIL PROTECTED]>
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+
+#include <stdint.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <fcntl.h>
+#include <sys/mman.h>
+
+
+#define BASE 0x08000000
+
+#define MMC_BASIC (*(uint16_t *) (mem+0x1430))
+
+static volatile void *mem;
+
+
+/* ----- Register decoding ------------------------------------------------- */
+
+
+static const char *strength[] = { "min", "low", "high", "max" };
+
+static void show_mmc_basic(uint16_t reg)
+{
+ int drv = (reg >> 6) & 3;
+
+ printf("MMC_BASIC = 0x%04x\n", reg);
+ printf(" MCGIODrv = %d (%s)\n", drv, strength[drv]);
+}
+
+
+/* ----- Command-line parsing ---------------------------------------------- */
+
+
+static void __attribute__((noreturn)) usage(const char *name)
+{
+ fprintf(stderr, "usage: %s [min|low|high|max|0|1|2|3]\n", name);
+ exit(1);
+}
+
+
+static int decode(const char *name, const char *arg)
+{
+ int i;
+
+ for (i = 0; i != 4; i++)
+ if (!strcmp(strength[i], arg) ||
+ (arg[0] == '0'+i && !arg[1]))
+ return i;
+ usage(name);
+}
+
+
+int main(int argc, char **argv)
+{
+ int fd, new;
+
+ fd = open("/dev/mem", O_RDWR);
+ if (fd < 0) {
+ perror("/dev/mem");
+ exit(1);
+ }
+ mem = mmap(NULL, 0x2000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, BASE);
+ if (mem == MAP_FAILED) {
+ perror("mmap");
+ exit(1);
+ }
+ switch (argc) {
+ case 1:
+ show_mmc_basic(MMC_BASIC);
+ break;
+ case 2:
+ new = decode(*argv, argv[1]);
+ /* should disable interrupts around here */
+ MMC_BASIC = (MMC_BASIC & ~(uint16_t) 0xc0) | (new << 6);
+ /* should disable interrupts around here */
+ break;
+ default:
+ usage(*argv);
+ }
+ return 0;
+}
--- End Message ---
--- Begin Message ---
.../phonevendors/ficgta01/vendor_ficgta01.cpp | 3 +
src/general.pri | 2 +-
src/libraries/qtopia/qsoftmenubar.cpp | 33 +--
src/libraries/qtopia/qtopiaapplication.cpp | 285 ++++++++++++--
.../inputmethods/predictivekeyboard/keyboard.cpp | 22 +-
.../predictivekeyboard/predictivekeyboard.cpp | 31 ++-
.../predictivekeyboard/predictivekeyboard.h | 15 +-
.../predictivekeyboard/predictivekeyboard.pro | 4 +
.../predictivekeyboard/qwsinputmethod_x11.cpp | 408 ++++++++++++++++++++
.../predictivekeyboard/qwsinputmethod_x11.h | 35 ++
src/server/core_server/qtopiainputevents_x11.cpp | 361 +-----------------
.../phonelauncher/phonelauncher_illume.cpp | 13 +
src/server/server.pro | 20 +
13 files changed, 797 insertions(+), 435 deletions(-)
New commits:
commit 536314fc40578f37b5adca406276245c3f368501
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sun Jul 20 11:51:26 2008 +0200
[inputmethod] First attempt at sending strings
Currently sending of ' ' is broken as it is not mappable with
the XStringToKeysm call.
commit 272d15f1d220a7449950d5268601fab0b1701f13
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sun Jul 20 11:46:20 2008 +0200
[inputmethods] Move sending a keysym into a separate function
Move the code to share the implementation with another function
commit 2c29e8eb2eb88c3b40488c8b928d5fc2830ef45d
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sun Jul 20 10:26:09 2008 +0200
[inputmethod] Move the init of the XTest Extension out
Prepare to share the this with another method
commit 6c764ac608993e16a04d500af28534005add29dd
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 22:36:10 2008 +0200
[keyboard] Bypass X11 for the various helper widgets/windows of the keyboard
The keyboard implementation wants to control the size and position
of various widgets. Ask the window manager to not get involved in
placement.
commit caf2e6fde7f4afd1df638ab42fa81e376b704b6a
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 22:32:49 2008 +0200
[keyboard] Set a more useful WindowTitle for Qt/X11
With QWS the window title can have a semantic. For X11 this is not
the case and a unique window title is easing debugging (xprop) so
let us have proper window titles. And in X11 we can use Atoms to
carry special semantic (QtE could do the same too...)
commit 54dd2dad98195494be710a89a2e9f87fb117ee4e
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sun Jul 20 11:53:06 2008 +0200
[qtopia] Do not set the SOFT_MENU hint on inputmethod widgets
Support the predictivekeyboard and do not set the soft menu
hint on virtual keyboards.
commit 9511d39604b8f856d06a8d1b071f06aa67af7d4e
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 22:30:47 2008 +0200
[inputmethod] Prefix static variables with s_ (be conservative and avoid
shadowing)
Better safe than sorry...
commit 27c914aa75299690ea58caa0add98b72093ca923
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 18:13:26 2008 +0200
[x11] Move the XFakeKey code from qtopiainputevents_x11 to
qwsinputmethod_x11
Move the keycode code to QWSServer which will move to qtopiabase once
it is ready to do so. Launching the inputmethod separately will require
the move to happen
commit 5a1a5204e9a4ace32dca98fdfd3b52b75592ee04
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 17:22:26 2008 +0200
[keyboard] Instaniate the Qtopia predictive keyboard on startup
Instaniate the keyboard for the illume launcher.
commit 38d2a3923ef46b12279901e5a5dc4c84aeae5d6e
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 17:05:26 2008 +0200
[server] Compile the predictivekeyboard into the server process for ASU
In the absence of someone loading the inputmethod plugins, providing the
switching and handling all this we have to create a keyboard
implementation.
Like with many things the qpe process is a convient place to do so and
as
we only want one keyboard for ASU we can do this...
Do this better in the future, specially I would like to see the chinese
inputmethod to be used as well.
commit 5fb7b6bd07072adba5dd3595d976d48b70c8de25
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 16:34:32 2008 +0200
[x11] Get the atoms we use in one roundtrip.
commit 7a7a33fdc50e858d28b6763826649faae9a5f0d1
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 15:45:01 2008 +0200
[valgrind] Delete the life cycle manager before we delete the
QtopiaApplicationData
Currently we access m_data (QtopiaApplicationData*) in the life cycle
manager from within the d'tor of QtopiaApplication. That is not too well
defined. Stop doing this.
==32243== at 0x4E1F73E: QtopiaApplicationLifeCycle::recalculateQuit()
(qtopiaapplication.cpp:1828)
==32243== by 0x4E20B12:
QtopiaApplicationLifeCycle::eventFilter(QObject*, QEvent*)
(qtopiaapplication.cpp:1793)
==32243== by 0x429788C: QApplicationPrivate::notify_helper(QObject*,
QEvent*) (qapplication.cpp:3520)
==32243== by 0x4299568: QApplication::notify(QObject*, QEvent*)
(qapplication.cpp:3500)
==32243== by 0x4C44B7B: QCoreApplication::notifyInternal(QObject*,
QEvent*) (qcoreapplication.cpp:537)
==32243== by 0x4294948: QCoreApplication::sendEvent(QObject*, QEvent*)
(qcoreapplication.h:207)
==32243== by 0x42E0AFB: QWidgetPrivate::hide_helper() (qwidget.cpp:5496)
==32243== by 0x42E86DA: QWidget::setVisible(bool) (qwidget.cpp:5652)
==32243== by 0x42CE8DB: QWidget::hide() (qwidget.h:456)
==32243== by 0x42E647A: QWidget::~QWidget() (qwidget.cpp:1198)
==32243== by 0x4311704: QDesktopWidget::~QDesktopWidget()
(qdesktopwidget_x11.cpp:189)
==32243== by 0x429F33B: QApplication::~QApplication()
(qapplication.cpp:911)
commit 7222ef4cffe6d10cc473bcebab59f07fda93a57b
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 15:26:56 2008 +0200
[x11] Change focus and keyboard hinting handling.
Stop using the focusOutTimer... that could fire after we got a
focus in and make us hide the keyboard even if we want to see it
Change the focus code to use the focusChanged signal of
QApplication and use the enlightenment protocol to set a keyboard
hint on the toplevel window. This should fix various bugs were
the keyboard gets hidden.
We currently do not connect the lineEditTextChanged and
multiLineEditTextChanged signal. This means the focus code is
only working for touchscreen based systems.
commit d94c3e40435082744274023392cb805327b2109e
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Sat Jul 19 11:50:37 2008 +0200
[x11] Make the Atom static to avoid roundtrips each time...
commit 9b0182956029dd173097880b446bca62d719b34c
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Fri Jul 18 13:35:17 2008 +0200
[ficgta02] Set the sidetone to a minimum in the calypso
XorA and Jan highlighted that our wolfson codec can generate the
sidetone
and that we should disable the tone in the modem.
commit 84b918ef208ba2ba25cd30f2535117f7fbdb9045
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Thu Jul 17 12:56:33 2008 +0200
[predictivekeyboard] Add the predictive keyboard to the build for x11 and
non-x11
commit ad84ffff75f8130e56312f8fa1cbfe0666794492
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Thu Jul 17 12:55:55 2008 +0200
[predictivekeyboard] Make it link with Qt/X11 by providing stubs for
QWSInputMethod and QWSServer
commit 1d1ab1a57d44844ce3ee32920acf54f0ed99cc52
Author: Holger Freyther <[EMAIL PROTECTED]>
Date: Thu Jul 17 12:08:39 2008 +0200
Revert "Revert "Revert "Place the QMenu relative to the widget for
X11/Illume"""
NETWM_WORKAREA is set and inside the list of supported features of
e/illume (_NET_SUPPORTED) now.
This reverts commit aa165e2f416b2d742aa1c2fa79e67059f9b24472.
Conflicts:
src/libraries/qtopia/qsoftmenubar.cpp
--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog