project/bcm63xx/u-boot.git
16 years agoColdFire: Multiple fixes for M5282EVB
TsiChung Liew [Mon, 11 Aug 2008 15:54:25 +0000 (15:54 +0000)]
ColdFire: Multiple fixes for M5282EVB

Incorrect CFG_HZ value, change 1000000 to 1000.
Rename #waring to #warning. RAMBAR1 uses twice
in start.S, rename the later to FLASHBAR. Insert
nop for DRAM setup. And, env_offset in linker file.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Move m5282evb from board to board/freescale
TsiChung Liew [Mon, 11 Aug 2008 15:26:43 +0000 (15:26 +0000)]
ColdFire: Move m5282evb from board to board/freescale

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Move m5272c3 from board to board/freescale
TsiChung Liew [Mon, 11 Aug 2008 15:25:07 +0000 (15:25 +0000)]
ColdFire: Move m5272c3 from board to board/freescale

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Move m5271evb from board to board/freescale
TsiChung Liew [Mon, 11 Aug 2008 15:23:16 +0000 (15:23 +0000)]
ColdFire: Move m5271evb from board to board/freescale

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Add M54451EVB platform support for MCF5445x
TsiChung Liew [Mon, 11 Aug 2008 13:41:49 +0000 (13:41 +0000)]
ColdFire: Add M54451EVB platform support for MCF5445x

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Add Serial Flash support for M54455EVB
TsiChung Liew [Thu, 7 Aug 2008 00:14:08 +0000 (19:14 -0500)]
ColdFire: Add Serial Flash support for M54455EVB

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Implement SBF feature for M5445EVB
TsiChung Liew [Thu, 24 Jul 2008 01:38:53 +0000 (20:38 -0500)]
ColdFire: Implement SBF feature for M5445EVB

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Add SSPI feature for MCF5445x
TsiChung Liew [Wed, 23 Jul 2008 22:53:36 +0000 (17:53 -0500)]
ColdFire: Add SSPI feature for MCF5445x

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Use CFI Flash driver for M54455EVB
TsiChung Liew [Wed, 23 Jul 2008 22:37:10 +0000 (17:37 -0500)]
ColdFire: Use CFI Flash driver for M54455EVB

Remove non-common flash driver in
board/freescale/m54455evb/flash.c. The non-cfi flash will
use CONFIG_FLASH_CFI_LEGACY to configure the flash
attribute.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Add M5253DEMO platform support for MCF5253
TsiChung Liew [Wed, 23 Jul 2008 22:11:47 +0000 (17:11 -0500)]
ColdFire: Add M5253DEMO platform support for MCF5253

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Raise M5253EVBE uart baudrate to 115200 bps
TsiChung Liew [Wed, 6 Aug 2008 19:17:09 +0000 (14:17 -0500)]
ColdFire: Raise M5253EVBE uart baudrate to 115200 bps

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoColdFire: Fix M5253EVB dram bring up issue
TsiChung Liew [Wed, 6 Aug 2008 19:11:36 +0000 (14:11 -0500)]
ColdFire: Fix M5253EVB dram bring up issue

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-cfi-flash
Wolfgang Denk [Thu, 14 Aug 2008 12:56:40 +0000 (14:56 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash

16 years agoCoding Style cleanup, update CHANGELOG
Wolfgang Denk [Thu, 14 Aug 2008 12:41:06 +0000 (14:41 +0200)]
Coding Style cleanup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Thu, 14 Aug 2008 09:26:22 +0000 (11:26 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

16 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot into next
Stefan Roese [Thu, 14 Aug 2008 06:25:13 +0000 (08:25 +0200)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot into next

16 years agosocrates: Update NAND driver to new API.
Scott Wood [Wed, 13 Aug 2008 23:24:05 +0000 (18:24 -0500)]
socrates: Update NAND driver to new API.

Also, fix some minor formatting issues, and simplify the handling of
"state" for writes.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoquad100hd: Update NAND driver to new API.
Scott Wood [Wed, 13 Aug 2008 23:03:40 +0000 (18:03 -0500)]
quad100hd: Update NAND driver to new API.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agom5373evb: Update NAND driver to new API.
Scott Wood [Wed, 13 Aug 2008 22:53:48 +0000 (17:53 -0500)]
m5373evb: Update NAND driver to new API.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agos3c24x0: Update NAND driver to new API.
Scott Wood [Wed, 13 Aug 2008 22:04:30 +0000 (17:04 -0500)]
s3c24x0: Update NAND driver to new API.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoMerge branch 'Makefile' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Wed, 13 Aug 2008 21:23:13 +0000 (23:23 +0200)]
Merge branch 'Makefile' of git://git.denx.de/u-boot-arm

16 years agoat91: Update board NAND drivers to current API.
Scott Wood [Wed, 13 Aug 2008 20:56:00 +0000 (15:56 -0500)]
at91: Update board NAND drivers to current API.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoFix OneNAND build break
Kyungmin Park [Wed, 13 Aug 2008 00:11:02 +0000 (09:11 +0900)]
Fix OneNAND build break

Since page size field is changed from oobblock to writesize. But OneNAND is not updated.
- fix bufferram management at erase operation
This patch includes the NAND/OneNAND state filed too.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot
Stefan Roese [Wed, 13 Aug 2008 04:47:12 +0000 (06:47 +0200)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot

16 years agodrivers/mtd/nand_legacy: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:43 +0000 (01:40 +0200)]
drivers/mtd/nand_legacy: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/mtd/nand: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:43 +0000 (01:40 +0200)]
drivers/mtd/nand: Move conditional compilation to Makefile

rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/mtd/onenand: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:42 +0000 (01:40 +0200)]
drivers/mtd/onenand: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/mtd: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:42 +0000 (01:40 +0200)]
drivers/mtd: Move conditional compilation to Makefile

rename CFG_FLASH_CFI_DRIVER to CONFIG_FLASH_CFI_DRIVER

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/qe: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:41 +0000 (01:40 +0200)]
drivers/qe: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/pci: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:40 +0000 (01:40 +0200)]
drivers/pci: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/misc: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:40 +0000 (01:40 +0200)]
drivers/misc: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/input: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:40 +0000 (01:40 +0200)]
drivers/input: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/dma: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:39 +0000 (01:40 +0200)]
drivers/dma: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agodrivers/block: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:39 +0000 (01:40 +0200)]
drivers/block: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoserial: move CFG_NS9750_UART to CONFIG_NS9750_UART
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:39 +0000 (01:40 +0200)]
serial: move CFG_NS9750_UART to CONFIG_NS9750_UART

move also conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoserial: move CFG_SCIF_CONSOLE to CONFIG_SCIF_CONSOLE
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:38 +0000 (01:40 +0200)]
serial: move CFG_SCIF_CONSOLE to CONFIG_SCIF_CONSOLE

move also conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agocommon: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:38 +0000 (01:40 +0200)]
common: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agomx31: move freescale's mx31 boards to vendor board dir
Jean-Christophe PLAGNIOL-VILLARD [Tue, 12 Aug 2008 23:40:09 +0000 (01:40 +0200)]
mx31: move freescale's mx31 boards to vendor board dir

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-at91
Wolfgang Denk [Tue, 12 Aug 2008 20:02:27 +0000 (22:02 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-at91

16 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot into next
Stefan Roese [Tue, 12 Aug 2008 18:39:27 +0000 (20:39 +0200)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot into next

16 years agoat91: move arch-at91sam9 to arch-at91
Jean-Christophe PLAGNIOL-VILLARD [Sat, 5 Jul 2008 21:11:11 +0000 (23:11 +0200)]
at91: move arch-at91sam9 to arch-at91

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoOneNAND: Fill in MTD function pointers for OneNAND.
Fathi BOUDRA [Wed, 6 Aug 2008 08:06:20 +0000 (10:06 +0200)]
OneNAND: Fill in MTD function pointers for OneNAND.

onenand_print_device_info():
 - Now returns a string to be placed in mtd->name,
   rather than calling printf.
 - Remove verbose parameter as it becomes useless.

Signed-off-by: Fathi Boudra <fabo@debian.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agonand_spl: Support page-aligned read in nand_load, use chipselect
Guennadi Liakhovetski [Wed, 6 Aug 2008 19:42:07 +0000 (21:42 +0200)]
nand_spl: Support page-aligned read in nand_load, use chipselect

Supporting page-aligned reads doesn't incure any sinificant overhead, just
a small change in the algorithm. Also replace in_8 with readb, since there
is no in_8 on ARM.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND boot: Update large page support for current API.
Scott Wood [Tue, 5 Aug 2008 16:15:59 +0000 (11:15 -0500)]
NAND boot: Update large page support for current API.

Also, remove the ctrl variable in favor of passing the constants
directly, and remove redundant (u8) casts.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND boot: MPC8313ERDB support
Scott Wood [Mon, 30 Jun 2008 19:13:28 +0000 (14:13 -0500)]
NAND boot: MPC8313ERDB support

Note that with older board revisions, NAND boot may only work after a
power-on reset, and not after a warm reset.  I don't have a newer board
to test on; if you have a board with a 33MHz crystal, please let me know
if it works after a warm reset.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agompc8313erdb: Enable NAND in config.
Scott Wood [Thu, 26 Jun 2008 19:06:52 +0000 (14:06 -0500)]
mpc8313erdb: Enable NAND in config.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND: Do not write or read a whole block if it is larger than the environment
Guennadi Liakhovetski [Thu, 31 Jul 2008 10:38:26 +0000 (12:38 +0200)]
NAND: Do not write or read a whole block if it is larger than the environment

Environment can be smaller than NAND block size, do not need to read a whole
block and minimum for writing is one page. Also remove an unused variable.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND: chip->state does not always get set.
Marcel Ziswiler [Sun, 22 Jun 2008 14:30:06 +0000 (16:30 +0200)]
NAND: chip->state does not always get set.

Fixes an issue with chip->state not always being set causing troubles.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND: Scan bad blocks lazily.
Ilya Yanok [Mon, 30 Jun 2008 13:34:40 +0000 (15:34 +0200)]
NAND: Scan bad blocks lazily.

Rather than scanning on boot, scan upon the first attempt to check the
badness of a block.  This speeds up boot when not using NAND, and reduces
the likelihood of needing to reflash via JTAG if NAND becomes
nonfunctional.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND read/write fix
Scott Wood [Thu, 12 Jun 2008 18:20:16 +0000 (13:20 -0500)]
NAND read/write fix

Implement block-skipping read/write, based on a patch from
Morten Ebbell Hestens <morten.hestnes@tandberg.com>.

Signed-off-by: Morten Ebbell Hestnes <morten.hestnes@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND: Always skip blocks on read/write/boot.
Scott Wood [Thu, 12 Jun 2008 18:13:23 +0000 (13:13 -0500)]
NAND: Always skip blocks on read/write/boot.

Use of the non-skipping versions was almost always (if not always)
an error, and no valid use case has been identified.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agonand: fsl_upm: convert to updated MTD NAND infrastructure
Anton Vorontsov [Thu, 12 Jun 2008 16:10:21 +0000 (11:10 -0500)]
nand: fsl_upm: convert to updated MTD NAND infrastructure

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agofsl_elbc_nand: Hard-code the FBAR/FPAR split.
Scott Wood [Thu, 22 May 2008 20:02:46 +0000 (15:02 -0500)]
fsl_elbc_nand: Hard-code the FBAR/FPAR split.

The hardware has separate registers for block and page-within-block,
but the division between the two has no apparent relation to the
actual erase block size of the NAND chip.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agofsl_elbc_nand: workaround for hangs during nand write
Anton Vorontsov [Fri, 28 Mar 2008 19:10:54 +0000 (22:10 +0300)]
fsl_elbc_nand: workaround for hangs during nand write

Using current driver elbc sometimes hangs during nand write. Reading back
last byte helps though (thanks to Scott Wood for the idea).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoFreescale eLBC FCM NAND driver
Scott Wood [Fri, 21 Mar 2008 21:12:51 +0000 (16:12 -0500)]
Freescale eLBC FCM NAND driver

This is a driver for the Flash Control Machine of the enhanched Local Bus
Controller found on some Freescale chips (such as the mpc8313 and the
mpc8379).

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoDon't panic if a controller driver does ecc its own way.
Scott Wood [Tue, 18 Mar 2008 20:29:14 +0000 (15:29 -0500)]
Don't panic if a controller driver does ecc its own way.

Some hardware, such as the enhanced local bus controller used on some
mpc83xx chips, does ecc transparently when reading and writing data, rather
than providing a generic calculate/correct mechanism that can be exported to
the nand subsystem.

The subsystem should not BUG() when calculate, correct, or hwctl are
missing, if the methods that call them have been overridden.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoNAND: Make NAND driver less verbose per default
Stefan Roese [Thu, 10 Jan 2008 17:47:33 +0000 (18:47 +0100)]
NAND: Make NAND driver less verbose per default

This patch turns off printing of bad blocks per default upon bootup.
This can always be shown via the "nand bad" command later.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoNAND: Davinci driver updates
Sergey Kubushyn [Wed, 9 Jan 2008 14:36:20 +0000 (15:36 +0100)]
NAND: Davinci driver updates

Here comes a trivial patch to cpu/arm926ejs/davinci/nand.c. Unfortunately I
don't have hardware handy so I can not test it at the moment but changes are
rather trivial so it should work. It would be nice if somebody with a
hardware checked it anyways.

Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
16 years agoNAND: Fix compilation warning and small coding style issue
Stefan Roese [Sat, 5 Jan 2008 15:50:32 +0000 (16:50 +0100)]
NAND: Fix compilation warning and small coding style issue

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoNAND: Update nand_spl driver to match updated nand subsystem
Stefan Roese [Sat, 5 Jan 2008 15:49:37 +0000 (16:49 +0100)]
NAND: Update nand_spl driver to match updated nand subsystem

This patch changes the NAND booting driver nand_spl/nand_boot.c to match
the new infrastructure from the updated NAND subsystem. This NAND
subsystem was recently synced again with the Linux 2.6.22 MTD/NAND
subsystem.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoNAND: Update 4xx NDFC driver to match updated nand subsystem
Stefan Roese [Sat, 5 Jan 2008 15:47:58 +0000 (16:47 +0100)]
NAND: Update 4xx NDFC driver to match updated nand subsystem

This patch changes the 4xx NAND driver ndfc.c to match the new
infrastructure from the updated NAND subsystem. This NAND
subsystem was recently synced again with the Linux 2.6.22 MTD/NAND
subsystem.

Tested successfully on AMCC Sequoia and Bamboo.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoNAND: Change nand_wait_ready() to not call nand_wait()
Stefan Roese [Sat, 5 Jan 2008 15:43:25 +0000 (16:43 +0100)]
NAND: Change nand_wait_ready() to not call nand_wait()

This patch changes nand_wait_ready() to not just call nand_wait(),
since this will send a new command to the NAND chip. We just want to
wait for the chip to become ready here.

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agomake nand dump and nand dump.oob work
William Juul [Fri, 14 Dec 2007 15:33:45 +0000 (16:33 +0100)]
make nand dump and nand dump.oob work

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agomoving files from yaffs2/direct/ to yaffs2/ and deleting all symlinks
William Juul [Mon, 19 Nov 2007 13:46:00 +0000 (14:46 +0100)]
moving files from yaffs2/direct/ to yaffs2/ and deleting all symlinks

Signed-off-by: William Juul <william.juul@tandberg.com>
16 years agoClean out unneeded files
William Juul [Tue, 10 Jun 2008 21:18:13 +0000 (16:18 -0500)]
Clean out unneeded files

Signed-off-by: William Juul <william.juul@tandberg.com>
16 years agoCreate symlinks from yaffs2/direct to yaffs2
William Juul [Fri, 16 Nov 2007 07:44:27 +0000 (08:44 +0100)]
Create symlinks from yaffs2/direct to yaffs2

Signed-off-by: William Juul <william.juul@tandberg.com>
16 years agoIncorporate yaffs2 into U-boot
William Juul [Thu, 15 Nov 2007 11:23:57 +0000 (12:23 +0100)]
Incorporate yaffs2 into U-boot

To use YAFFS2 define CONFIG_YAFFS2

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoYAFFS2 import
William Juul [Thu, 15 Nov 2007 10:13:05 +0000 (11:13 +0100)]
YAFFS2 import

Direct import of yaffs as a tarball as of 20071113 from their public
CVS-web at http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2/

The code can also be imported on the command line with:
export CVSROOT=:pserver:anonymous@cvs.aleph1.co.uk:/home/aleph1/cvs cvs logon
(Hit return when asked for a password)
cvs checkout yaffs2

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Stig Olsen <stig.olsen@tandberg.com>
16 years agoWhitespace cleanup and marking broken code.
William Juul [Wed, 14 Nov 2007 13:28:11 +0000 (14:28 +0100)]
Whitespace cleanup and marking broken code.

Changes requested by maintainer Stefan Roese after
posting patch to U-boot mailing list.

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoFixing coding style issues
William Juul [Fri, 9 Nov 2007 12:32:30 +0000 (13:32 +0100)]
Fixing coding style issues

 - Fixing leading white spaces
 - Fixing indentation where 4 spaces are used instead of tab
 - Removing C++ comments (//), wherever I introduced them

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoRemove white space at end.
William Juul [Thu, 8 Nov 2007 09:39:53 +0000 (10:39 +0100)]
Remove white space at end.

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoUpdate MTD to that of Linux 2.6.22.1
William Juul [Wed, 31 Oct 2007 12:53:06 +0000 (13:53 +0100)]
Update MTD to that of Linux 2.6.22.1

A lot changed in the Linux MTD code, since it was last ported from
Linux to U-Boot. This patch takes U-Boot NAND support to the level
of Linux 2.6.22.1 and will enable support for very large NAND devices
(4KB pages) and ease the compatibility between U-Boot and Linux
filesystems.

This patch is tested on two custom boards with PPC and ARM
processors running YAFFS in U-Boot and Linux using gcc-4.1.2
cross compilers.

MAKEALL ppc/arm has some issues:
 * DOC/OneNand/nand_spl is not building (I have not tried porting
   these parts, and since I do not have any HW and I am not familiar
   with this code/HW I think its best left to someone else.)

Except for the issues mentioned above, I have ported all drivers
necessary to run MAKEALL ppc/arm without errors and warnings. Many
drivers were trivial to port, but some were not so trivial. The
following drivers must be examined carefully and maybe rewritten to
some degree:
 cpu/ppc4xx/ndfc.c
 cpu/arm926ejs/davinci/nand.c
 board/delta/nand.c
 board/zylonite/nand.c

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Stig Olsen <stig.olsen@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agoCoding style cleanup, update CHANGELOG, prepare release
Wolfgang Denk [Tue, 12 Aug 2008 14:08:38 +0000 (16:08 +0200)]
Coding style cleanup, update CHANGELOG, prepare release

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMVBC_P: fix compile problem
Wolfgang Denk [Tue, 12 Aug 2008 12:54:04 +0000 (14:54 +0200)]
MVBC_P: fix compile problem

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMPC8272ADS: fix build error: 'bd_t' has no member named 'pci_clk'
Wolfgang Denk [Tue, 12 Aug 2008 10:10:11 +0000 (12:10 +0200)]
MPC8272ADS: fix build error: 'bd_t' has no member named 'pci_clk'

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Tue, 12 Aug 2008 09:47:54 +0000 (11:47 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-arm
Wolfgang Denk [Tue, 12 Aug 2008 09:46:56 +0000 (11:46 +0200)]
Merge branch 'master' of git://denx.de/git/u-boot-arm

16 years agoads5121: fix compiler warnings (unused variables)
Wolfgang Denk [Mon, 11 Aug 2008 22:36:53 +0000 (00:36 +0200)]
ads5121: fix compiler warnings (unused variables)

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Mon, 11 Aug 2008 22:13:57 +0000 (00:13 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

16 years ago85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
Kumar Gala [Mon, 11 Aug 2008 16:29:28 +0000 (11:29 -0500)]
85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS

Use CONFIG_NUM_CPUS to match existing define used by 86xx.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Jon Loeliger <jdl@freescale.com>
16 years agoFix fallout from autostart revert
Kumar Gala [Mon, 11 Aug 2008 14:20:53 +0000 (09:20 -0500)]
Fix fallout from autostart revert

The autostart revert caused a bit of duplicated code as well as
code that was using images->autostart that needs to get removed so
we can build again.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFix compile error related to r8a66597-hcd & usb
Kumar Gala [Mon, 11 Aug 2008 14:16:25 +0000 (09:16 -0500)]
Fix compile error related to r8a66597-hcd & usb

When building the 8544DS board we get this error:

In file included from r8a66597-hcd.c:22:
u-boot/include/usb.h:190:2: error: #error USB Lowlevel not defined
make[1]: *** [r8a66597-hcd.o] Error 1

The cleanest fix is to only build r8a66597-hcd.c if CONFIG_USB_R8A66597_HCD
is set.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoPOWERPC 86xx: Move BAT setup code to C
Becky Bruce [Mon, 4 Aug 2008 19:02:26 +0000 (14:02 -0500)]
POWERPC 86xx: Move BAT setup code to C

This is needed because we will be possibly be locating
devices at physical addresses above 32bits, and the asm
preprocessing does not appear to deal with ULL constants
properly. We now call write_bat in lib_ppc/bat_rw.c.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
16 years agoPOWERPC: Add synchronization to write_bat in lib_ppc/bat_rw.c
Becky Bruce [Mon, 4 Aug 2008 19:01:53 +0000 (14:01 -0500)]
POWERPC: Add synchronization to write_bat in lib_ppc/bat_rw.c

Perform sync/isync as required by the architecture.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
16 years agoPOWERPC: 86xx - add missing CONFIG_HIGH_BATS to sbc8641d config
Becky Bruce [Mon, 4 Aug 2008 19:01:16 +0000 (14:01 -0500)]
POWERPC: 86xx - add missing CONFIG_HIGH_BATS to sbc8641d config

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
16 years agoi.MX31: Fix mx31_gpio_mux() function and MUX_-macros.
Magnus Lilja [Sun, 3 Aug 2008 19:44:10 +0000 (21:44 +0200)]
i.MX31: Fix mx31_gpio_mux() function and MUX_-macros.

Correct the mx31_gpio_mux() function to allow changing all i.MX31 IOMUX
contacts instead of only the first 256 ones as is the case prior to
this patch.

Add missing MUX_* macros and update board files to use the new macros.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoi.MX31: Fix IOMUX related typos
Magnus Lilja [Sun, 3 Aug 2008 19:43:37 +0000 (21:43 +0200)]
i.MX31: Fix IOMUX related typos

Correct the names of some IOMUX macros.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoOneNAND: Remove unused parameters to onenand_verify_page
Steve Sakoman [Mon, 11 Aug 2008 18:26:16 +0000 (20:26 +0200)]
OneNAND: Remove unused parameters to onenand_verify_page

The block and page parameters of onenand_verify_page() are not used. This causes a compiler error when CONFIG_MTD_ONENAND_VERIFY_WRITE is enabled.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
16 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot
Stefan Roese [Mon, 11 Aug 2008 04:43:38 +0000 (06:43 +0200)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot

16 years agovideo: fix bug in cfb_console code
Anatolij Gustschin [Fri, 8 Aug 2008 16:00:40 +0000 (18:00 +0200)]
video: fix bug in cfb_console code

FILL_15BIT_555RGB macro extension for pixel swapping
by commit bed53753dd1d7e6bcbea4339be0fb7760214cc35
introduced a bug in cfb_console:

Bitmaps with odd-numbered width won't be rendered
correctly and even U-Boot crashes are observed on
some platforms while repeated rendering of such
bitmaps with "bmp display". Also if a bitmap is
rendered to an odd-numbered x starting position,
the same problem occurs. This patch is an attempt
to fix it.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agovideo: fix bug in logo_plot
Anatolij Gustschin [Fri, 8 Aug 2008 16:00:39 +0000 (18:00 +0200)]
video: fix bug in logo_plot

If logo_plot() should ever be called with x starting
position other than zero and for pixel depths greater
than 8bpp, logo colors distortion will be observed.
This patch fixes the issue.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoMAINTAINERS: sort entries
Wolfgang Denk [Sun, 10 Aug 2008 22:17:52 +0000 (00:17 +0200)]
MAINTAINERS: sort entries

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoAdd mpc7448hpc2 maintainer information
Roy Zang [Thu, 7 Aug 2008 10:19:28 +0000 (18:19 +0800)]
Add mpc7448hpc2 maintainer information

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
16 years agocommon/cmd_load.c - Minor code & Coding Style cleanup
Gururaja Hebbar K R [Thu, 7 Aug 2008 07:43:27 +0000 (13:13 +0530)]
common/cmd_load.c - Minor code & Coding Style cleanup

- os_data_header Variable is a carry over feature
   & unused. So removed all instance of this variable
 - Minor Code Style Update

Signed-off-by: Gururaja Hebbar <gururajakr@sanyo.co.in>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
16 years agoUpdate the U-Boot wiki URL.
Magnus Lilja [Wed, 6 Aug 2008 17:32:33 +0000 (19:32 +0200)]
Update the U-Boot wiki URL.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
16 years agoOneNAND: Remove base address offset usage
dirk.behme@googlemail.com [Sun, 10 Aug 2008 15:56:36 +0000 (17:56 +0200)]
OneNAND: Remove base address offset usage

While locally preparing some U-Boot patches for ARM based OMAP3 boards, some
using OneNAND and some using NAND, we found some differences in OneNAND and
NAND command address handling.

As this might confuse users (it already confused us), we like to align OneNAND
and NAND address handling.

The issue is that cmd_onenand.c subtracts the onenand base address from the
addresses you type into the u-boot command line so, unlike nand, you can't
use addresses relative to the start of the onenand part e.g. this won't work:

onenand read 82000000 280000 400000

you have to use:

onenand read 82000000 20280000 400000

Looking at recent git, the only board currently using OneNAND is Apollon, and
for this the OneNAND base address is 0 (apollon.h)

#define CFG_ONENAND_BASE 0x00000000

so patch below won't break any existing boards and will align OneNAND and NAND
handling on boards where OneNAND base address is != 0.

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
Signed-off-by: Manikandan Pillai <mani.pillai@ti.com>
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
16 years agompc85xx: workaround old binutils bug
Kumar Gala [Thu, 7 Aug 2008 14:28:20 +0000 (09:28 -0500)]
mpc85xx: workaround old binutils bug

The recent change to move the .bss outside of the image gives older
binutils (ld from eldk4.1/binutils-2.16) some headache:

ppc_85xx-ld: u-boot: Not enough room for program headers (allocated 3, need 4)
ppc_85xx-ld: final link failed: Bad value

We workaround it by being explicit about the program headers and not
assigning the .bss to a program header.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoRevert "[new uImage] Add autostart flag to bootm_headers structure"
Wolfgang Denk [Sat, 9 Aug 2008 23:26:26 +0000 (01:26 +0200)]
Revert "[new uImage] Add autostart flag to bootm_headers structure"

This reverts commit f5614e7926863bf0225ec860d9b319741a9c4004.

The commit was based on a misunderstanding of the (documented)
meaning of the 'autostart' environment variable. It might cause
boards to hang if 'autostart' was used, with the potential to brick
them. Go back to the documented behaviour.

Conflicts:

common/cmd_bootm.c
common/image.c
include/image.h

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://git.denx.de/u-boot-at91
Wolfgang Denk [Sat, 9 Aug 2008 23:04:50 +0000 (01:04 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-at91

16 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Sat, 9 Aug 2008 23:04:17 +0000 (01:04 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-sh