u-boot-openmoko/mini2440.git
12 years agoFixed tools/env utilitiesdev-mini2440-stablemaster
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>
14 years agoMINI2440:Fixes for gcc 4.x
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>
14 years agoMINI2440: Removed unneeded dependency
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>
14 years agoMINI2440: Update config to reflect NOR support
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>
14 years agoMINI2440: Added support for SST flash in CFI mode
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>
14 years agoMINI2440: Remove the extraneous PLL config at startup
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>
14 years agoMINI2440: Add a command to re-init CFI NOR
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>
14 years agoMINI2440: Removed old, non working NOR support
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>
14 years agoMINI2440: Removed extra SDRAM probe
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>
14 years agoMINI2440: Auto probe for SDRAM size
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>
14 years agoMINI2440: Updated early nand loader
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>
14 years agoAdded support for the Hynix HY27US08121A 64MB Flash chip.
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>
14 years agoadd SDHC support in mmc drivermini2440-stable
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>
14 years ago[MINI2440] Updated config file
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>
14 years agoNAND Boot: fix an invalid PC error caused by div operation.
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>
14 years agoMerge remote branch 'origin/stable' into dev-mini2440-stable
Michel Pollet [Thu, 24 Sep 2009 17:01:30 +0000 (24 18:01 +0100)]
Merge remote branch 'origin/stable' into dev-mini2440-stable

14 years agoMINI2440: Replaced u-boot-nand512.bin
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>
14 years agoMINI2440: Changed environment size
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>
14 years agoMINI2440: Made dynamic probe for nand size
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>
14 years agoMINI2440: Added a debug command
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>
14 years agoMINI2440: Changed bbt creation code
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>
14 years agoU-Boot GTA02: Always enable charger on startup
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>
15 years agoMINI2440: Made a non-moko local version
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>
15 years agoMerge commit 'origin/stable' into dev-mini2440-stable
Michel Pollet [Wed, 29 Apr 2009 09:21:25 +0000 (29 10:21 +0100)]
Merge commit 'origin/stable' into dev-mini2440-stable

15 years agoMINI2440: Added an overclock command option
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>
15 years agoMINI2440: Slowed down i2c
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>
15 years agoU-Boot: Update for reading inodes on ext2fs revision 1
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>
15 years agoglamo-mmc: Enable reading from cards above 4 GiB
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>
15 years ago[MINI2440] Added an overclock option
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>
15 years ago[MINI2440] Updated default config
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

15 years ago[MINI2440] Initialization cleanup
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>
15 years ago[MINI2440] Added partial support for hardware ECC
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.

15 years ago[MINI2440] Use right pin for USB device
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

15 years ago[MINI2440] startup code cleanup
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.

15 years ago[MINI2440] Added some commands, removed, cleanup
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.

15 years agoRemoved my default cross compile path, oops
Michel Pollet [Mon, 9 Mar 2009 23:28:28 +0000 (9 23:28 +0000)]
Removed my default cross compile path, oops

15 years ago[MINI2440] Also create a 16kb aligned tu-boot for linux mtd tool
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.

15 years ago[MINI2440] Updated default u-boot environment
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

15 years agono working video etc
Michel Pollet [Mon, 23 Feb 2009 08:05:30 +0000 (23 08:05 +0000)]
no working video etc

15 years agoRemoved the specific speeds from my branch
Michel Pollet [Thu, 5 Feb 2009 20:00:53 +0000 (5 20:00 +0000)]
Removed the specific speeds from my branch

15 years agoMerge branch 'dev-mini2440-staging' into dev-mini2440-buserror
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

15 years agoMINI2440: Finaly add the mini2440 to the makefile
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

15 years agoMINI2440: arm920t/ changes
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

15 years agoMINI2440: Bulk Add of the mini2440 board support
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

15 years agoMakefile: Added a rule to add a padded .bin for nand write
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

15 years agoDM9000: Get version 1.31 of DM900 from another tree
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.

15 years agoS3C2440: Fix PLL multiplier for 405Mhz / 12Mhz XTAL
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.

15 years agoGENERAL: Make sure the compiler is /not/ using gnueabi
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

15 years agoGENERAL: Updated .gitignore
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

15 years agoMINI2440: Decomposed all the pin mapping
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.

15 years agoMINI2440: Disable EABI
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

15 years agoMINI2440: Disable USB for now
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

15 years agoMINI2440: Mask all interupts
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.

15 years agoMINI2440: Removed a test file
Michel Pollet [Thu, 5 Feb 2009 18:22:29 +0000 (5 18:22 +0000)]
MINI2440: Removed a test file

Removed _foo from build

15 years agoMINI2440: Temporary reset of base board init
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

15 years agoMINI2440: Updated gitignore
Michel Pollet [Thu, 5 Feb 2009 11:45:32 +0000 (5 11:45 +0000)]
MINI2440: Updated gitignore

And removed stray binaries

15 years agoGENERAL: Updated gitignore
Michel Pollet [Thu, 5 Feb 2009 11:44:53 +0000 (5 11:44 +0000)]
GENERAL: Updated gitignore

Ignore disassembly files etc

15 years agoMINI2440: Added a rule to make a block aligned binary
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

15 years agoMINI2440: Set wait states on bank 4 for ethernet
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.

15 years agoMINI2440: Updated default config
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

15 years agoDM9000: Added configuration option and code to set MAC
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

15 years agoDM9000: added eth_set_mac()
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)

15 years agoMINI2440: Do not bother waiting phy link flag
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.

15 years agoMINI2440: start.S removed MINI2440 specific speed
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.

15 years agoMINI2440: board init
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

15 years agoMINI2440: lowlevel_init added lots of cycles to DM9000 bank
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

15 years agoMINI2440: lowlevel_init re-computed memory timings
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

15 years agoDM9000: Nicked newer driver from main u-boot branch
Michel [Tue, 3 Feb 2009 14:44:03 +0000 (3 14:44 +0000)]
DM9000: Nicked newer driver from main u-boot branch

15 years ago405Mhz had the wrong PLL divisor
Michel [Tue, 3 Feb 2009 14:43:03 +0000 (3 14:43 +0000)]
405Mhz had the wrong PLL divisor

15 years agoRemoved 16 bit access to d9k, no longer needed
Michel [Tue, 3 Feb 2009 14:42:14 +0000 (3 14:42 +0000)]
Removed 16 bit access to d9k, no longer needed

15 years agoReset default to 405Mhz
Michel [Tue, 3 Feb 2009 14:40:09 +0000 (3 14:40 +0000)]
Reset default to 405Mhz

15 years agoFixed PLL clocks for MINI2440 specific 12Mhz
Michel [Tue, 3 Feb 2009 10:33:34 +0000 (3 10:33 +0000)]
Fixed PLL clocks for MINI2440 specific 12Mhz

15 years agoUpdate default bootargs
Michel [Mon, 2 Feb 2009 01:00:31 +0000 (2 01:00 +0000)]
Update default bootargs

15 years agoWorking nand, mtdparts and proper machine ID (1999)
Michel [Sun, 1 Feb 2009 23:56:03 +0000 (1 23:56 +0000)]
Working nand, mtdparts and proper machine ID (1999)

15 years agoMINI2440: Better configuration, with env in NAND
Michel [Sun, 1 Feb 2009 14:54:20 +0000 (1 14:54 +0000)]
MINI2440: Better configuration, with env in NAND

15 years agoFixed a preprocessor warning with #else if / #elsif
Michel [Sun, 1 Feb 2009 14:53:53 +0000 (1 14:53 +0000)]
Fixed a preprocessor warning with #else if / #elsif

15 years agoMINI2440: Has 512 bytes sector nand
Michel [Sun, 1 Feb 2009 14:53:13 +0000 (1 14:53 +0000)]
MINI2440: Has 512 bytes sector nand

15 years agoMINI2440: Better peripheral init
Michel [Sun, 1 Feb 2009 14:52:45 +0000 (1 14:52 +0000)]
MINI2440: Better peripheral init

15 years agoMINI2440: No longer need the environment in NOR
Michel [Sun, 1 Feb 2009 14:52:08 +0000 (1 14:52 +0000)]
MINI2440: No longer need the environment in NOR

15 years agoFirst MINI2440 version, works from ram, not nand
Michel [Sat, 31 Jan 2009 17:12:55 +0000 (31 17:12 +0000)]
First MINI2440 version, works from ram, not nand

15 years agoModified patch originates from Andy Green <andy@openmoko.com>stable
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

15 years agoModified patch originates from Andy Green <andy@openmoko.com>
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

15 years agouboot-build-default-toolchain-path.patch
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>
15 years agouboot-fix-smdk2440-config.patch
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

15 years agou-boot-clean-batt-charge-patch.patch
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>
15 years agoFixes for U-Boot charging
Philipp Hug [Thu, 9 Oct 2008 15:57:31 +0000 (9 16:57 +0100)]
Fixes for U-Boot charging

15 years agou-boot: Fix DFU upload in u-boot
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>
15 years agoEnable hardware flow control for GSM/GPS
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>
15 years agoFix init of non-console serial lines
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>
15 years agobuild-add-git-hash-marking.patch
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>
15 years agohonor-stop_in_menu-on-charger-wakeup.patch
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.

15 years agoenvironment-option-to-stop-in-menu.patch
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>
15 years agofix-dont-do-i2c-with-irqs-off.patch
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>
15 years agofix-stop-sitting-printing-in-time-critical-context.patch
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>
15 years agofix-kill-endpoints-before-linux.patch
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>
15 years agofix-broken-usb-handed-to-linux.patch
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>
15 years agoThis patch changes rtc_get() to return an int. Without this change
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>
15 years agoPATCH-fix-data-abort-from-sd-ombug799.patch.eml
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>
15 years agodeadbat-safe-voltage.patch
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>
15 years agodeadbat-alternate.patch
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>