1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-24 04:38:59 +02:00
Commit Graph

82 Commits

Author SHA1 Message Date
Matt Hsu
9416da3dc7 qi-3d7k-GPK6-should-be-set-as-output.patch
Hi Andy,

Sorry, previous patch to enable reset function of LCM is not working
stably somehow. :(
Since it's pin configuration is input. Attached patch is to set LCM
reset pin as output.

Cheers,

Matt
2009-03-09 08:51:06 +00:00
Werner Almesberger
7d85f72dbc clean-backslash-strings.patch
We can get rid of quite a few backslashes since in modern C,
consecutive strings are concatenated at compile time.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-03-09 08:51:05 +00:00
Andy Green
45187521a2 Return-Path: <openmoko-kernel-bounces@lists.openmoko.org>
Received: from mail.openmoko.org ([unix socket])
	by mail.openmoko.org (Cyrus v2.1.18-IPv6-Debian-2.1.18-5.1) with LMTP; Sat, 07 Mar 2009 06:46:20 +0000
X-Sieve: CMU Sieve 2.2
Return-path: <openmoko-kernel-bounces@lists.openmoko.org>
Received: from sita.openmoko.org ([88.198.124.203])
	by mail.openmoko.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.63)
	(envelope-from <openmoko-kernel-bounces@lists.openmoko.org>)
	id 1LfqIe-000690-LR
	for andy@imap.openmoko.org; Sat, 07 Mar 2009 06:46:20 +0000
Received: from localhost ([127.0.0.1] helo=sita.openmoko.org)
	by sita.openmoko.org with esmtp (Exim 4.63)
	(envelope-from <openmoko-kernel-bounces@lists.openmoko.org>)
	id 1LfqIA-0005iO-2x; Sat, 07 Mar 2009 07:45:50 +0100
Received: from imap.tw.openmoko.org ([59.124.115.149] helo=aakash.openmoko.org)
	by sita.openmoko.org with esmtp (Exim 4.63)
	(envelope-from <matt_hsu@openmoko.org>) id 1LfqI0-0005cg-Rz
	for openmoko-kernel@lists.openmoko.org; Sat, 07 Mar 2009 07:45:44 +0100
Received: from [172.16.22.173] (helo=abacus-om.tw.openmoko.com
	ident=Debian-exim)
	by aakash.openmoko.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.63) (envelope-from <matt_hsu@openmoko.org>)
	id 1LfqHA-0007Xa-Eu
	for openmoko-kernel@lists.openmoko.org; Sat, 07 Mar 2009 14:45:09 +0800
Received: from matt by abacus-om.tw.openmoko.com with local (Exim 4.69)
	(envelope-from <matt_hsu@openmoko.org>) id 1Lfqto-0006XS-9X
	for openmoko-kernel@lists.openmoko.org; Sat, 07 Mar 2009 15:24:44 +0800
From: Matt Hsu <matt_hsu@openmoko.org>
To: openmoko-kernel@lists.openmoko.org
Date: Sat,  7 Mar 2009 15:24:42 +0800
Message-Id: <1236410684-20364-2-git-send-email-matt_hsu@openmoko.org>
X-Mailer: git-send-email 1.5.6.5
In-Reply-To: <1236410684-20364-1-git-send-email-matt_hsu@openmoko.org>
References: <1236410684-20364-1-git-send-email-matt_hsu@openmoko.org>
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sita.openmoko.org
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham
	version=3.2.3
Subject: [PATCH 1/3] qi/om_3d7k: deassert LCM_RESET pin before getting kernel.
X-BeenThere: openmoko-kernel@lists.openmoko.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discussion regarding the OpenMoko Linux Kernel and boot loader
	<openmoko-kernel.lists.openmoko.org>
List-Unsubscribe: <http://lists.openmoko.org/mailman/listinfo/openmoko-kernel>,
	<mailto:openmoko-kernel-request@lists.openmoko.org?subject=unsubscribe>
List-Archive: <http://lists.openmoko.org/pipermail/openmoko-kernel>
List-Post: <mailto:openmoko-kernel@lists.openmoko.org>
List-Help: <mailto:openmoko-kernel-request@lists.openmoko.org?subject=help>
List-Subscribe: <http://lists.openmoko.org/mailman/listinfo/openmoko-kernel>,
	<mailto:openmoko-kernel-request@lists.openmoko.org?subject=subscribe>
Sender: openmoko-kernel-bounces@lists.openmoko.org
Errors-To: openmoko-kernel-bounces@lists.openmoko.org

Since the reset callback function of probing jbt6k74 is
eliminated for some reasons in kernel. In order to support
both of LCM driver device, l1k002 and jbt6k74, just issue this reset in qi stage.

Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
2009-03-07 07:35:26 +00:00
Andy Green
8858f9a2fc qi-3d7k-regulator-suspend-tune.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-07 07:35:25 +00:00
Andy Green
e73e47ab93 qi-3d7k-audit-gpio.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-07 07:35:25 +00:00
Andy Green
c53df5fb28 qi-rename-gta03-3d7k.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-02 18:51:08 +00:00
Andy Green
67d668d781 qi-gta02-revert-unpowered-gsm-UART-safe-at-boot.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-03-02 12:21:38 +00:00
Andy Green
b4ed735c58 qi-fix-prepend-debug-space.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-23 02:15:27 +00:00
Andy Green
6ace49aa53 qi-gta02-a7-as-a6.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-23 02:15:26 +00:00
Andy Green
dd81d5fb05 qi-gta02-fix-gph-uart0-pin.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-23 02:15:26 +00:00
Andy Green
05027f9b8a qi-fix-adding-space-to-char-not-to-string.patch
Reported-by: Sean McNeil <sean@mcneil.com>
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-20 05:10:44 +00:00
Andy Green
97b9bc018e fix-trailing-space-ethernet-mac.patch
There's no trailing space after the last mac address addition, it
was broken before the recent patch adding the second mac address.

Also, we don't need to add the first space by hand if it's unconditionally
added in the string afterwards.

Reported-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-20 04:57:47 +00:00
Robert Piasek
0395c03c9d Re: [PATCH 7/8] qi-add-gta02-indentity-part-parsing.patch
Andy,

On Tuesday 03 February 2009 18:12:50 Andy Green wrote:
> Now everything else is in place, we are able to mount
> the GTA02 "identity" partition and extract the USB Ethernet
> MAC Address from it, and add it to the kernel commandline.
>
> This causes the Ethernet gadget to use the same MAC address
> each boot, simplifying DHCP server situation.  The MAC
> address in the identity partition is globally unique from
> the factory.

Because of this patch I can no longer load g_ether module with host_addr= and
dev_addr= parameters.

The module is always loaded using factory mac for HOST and random mac for DEV.

That messes up my setup a bit, as I use NetworkManager 0.7 on FreeRunner
itself (and it expects DEV mac to be the same each time).

Would it be a problem to also include g_ether.dev_addr?

Attached patch solves my problem.

Rob
2009-02-20 02:34:36 +00:00
Andy Green
08362c95c7 qi-gta02-compute-nand-kernel-partition-offset.patch
There's one more thing that wants dynpart computed block offset -
the kernel offset used for NAND boot.

This patch moves the business end of the dynparts computation into
the port_init_gta02() so it's done earlier, and writes the block
index into the board_api struct NAND option's partition block start
field.

It also adds a field to the nand_dynparts struct so we can hold both
the true length and true block offset for each partition for later
use by the original code in append_device_specific_cmdline_gta02.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:40 +00:00
Andy Green
dd0c85f427 qi-add-gta02-indentity-part-parsing.patch
Now everything else is in place, we are able to mount
the GTA02 "identity" partition and extract the USB Ethernet
MAC Address from it, and add it to the kernel commandline.

This causes the Ethernet gadget to use the same MAC address
each boot, simplifying DHCP server situation.  The MAC
address in the identity partition is globally unique from
the factory.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:39 +00:00
Andy Green
bb67ea1a84 qi-improve-nand-read-512-granularity.patch
Previously we insisted on NAND block granularity read addressing
and buffer length, even though we normalized the block indexing to
512 bytes to be compatible with ext2 and SD.

This patch improves the read functions so they are completely 512-
block friendly, any number of 512 byte blocks can be fetched from
any 512 byte boundary now.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:39 +00:00
Andy Green
25b5a9ba62 qi-gta02-compute-and-append-dynparts.patch
This adds dynamic partition computation support for Qi on GTA02.
It's for compatability with existing GTA02 using U-Boot partition
scheme where a bad block in the previous partition moves on the
start of the next partition by one block.

It's important that Qi has no private state, so we need to compute
the NAND arrangement each boot.  It turns out this is extremely fast
using Qi's bad block code originally from Xinagfu.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:38 +00:00
Andy Green
dd2344a9c7 qi-add-post-serial-init-api.patch
It can be useful to have a device API that can print device-specific things
after serial is initialized.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:36 +00:00
Andy Green
53279b5983 qi-export-s3c2442-nand-bad-block-check.patch
At least GTA02 specific code is now interested in bad blocks.
Rename the function and export it.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:36 +00:00
Werner Almesberger
4a8cabd5a9 None
The PMU initializes all GPIOs to inputs in NoPower, including GPIO2,
which drives GSM_ON and has an external pull-up. Furthermore, we may
have entered PMU.Standby with the modem up.

Unlike u-boot, qi didn't initialize the GPIOs. With this patch is
does.

Reported-by: Paul Ferster <fercerpav@gmail.com>
Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-31 17:23:30 +00:00
Paul Fertser
bdaef4fd50 GTA01: use POWER button to append debug parameters to the kernel command line
This patch is based on the one tested on GTA02, it compiles but i could not
verify if it works.
2009-01-19 01:37:09 +00:00
Paul Fertser
7c8892dfa1 GTA02: use POWER button to append debug parameters to the kernel command line 2009-01-19 01:37:09 +00:00
Andy Green
e08b518990 qi-gta02-correct-filter-polarity.patch
Filter is enabled by b4 being 0 in each case, not 1

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-18 13:49:44 +00:00
Andy Green
6e190bc68c qi-gta02-rootdelay.patch
There's not enough time between Glamo init (now after pcf50633 init)
and the completion of machine init before we try to use the boot device
in the case of GTA02 and SD boot.  So we add rootdelay=1 to the SD
card boot cases

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-18 13:49:33 +00:00
Andy Green
51ce8bac68 qi-gta03-suspend-gpio.patch
Change to input / pulldown on most GPIO.  With no battery and just
USB power, this gets us into suspend with 9.5mA at 5V consumption... but
Ben Dooks told that we don't put the mDDR into deep sleep yet in the
platform pm code, so this should come right down when we have that.

The suspend is otherwise real though, PWREN to the PMU goes down, and
when we wake the device Qi is able to see it is a resume wake and jumps
back into Linux, where we currently die due to issues on s3c6410 platform
code getting worked on.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-09 11:04:57 +00:00
Andy Green
b5c87ae317 qi-gta03-revert-to-bin-sh.patch
Rootfs is not quite ready for /sbin/init

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:48 +00:00
Andy Green
74dc2cc01a qi-fix-gta03-default-wlan-power.patch
Make sure WLAN module power is off by default - this controls
a P-Channel MOSFET that gates all the power there

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:48 +00:00
Andy Green
f9b0afbdb6 qi-gta03-fix-charging.patch
These two changes get charging working on GTA03 with new battery.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:47 +00:00
Andy Green
6dae9d7009 qi-gta02-improve-default-reg-states.patch
Need to let PWREN take care of more regulators really

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:47 +00:00
Andy Green
1f150a592e qi-s3c6410-add-resume-path-processing.patch
First go at resume processing for 6410, can't test it until Ben Dooks
confirms operation of Linux side on SMDK

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:47 +00:00
Andy Green
af49f931b6 qi-gta03-rootdelay.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 11:16:17 +00:00
Andy Green
14acfb40af qi-gta02-no-inidcators-if-battery-low.patch
This patch turns on the SYS and BAT monitoring filters, and checks if the battery
meets the BAT OK threshold.  If it doesn't, which is the case if the battery is
not present, it disables the "indicator" (eg, LED, vibrator) stuff and holds the
CPU at 200MHz during the boot into Linux.

This allows the GTA02 A6 here to boot with no battery up to the point it is
going to bring up backlight, and this with 100mA limit on USB at PMU.  Enabling
the threshold filters for battery and SYS seems to have been critical in
getting any stability with this.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:07 +00:00
Andy Green
3867e3d4ce qi-gta01-02-03-always-tty0-console.patch
tty0 is the LCM... this patch changes the defaults so that the kernel
always treats tty0 as a console, but it also sets the loglevel so that
only KERN_ERR or worse will be printed there.  With matching changes
to the kernel, most of the noise at KERN_ERR is reduced to KERN_INFO,
so it gets the behviour the LCM by default is not cluttered with
messages unless they are important during boot.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:07 +00:00
Andy Green
710f2dbb6e qi-introduce-ui-indicators.patch
Allow a board to "indicate" events if it likes on whatever it has

On GTA02 we light AUX during boot and run the vibrator briefly when we
skip a partition or device.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:06 +00:00
Andy Green
40edd785a7 qi-gta02-remap-steppingstone.patch
Despite what the docs say, steppingstone is always resident at
0x40000000 on s3c2442, this patch changes our linker script to
stick all steppingstone code there.  The mapping of steppingstone
at 0x0 is broken by OM[] bus change dynamically caused for example
by GTA02 AUX button actuation.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:06 +00:00
Andy Green
9a6d9de901 qi-s3c2442-enable-d-cache.patch
Seems we have no D-Cache enabled before?  Also defeat AUX as EINT

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:06 +00:00
Andy Green
842a4ad19b qi-kernel-source-skip-if-ui-key-down.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:05 +00:00
Andy Green
f23a39d80d qi-gta01-add-ui-debounce.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:04 +00:00
Andy Green
bede2a1359 qi-gta03-add-ui-debounce.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:04 +00:00
Andy Green
d87c26ee38 qi-gta02-add-ui-debounce.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:04 +00:00
Christopher Hall
4285b49897 qi-move-to-sbin-init.patch
Signed-off-by: Christopher Hall <hsw@openmoko.org>
2008-11-28 10:16:45 +00:00
Andy Green
1b06d98bc7 qi-add-noboot-and-append-check.patch
This adds two features that can be set in the rootfs that Qi is checking.

 - if it finds /boot/noboot-<device>, eg /boot/noboot-GTA02 then it will
   skip the rootfs for booting and try the next one if any

 - if it finds /boot/append-<device>, eg, /boot/append-GTA02 then it will
   append the contents of this file to the kernel commandline.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Andy Green
3565397f1c qi-gta03-framebuffer-init-to-c.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Matt Hsu
12828f98f2 fix a compiling error
Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
2008-11-28 10:16:45 +00:00
Andy Green
729a404055 qi-gta03-framebuffer-enable.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Andy Green
46fd1c005b qi-commandline-split.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Andy Green
f6ee0972f9 qi-commandline-remove-all-sd-rootfstype.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:44 +00:00
Andy Green
1b810a4dc6 qi-gta02-additional-regs-init.patch
This should fix the reported problems with audio when the
kernel is started with Qi on GTA02

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:44 +00:00
Andy Green
61ff9453dd qi-gta02-add-partition3-boot.patch
It's worth looking on partition3, for GTA03 SD Card this will be
backup / recovery rootfs

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:44 +00:00
Andy Green
98591fc54b qi-reduce-stage2-extent-32KB.patch
We dedicate 256MB for bootloader in GTA03 SD image, but actually they're
around 25KB currently.  Reduce the stage2 pull to 32KByte.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:44 +00:00