Michel Pollet [Fri, 13 Jan 2012 11:18:25 +0000 (13 11:18 +0000)]
Fixed tools/env utilities
They weren't working at all, fixed them add added a "loadenv" to
replace the whole environment from a file
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Mon, 26 Apr 2010 15:47:44 +0000 (26 16:47 +0100)]
MINI2440:Fixes for gcc 4.x
Removed weak declarations
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Mon, 26 Apr 2010 15:35:04 +0000 (26 16:35 +0100)]
MINI2440: Removed unneeded dependency
Obsolete code for mini2440v2
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 20 Apr 2010 16:48:07 +0000 (20 17:48 +0100)]
MINI2440: Update config to reflect NOR support
Added the NOR flash, removed the old code, added an easy
option to allow environment in NOR, with caveats.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 20 Apr 2010 16:45:01 +0000 (20 17:45 +0100)]
MINI2440: Added support for SST flash in CFI mode
SST NOR flash only claim to be CFI, in fact, even their probe
command is non standard!
This add support for the SST on the mini, including the small
sector size that are a lot more useful than the large 64KB
chunks.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 20 Apr 2010 16:42:35 +0000 (20 17:42 +0100)]
MINI2440: Remove the extraneous PLL config at startup
it's not needed, and in fact it screws up debugging anyway and
causes hangs.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 20 Apr 2010 16:41:32 +0000 (20 17:41 +0100)]
MINI2440: Add a command to re-init CFI NOR
Added "flinit" to reinitialize and probe the NOR flash
In case the user booted in NAND and thrown the switch since
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 20 Apr 2010 16:40:19 +0000 (20 17:40 +0100)]
MINI2440: Removed old, non working NOR support
Couldn't possibly have worked, inherited from moko's bits
Was obvisouly never tested anyway.
Replaced with CFI patched version.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 20 Apr 2010 16:38:15 +0000 (20 17:38 +0100)]
MINI2440: Removed extra SDRAM probe
This seems to cause problems in some cases (vivi?)
we'll have to find another way..
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 2 Feb 2010 22:54:42 +0000 (2 22:54 +0000)]
MINI2440: Auto probe for SDRAM size
Tries to detect 128MB SDRAM boards. I haven't seen the hardware,
but at least it doesn't crash on normal mini's, and it works in
qemu so thats a start.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 2 Feb 2010 13:41:17 +0000 (2 13:41 +0000)]
MINI2440: Updated early nand loader
Now supports old, 32MiB nands, and fallbacks to 2K blocks if
the nand ID is not known.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Ripduman Sohan [Thu, 12 Nov 2009 12:19:03 +0000 (12 12:19 +0000)]
Added support for the Hynix HY27US08121A 64MB Flash chip.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Alex Ling [Mon, 5 Oct 2009 07:26:07 +0000 (5 15:26 +0800)]
add SDHC support in mmc driver
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Wed, 7 Oct 2009 10:46:23 +0000 (7 11:46 +0100)]
[MINI2440] Updated config file
A few changes to make DFU and usb device work
Signed-off-by: Michel Pollet <buserror@gmail.com>
Alex Ling [Sun, 4 Oct 2009 07:58:43 +0000 (4 15:58 +0800)]
NAND Boot: fix an invalid PC error caused by div operation.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Thu, 24 Sep 2009 17:01:30 +0000 (24 18:01 +0100)]
Merge remote branch 'origin/stable' into dev-mini2440-stable
Michel Pollet [Sat, 19 Sep 2009 11:06:15 +0000 (19 12:06 +0100)]
MINI2440: Replaced u-boot-nand512.bin
With u-boot-nand2k.bin since it's a common denominator on
both the 64MB and 128MB nand boards.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Sat, 19 Sep 2009 11:01:45 +0000 (19 12:01 +0100)]
MINI2440: Changed environment size
Needs to be at least one erase block (128K), unfortunately.
This is quite a bit of wasted space.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Sat, 19 Sep 2009 11:00:27 +0000 (19 12:00 +0100)]
MINI2440: Made dynamic probe for nand size
Disabled compile time flags, now probes for known NAND Ids
and configure the bootstrap loader accordingly,
This u-boot binary will now run on both 64MB and 128MB boards.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Sat, 19 Sep 2009 10:58:41 +0000 (19 11:58 +0100)]
MINI2440: Added a debug command
To probe the NAND id, when u-boot starts from ram with a new NAND
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Sat, 19 Sep 2009 10:57:48 +0000 (19 11:57 +0100)]
MINI2440: Changed bbt creation code
To handle non-hardcoded partition sizes
Signed-off-by: Michel Pollet <buserror@gmail.com>
Rask Ingemann Lambertsen [Tue, 25 Aug 2009 09:52:56 +0000 (25 11:52 +0200)]
U-Boot GTA02: Always enable charger on startup
This patch changes U-Boot to always enable the charger on startup. We
currently seem to have two ways of disabling the charger, _even when it
was already enabled_:
1) Press power button briefly (<1 s) while off and connected to power.
2) Try to turn on the device (by power button or plugging in power) when the
power source detected as 100 mA only with no (or discharged) battery
inserted.
There is no point in disabling the charger in these cases or in general.
Signed-off-by: Rask Ingemann Lambertsen <ccc94453@vip.cybercity.dk>
Michel Pollet [Wed, 29 Apr 2009 10:47:12 +0000 (29 11:47 +0100)]
MINI2440: Made a non-moko local version
We forked off
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Wed, 29 Apr 2009 09:21:25 +0000 (29 10:21 +0100)]
Merge commit 'origin/stable' into dev-mini2440-stable
Michel Pollet [Wed, 29 Apr 2009 09:11:02 +0000 (29 10:11 +0100)]
MINI2440: Added an overclock command option
Table recovered fron Lanshak's patch. 2 boards here reach 440, will hang at anything faster.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Wed, 29 Apr 2009 09:09:47 +0000 (29 10:09 +0100)]
MINI2440: Slowed down i2c
To allow for extra, slower peripherals than the eeprom.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Rask Ingemann Lambertsen [Thu, 23 Apr 2009 19:18:38 +0000 (23 21:18 +0200)]
U-Boot: Update for reading inodes on ext2fs revision 1
[based on Grub2 trunk revisions 1236 and 1237]
The code to read ext2fs inodes was assuming a revision 0 file system.
This patch fixes a miscalculation of inode position on revision 1 file
systems, where the inodes might not be 128 bytes in size.
Signed-off-by: Rask Ingemann Lambertsen <rask@sygehus.dk>
Rask Ingemann Lambertsen [Mon, 23 Mar 2009 00:03:53 +0000 (23 01:03 +0100)]
glamo-mmc: Enable reading from cards above 4 GiB
This patch makes it possible to load e.g. kernels located above 4 GiB on
SDHC cards. The block number is no longer converted to a byte offset on SDHC
cards.
Signed-off-by: Rask Ingemann Lambertsen <rask@sygehus.dk>
Michel Pollet [Sat, 4 Apr 2009 12:26:23 +0000 (4 13:26 +0100)]
[MINI2440] Added an overclock option
Not very stable. More to come
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Sat, 4 Apr 2009 12:25:46 +0000 (4 13:25 +0100)]
[MINI2440] Updated default config
Very little changes, mostly just the environment
Michel Pollet [Sat, 4 Apr 2009 12:24:59 +0000 (4 13:24 +0100)]
[MINI2440] Initialization cleanup
Nothing functional
Signed-off-by: Michel Pollet <buserror@gmail.com>
Michel Pollet [Tue, 24 Mar 2009 00:36:43 +0000 (24 00:36 +0000)]
[MINI2440] Added partial support for hardware ECC
This was for testing qemu. Not terribly useful as is.
Michel Pollet [Tue, 24 Mar 2009 00:35:55 +0000 (24 00:35 +0000)]
[MINI2440] Use right pin for USB device
Usb pin is GPIO C5
Michel Pollet [Tue, 24 Mar 2009 00:35:19 +0000 (24 00:35 +0000)]
[MINI2440] startup code cleanup
Only turn one LED on. Activated USB device as output for UDC.
Michel Pollet [Tue, 24 Mar 2009 00:34:16 +0000 (24 00:34 +0000)]
[MINI2440] Added some commands, removed, cleanup
Added USB storage, remived some useless commands, activated UDC,
cleanuped the default environment.
Michel Pollet [Mon, 9 Mar 2009 23:28:28 +0000 (9 23:28 +0000)]
Removed my default cross compile path, oops
Michel Pollet [Sun, 8 Mar 2009 12:03:28 +0000 (8 12:03 +0000)]
[MINI2440] Also create a 16kb aligned tu-boot for linux mtd tool
Linux's mtd-tool needs size that are aligned on the 16k erase block
while u-boot only needs it on a 512 block.
Michel Pollet [Sat, 7 Mar 2009 17:45:14 +0000 (7 17:45 +0000)]
[MINI2440] Updated default u-boot environment
Added a more practical environment
Michel Pollet [Mon, 23 Feb 2009 08:05:30 +0000 (23 08:05 +0000)]
no working video etc
Michel Pollet [Thu, 5 Feb 2009 20:00:53 +0000 (5 20:00 +0000)]
Removed the specific speeds from my branch
Michel Pollet [Thu, 5 Feb 2009 19:55:25 +0000 (5 19:55 +0000)]
Merge branch 'dev-mini2440-staging' into dev-mini2440-buserror
Conflicts:
board/mini2440/flash.c
board/mini2440/mini2440.c
include/configs/mini2440.h
Michel Pollet [Thu, 5 Feb 2009 19:49:20 +0000 (5 19:49 +0000)]
MINI2440: Finaly add the mini2440 to the makefile
Just add the board to the makefile
Michel Pollet [Thu, 5 Feb 2009 19:48:28 +0000 (5 19:48 +0000)]
MINI2440: arm920t/ changes
Added support for the MINI2440, requires only small a additions in
existing files
Michel Pollet [Thu, 5 Feb 2009 19:47:15 +0000 (5 19:47 +0000)]
MINI2440: Bulk Add of the mini2440 board support
These are the files that are unique to this board, derived and
modified from the smtk2440 board
Michel Pollet [Thu, 5 Feb 2009 19:40:44 +0000 (5 19:40 +0000)]
Makefile: Added a rule to add a padded .bin for nand write
"nand write" requires padded sizes, so this rule makes one for
512KB block NAND. It's clear that other (most?) other nand use
bigger blocks and will need one too, if necessary
Michel Pollet [Thu, 5 Feb 2009 19:37:55 +0000 (5 19:37 +0000)]
DM9000: Get version 1.31 of DM900 from another tree
Update DM9000 to a more recent one
Also added a call to allow setting the DM9000 mac address
at startup from u-boot's environmnet. This allows support
for boards that have a DM9000 without an eeprom.
Without this call, a kernel loaded from NAND will not find
a valid MAC and will fail to load the driver.
Michel Pollet [Thu, 5 Feb 2009 19:34:19 +0000 (5 19:34 +0000)]
S3C2440: Fix PLL multiplier for 405Mhz / 12Mhz XTAL
The multiplier is wrong, it needs to be CLKDIVN_1_4_8 to provice a 50Mhz
IO clock, and not a 67 or so that doesn't work.
Michel Pollet [Thu, 5 Feb 2009 19:32:16 +0000 (5 19:32 +0000)]
GENERAL: Make sure the compiler is /not/ using gnueabi
Gnueabi doesn't seem to work for u-boot, so we disable explicitely
Michel Pollet [Thu, 5 Feb 2009 19:31:21 +0000 (5 19:31 +0000)]
GENERAL: Updated .gitignore
Added a few cases of file we don't want in
Michel Pollet [Thu, 5 Feb 2009 18:26:09 +0000 (5 18:26 +0000)]
MINI2440: Decomposed all the pin mapping
Decomposed most of the pin mapping for this board.
Michel Pollet [Thu, 5 Feb 2009 18:25:18 +0000 (5 18:25 +0000)]
MINI2440: Disable EABI
Make sure we don't use the ABI, even with an eabi compiler
Michel Pollet [Thu, 5 Feb 2009 18:24:42 +0000 (5 18:24 +0000)]
MINI2440: Disable USB for now
Trying to track a sourious interupt source
Michel Pollet [Thu, 5 Feb 2009 18:23:12 +0000 (5 18:23 +0000)]
MINI2440: Mask all interupts
Ensure all interupts are cleared at board time.
Michel Pollet [Thu, 5 Feb 2009 18:22:29 +0000 (5 18:22 +0000)]
MINI2440: Removed a test file
Removed _foo from build
Michel Pollet [Thu, 5 Feb 2009 11:47:22 +0000 (5 11:47 +0000)]
MINI2440: Temporary reset of base board init
Restore a clean slate to the init, to be studied for
setting GPIOs, interupts properly
Michel Pollet [Thu, 5 Feb 2009 11:45:32 +0000 (5 11:45 +0000)]
MINI2440: Updated gitignore
And removed stray binaries
Michel Pollet [Thu, 5 Feb 2009 11:44:53 +0000 (5 11:44 +0000)]
GENERAL: Updated gitignore
Ignore disassembly files etc
Michel Pollet [Thu, 5 Feb 2009 11:19:49 +0000 (5 11:19 +0000)]
MINI2440: Added a rule to make a block aligned binary
Need a 512 byte aligned binary to flash directly on nand
Michel Pollet [Thu, 5 Feb 2009 11:18:41 +0000 (5 11:18 +0000)]
MINI2440: Set wait states on bank 4 for ethernet
Bank 4 (ethernet) had the wrong setting, bank 3 was set wrongly.
Michel Pollet [Thu, 5 Feb 2009 11:17:30 +0000 (5 11:17 +0000)]
MINI2440: Updated default config
Functional change is the flag to set the MAC in the DM9000
Michel Pollet [Thu, 5 Feb 2009 11:16:43 +0000 (5 11:16 +0000)]
DM9000: Added configuration option and code to set MAC
Allows the MAC to be set from the environment variable
at init time without starting the DM9000. It allows support
for system that have a DM9k without eeprom
Michel Pollet [Thu, 5 Feb 2009 11:14:59 +0000 (5 11:14 +0000)]
DM9000: added eth_set_mac()
Moved the code for setting the MAC into the DM9000
and made it a function that can be called without
initializing the DM9000 fully.
This patch sllows the init code to set the MAC for the
kernel, on DM9000 that have no eeprom (MINI2440)
Michel Pollet [Thu, 5 Feb 2009 11:12:27 +0000 (5 11:12 +0000)]
MINI2440: Do not bother waiting phy link flag
Seems that read can fail, and takes seconds to
timeout.
Michel Pollet [Wed, 4 Feb 2009 23:03:08 +0000 (4 23:03 +0000)]
MINI2440: start.S removed MINI2440 specific speed
Setting the fast speed at that stage doesn't work on
cold boot, the slow speed is seems necessary for the
NAND boot to work, so the specific patch was removed
and the fast speed is now set later, after relocation.
Michel Pollet [Wed, 4 Feb 2009 23:01:03 +0000 (4 23:01 +0000)]
MINI2440: board init
Simplified, reset the PLL for 405/101/50 clocks
as well as the multiplier to 5, since it was set
to 7 by default during the slow bootup in start.S
Michel Pollet [Wed, 4 Feb 2009 22:59:28 +0000 (4 22:59 +0000)]
MINI2440: lowlevel_init added lots of cycles to DM9000 bank
Trying to fix the IO problem, this won't work but it can't hurt either
Michel Pollet [Wed, 4 Feb 2009 22:57:06 +0000 (4 22:57 +0000)]
MINI2440: lowlevel_init re-computed memory timings
Decomposed the timings for the HYNIX memory
and recalculated the S3C2440 memory register
values that fit best 100Mhz SDRAM clock
Michel [Tue, 3 Feb 2009 14:44:03 +0000 (3 14:44 +0000)]
DM9000: Nicked newer driver from main u-boot branch
Michel [Tue, 3 Feb 2009 14:43:03 +0000 (3 14:43 +0000)]
405Mhz had the wrong PLL divisor
Michel [Tue, 3 Feb 2009 14:42:14 +0000 (3 14:42 +0000)]
Removed 16 bit access to d9k, no longer needed
Michel [Tue, 3 Feb 2009 14:40:09 +0000 (3 14:40 +0000)]
Reset default to 405Mhz
Michel [Tue, 3 Feb 2009 10:33:34 +0000 (3 10:33 +0000)]
Fixed PLL clocks for MINI2440 specific 12Mhz
Michel [Mon, 2 Feb 2009 01:00:31 +0000 (2 01:00 +0000)]
Update default bootargs
Michel [Sun, 1 Feb 2009 23:56:03 +0000 (1 23:56 +0000)]
Working nand, mtdparts and proper machine ID (1999)
Michel [Sun, 1 Feb 2009 14:54:20 +0000 (1 14:54 +0000)]
MINI2440: Better configuration, with env in NAND
Michel [Sun, 1 Feb 2009 14:53:53 +0000 (1 14:53 +0000)]
Fixed a preprocessor warning with #else if / #elsif
Michel [Sun, 1 Feb 2009 14:53:13 +0000 (1 14:53 +0000)]
MINI2440: Has 512 bytes sector nand
Michel [Sun, 1 Feb 2009 14:52:45 +0000 (1 14:52 +0000)]
MINI2440: Better peripheral init
Michel [Sun, 1 Feb 2009 14:52:08 +0000 (1 14:52 +0000)]
MINI2440: No longer need the environment in NOR
Michel [Sat, 31 Jan 2009 17:12:55 +0000 (31 17:12 +0000)]
First MINI2440 version, works from ram, not nand
Sven sleipnir Rebhan [Fri, 19 Dec 2008 17:57:55 +0000 (19 17:57 +0000)]
Modified patch originates from Andy Green <andy@openmoko.com>
http://www.mail-archive.com/openmoko-kernel@lists.openmoko.org/msg05708.html
Sven sleipnir Rebhan [Fri, 19 Dec 2008 17:57:46 +0000 (19 17:57 +0000)]
Modified patch originates from Andy Green <andy@openmoko.com>
http://www.mail-archive.com/openmoko-kernel@lists.openmoko.org/msg05705.html
Andy Green [Sun, 7 Dec 2008 09:29:53 +0000 (7 09:29 +0000)]
uboot-build-default-toolchain-path.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diego Barrios [Sat, 25 Oct 2008 19:34:09 +0000 (25 20:34 +0100)]
uboot-fix-smdk2440-config.patch
smdk2440 doesn't compile without CONFIG_MMC_S3C
Andy Green [Thu, 9 Oct 2008 15:57:49 +0000 (9 16:57 +0100)]
u-boot-clean-batt-charge-patch.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Philipp Hug [Thu, 9 Oct 2008 15:57:31 +0000 (9 16:57 +0100)]
Fixes for U-Boot charging
Harald Welte [Tue, 7 Oct 2008 17:49:49 +0000 (7 18:49 +0100)]
u-boot: Fix DFU upload in u-boot
Fix DFU upload in u-boot
The existing USB DFU upload (read firmware from device to USB host) code
was a big mess and probably only ever worked by accident.
specifically, there were three bugs described in
http://docs.openmoko.org/trac/ticket/1843 :
* when it copies a new blockful of data, it copies it into the same buffer that
urb->buffer was already pointing to, thus overwriting the beginning of the
last buffer before it is sent back to the requestor
* it then calls memcpy() to copy the beginning of the newly-read block to after
the end of the buffer that urb->buffer is pointing to. If ds->nand->erasesize
is the same as the _buf[] array, then this will write past the end of the
_buf[] array and smash some other item in RAM.
* if a requested buffer exactly reaches the end of the block that's been
buffered in ds->buf, then handle_upload() will read a new NAND block into the
buffer even though it is not needed. (The test for (len > remain) should
probably go before the test for ds->ptr, not after?)
So instead of fixing those issues individually, I rewored the logic
for how to deal with DFU upload. Much simpler, and without those bugs.
Signed-off-by: Harald Welte <laforge@openmoko.org>
Harald Welte [Tue, 7 Oct 2008 17:49:34 +0000 (7 18:49 +0100)]
Enable hardware flow control for GSM/GPS
GTA02 >= v3: Enable hardware flow control for GSM and GPS serial ports
Without this patch, s3ser0 (GSM) and s3ser1 (GPS) will not properly
work on GTA02 >= v3 hardware.
Together with the previous patch, this fixes bug
https://docs.openmoko.org/trac/ticket/1595
Signed-off-by: Harald Welte <laforge@openmoko.org>
Harald Welte [Tue, 7 Oct 2008 17:49:18 +0000 (7 18:49 +0100)]
Fix init of non-console serial lines
[serial]: Fix initialization of non-console serial lines
When using a serial port for something that is not console operation
(like the 'terminal' mode with GSM or GPS on Openmoko GTA02), then
the serial port needs to be initialized properly.
Signed-off-by: Harald Welte <laforge@openmoko.org>
Andy Green [Sun, 10 Aug 2008 16:22:37 +0000 (10 17:22 +0100)]
build-add-git-hash-marking.patch
Signed-off-by: Andy Green <andy@openmoko.com>
simon.kagstrom [Thu, 7 Aug 2008 16:58:09 +0000 (7 17:58 +0100)]
honor-stop_in_menu-on-charger-wakeup.patch
When the freerunner wakes up because of a charger insert, it
directly starts to boot. This patch adds honoring of the
stop_in_menu environment variable if the wakeup type is
NEO1973_WAKEUP_CHARGER.
Simon Kagstrom [Sun, 3 Aug 2008 22:39:08 +0000 (3 23:39 +0100)]
environment-option-to-stop-in-menu.patch
Add a U-boot environment option ("stop_in_menu") which, if set to 'yes', will
always stop the board in the U-boot menu. Reduces the wear on the AUX
button for me at least :-)
Signed-off-by: Simon Kagstrom <simon.kagstrom@gmail.com>
Andy Green [Sun, 3 Aug 2008 18:34:57 +0000 (3 19:34 +0100)]
fix-dont-do-i2c-with-irqs-off.patch
We can't afford turning off interrupts for long periods in
U-Boot as the USB stack fails and leaves the USB device in
Insane Spam Mode.
This patch allowed 50 resets in a row giving normal USB
behaviour with no sign of the issue any more.
Signed-off-by: Andy Green <andy@openmoko.com>
Andy Green [Sun, 3 Aug 2008 18:34:48 +0000 (3 19:34 +0100)]
fix-stop-sitting-printing-in-time-critical-context.patch
Someone left us a big fat warning in USB device code
/* Don't ever put [serial] debugging in non-error codepaths here, it
* will violate the tight timing constraints of this USB Device
* controller (and lead to bus enumeration failures) */
these "non-error codepaths" go all over the shop, this patch nukes some
serial printf()s that can do what we must never do.
Signed-off-by: Andy Green <andy@openmoko.com>
Andy Green [Sun, 3 Aug 2008 18:34:38 +0000 (3 19:34 +0100)]
fix-kill-endpoints-before-linux.patch
This patch ties up udc closedown before starting Linux, and
makes sure the endpoints are off in the hardware.
Signed-off-by: Andy Green <andy@openmoko.com>
Andy Green [Fri, 1 Aug 2008 06:47:06 +0000 (1 07:47 +0100)]
fix-broken-usb-handed-to-linux.patch
The USB callback for udc / enumeration notification is very time
critical. Recently, we started using this for PMU actions, which
occur on the ridiculously slow I2C bus and block the USB stack for
the duration.
This caused a very bad behaviour in the USB Device hardware of
spamming the USB bus at 6MHz for the entire session, even after
Linux had booted, rendering the USB interface not operational.
The chances were about 50:50 per boot you would have broken USB.
This patch removes the I2C action from the time critical path
and instead takes care to track it only if we are spinning
waiting for enumeration because we have a bad battery level.
The I2C transaction then takes place out of any time critical
code.
Enumeration is lost anyway as soon as we enter Linux where the
device is enumerated fresh and the Linux pcf50633 driver will
handle it.
One of the results of Insane Spam Mode on USB is not being able
to enumerate properly with host PC over USB. And that leads
directly to not being able to charge the device for the whole
session.
Signed-off-by: Andy Green <andy@openmoko.com>
Mike Montour [Wed, 16 Jul 2008 06:25:15 +0000 (16 07:25 +0100)]
This patch changes rtc_get() to return an int. Without this change
the tree does not compile for gta01bv4.
Signed-off-by: Mike Montour <mail@mmontour.net>
Mike Montour [Wed, 16 Jul 2008 06:18:04 +0000 (16 07:18 +0100)]
PATCH-fix-data-abort-from-sd-ombug799.patch.eml
This patch has been in the OE repository for a while, but was not in the
u-boot git repository. It is a workaround that allows u-boot to access
ext2/ext3 filesystems, removing the need for a dedicated FAT partition
to hold the kernel when booting from SD. I have only tested it on GTA01.
Signed-off-by: Mike Montour <mail@mmontour.net>
Werner Almesberger [Tue, 15 Jul 2008 11:34:20 +0000 (15 12:34 +0100)]
deadbat-safe-voltage.patch
This patch finally enables the last bit of Matt's "safe battery voltage"
patch. Before the other changes in this series of patches, the
wait_for_power logic didn't really work anyway, but now we need this
protection.
I've lowered the safe voltage from 3.6V to 3.4V, since the system seems
to boot fine with 3.4V. A smaller threshold decreases the time the
system spends refusing to do anything but to charge.
Signed-off-by: Werner Almesberger <werner@openmoko.org>
Werner Almesberger [Tue, 15 Jul 2008 11:34:09 +0000 (15 12:34 +0100)]
deadbat-alternate.patch
When there is no battery or the battery is in its cut-off state, even the
slightest charge (once the capacitors on the battery rail are filled) will
drive the battery voltage up to VB_SYS.
The battery voltage monitor therefore only reports garbage. We work around
this problem by alternating the LED with the charger, so that the battery
only gets charged half of the time. We then measure right at the end of a
LED cycle, i.e., when the battery voltage has had time to return to the
level that really represents the battery state.
(Note: battery voltage drops quickly, so giving it one whole second to
drain is very much on the safe side.)
Signed-off-by: Werner Almesberger <werner@openmoko.org>